[PATCH 3/8] core: add a setter and getter of GrlKeyID for GValues



From: Guillaume Emont <guijemont igalia com>

---
 src/grl-metadata-key.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/grl-metadata-key.h b/src/grl-metadata-key.h
index e82b8a4..ba9c07e 100644
--- a/src/grl-metadata-key.h
+++ b/src/grl-metadata-key.h
@@ -43,6 +43,10 @@
 
 typedef guint32 GrlKeyID;
 
+#define g_value_get_grl_key_id(value) ((GrlKeyID) g_value_get_uint(value))
+#define g_value_set_grl_key_id(value,key) g_value_set_uint(value,(guint)key)
+
+
 #define GRL_METADATA_KEY_ALBUM                1
 #define GRL_METADATA_KEY_ARTIST               2
 #define GRL_METADATA_KEY_AUTHOR               3
-- 
1.7.5.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]