summaryrefslogtreecommitdiff
path: root/shm
diff options
context:
space:
mode:
Diffstat (limited to 'shm')
-rw-r--r--shm/dconf-shm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shm/dconf-shm.h b/shm/dconf-shm.h
index 407375a..c1f136c 100644
--- a/shm/dconf-shm.h
+++ b/shm/dconf-shm.h
@@ -31,4 +31,10 @@ void dconf_shm_close (guint8
G_GNUC_INTERNAL
void dconf_shm_flag (const gchar *name);
+static inline gboolean
+dconf_shm_is_flagged (const guint8 *shm)
+{
+ return shm == NULL || *shm != 0;
+}
+
#endif /* __dconf_shm_h__ */