summaryrefslogtreecommitdiff
path: root/shm
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-08 19:03:28 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-08 19:03:28 -0400
commit5f9ec3c335b9ef55635102ae85ca8e5377deaba5 (patch)
tree0055bcf30c3467b3afaa9b9579171a477e82ff5a /shm
parentf0637da31d404b0710b6e6911b9ee6d7a3593ca2 (diff)
downloaddconf-5f9ec3c335b9ef55635102ae85ca8e5377deaba5.tar.gz
shm/: add inline dconf_shm_is_flagged()
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__ */