diff options
author | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-23 13:48:27 +0100 |
---|---|---|
committer | Will Thompson <will.thompson@collabora.co.uk> | 2011-06-24 15:26:03 +0100 |
commit | b2616cbb5e25fcd28dbeaad68055b18a399db8b5 (patch) | |
tree | 0357f8a19e20430c9830ec749aeba8047d873b2a | |
parent | a6c0404419c7c84924e1b98783860f8ad99aa18f (diff) |
Build GEnum/GFlags for enums in connection.h
Specifically, I want a GEnum for GabblePresenceId so I can include the
stringy versions in debug strings.
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rw-r--r-- | src/connection.h | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index f436988b8..fbb9031fe 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -185,6 +185,7 @@ libgabble_convenience_la_SOURCES = \ vcard-manager.c enumtype_sources = \ + $(top_srcdir)/src/connection.h \ $(top_srcdir)/src/jingle-factory.h \ $(top_srcdir)/src/presence.h diff --git a/src/connection.h b/src/connection.h index 2d37a067f..2b425e926 100644 --- a/src/connection.h +++ b/src/connection.h @@ -52,21 +52,23 @@ G_BEGIN_DECLS /* order must match array of statuses in conn-presence.c */ /* in increasing order of presence */ +/*< prefix=GABBLE_PRESENCE >*/ typedef enum { GABBLE_PRESENCE_OFFLINE = 0, GABBLE_PRESENCE_UNKNOWN, GABBLE_PRESENCE_ERROR, - GABBLE_PRESENCE_LAST_UNAVAILABLE = GABBLE_PRESENCE_ERROR, + GABBLE_PRESENCE_LAST_UNAVAILABLE = GABBLE_PRESENCE_ERROR, /*< skip >*/ GABBLE_PRESENCE_HIDDEN, GABBLE_PRESENCE_XA, GABBLE_PRESENCE_AWAY, GABBLE_PRESENCE_DND, GABBLE_PRESENCE_AVAILABLE, GABBLE_PRESENCE_CHAT, - NUM_GABBLE_PRESENCES + NUM_GABBLE_PRESENCES /*< skip >*/ } GabblePresenceId; +/*< flags >*/ typedef enum { GABBLE_CONNECTION_FEATURES_NONE = 0, |