From 143f00ceef694a7edf57962e6e62ac43046a83e7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 21 Jun 2013 10:34:56 +0200 Subject: [PATCH] collection: Have gobject-introspection and glib-mkenums recognize flags Recognize flags correctly by putting << in their enum values. This is pretty ugly and I wish there was an annotation. --- libsecret/secret-collection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsecret/secret-collection.h b/libsecret/secret-collection.h index f4476d3..55530f6 100644 --- a/libsecret/secret-collection.h +++ b/libsecret/secret-collection.h @@ -28,12 +28,12 @@ G_BEGIN_DECLS typedef enum { - SECRET_COLLECTION_NONE = 0, + SECRET_COLLECTION_NONE = 0 << 0, SECRET_COLLECTION_LOAD_ITEMS = 1 << 1, } SecretCollectionFlags; typedef enum { - SECRET_COLLECTION_CREATE_NONE = 0, + SECRET_COLLECTION_CREATE_NONE = 0 << 0, } SecretCollectionCreateFlags; #define SECRET_TYPE_COLLECTION (secret_collection_get_type ())