diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2017-06-13 17:15:26 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2017-06-13 17:15:26 +0200 |
commit | 6f3b28c7b87ad3289c26901f78b859feb1b21d61 (patch) | |
tree | 16d29b0d37bd48da8e0ca1bc1383b07c624507d0 /gio/src/dbusmessage.hg | |
parent | 95d3bd28629b0f55d5aa4b0cefdfb0e22dc6b5dc (diff) | |
download | glibmm-6f3b28c7b87ad3289c26901f78b859feb1b21d61.tar.gz |
Use _WRAP_ENUM for Gio::DBus::Message::ByteOrder
Diffstat (limited to 'gio/src/dbusmessage.hg')
-rw-r--r-- | gio/src/dbusmessage.hg | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/gio/src/dbusmessage.hg b/gio/src/dbusmessage.hg index 7ae6f32f..0abe21a6 100644 --- a/gio/src/dbusmessage.hg +++ b/gio/src/dbusmessage.hg @@ -88,16 +88,8 @@ public: _WRAP_METHOD(MessageType get_message_type() const, g_dbus_message_get_message_type) _WRAP_METHOD(void set_message_type(MessageType type), g_dbus_message_set_message_type) - //gmmproc can't handle the character literals, and this won't be expanded in future, - //so we just wrap it by hand. - enum ByteOrder - { - BYTE_ORDER_BIG_ENDIAN = 'B', - BYTE_ORDER_LITTLE_ENDIAN = 'l' - }; - - #m4 _CONVERSION(`ByteOrder',`GDBusMessageByteOrder',`(GDBusMessageByteOrder)($3)') - #m4 _CONVERSION(`GDBusMessageByteOrder',`ByteOrder',`(ByteOrder)($3)') + // BIG_ENDIAN and LITTLE_ENDIAN are defined as preprocessor macros somewhere. + _WRAP_ENUM(ByteOrder, GDBusMessageByteOrder, NO_GTYPE, s#ENDIAN$#ENDIAN_ORDER#) _WRAP_METHOD(ByteOrder get_byte_order() const, g_dbus_message_get_byte_order) _WRAP_METHOD(void set_byte_order(ByteOrder byte_order), g_dbus_message_set_byte_order) |