[dconf/wip/reorg: 517/523] shm/: add inline dconf_shm_is_flagged()
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf/wip/reorg: 517/523] shm/: add inline dconf_shm_is_flagged()
- Date: Mon, 9 Jul 2012 02:50:51 +0000 (UTC)
commit 5f9ec3c335b9ef55635102ae85ca8e5377deaba5
Author: Ryan Lortie <desrt desrt ca>
Date: Sun Jul 8 19:03:28 2012 -0400
shm/: add inline dconf_shm_is_flagged()
shm/dconf-shm.h | 6 ++++++
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__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]