gdbus: Move typedefs for interwork with strict compilers
PATCH 1/1 gdbus: Move typedefs for interwork with strict compilers
From: Grant Erickson <[email protected]>
Move enumeration type defintions AFTER the enumerations themselves are declared and defined such that the header works with strict compilers.
This occurs when building a plugin, compiled with C++, and occurs on all of:
arm-none-linux-gnueabi-g++ (Sourcery G++ Lite 2010q1-202) 4.4.1 arm-poky-linux-gnueabi-g++ (GCC) 4.8.2
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
---
Hi,
This patch came up on the ConnMan mailing list, applies to Bluez too.
The patch is rebased to latest upstream and commit message amended with more information.
Cheers,
Patrik
gdbus/gdbus.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
gdbus/gdbus.h +6 -6
@@ -31,12 +31,6 @@ extern "C" {#include <dbus/dbus.h> #include <glib.h> -typedef enum GDBusMethodFlags GDBusMethodFlags ; -typedef enum GDBusSignalFlags GDBusSignalFlags ; -typedef enum GDBusPropertyFlags GDBusPropertyFlags ; -typedef enum GDBusSecurityFlags GDBusSecurityFlags ; -typedef enum GDbusPropertyChangedFlags GDbusPropertyChangedFlags ; -typedef struct GDBusArgInfo GDBusArgInfo ;typedef struct GDBusMethodTable GDBusMethodTable ;typedef struct GDBusSignalTable GDBusSignalTable ;
@@ -120,6 +114,12 @@ enum GDbusPropertyChangedFlags { G_DBUS_PROPERTY_CHANGED_FLAG_FLUSH = (1 << 0), }; +typedef enum GDBusMethodFlags GDBusMethodFlags ; +typedef enum GDBusSignalFlags GDBusSignalFlags ; +typedef enum GDBusPropertyFlags GDBusPropertyFlags ; +typedef enum GDBusSecurityFlags GDBusSecurityFlags ; +typedef enum GDbusPropertyChangedFlags GDbusPropertyChangedFlags ; +struct GDBusArgInfo {const char *name;const char *signature;
Signature · 1 line
2.1.4
Johan Hedberg
AppliedHi Patrik,
Quoted 10 lines · Patrik Flykt
Move enumeration type defintions AFTER the enumerations themselves are declared and defined such that the header works with strict compilers.
This occurs when building a plugin, compiled with C++, and occurs on all of:
arm-none-linux-gnueabi-g++ (Sourcery G++ Lite 2010q1-202) 4.4.1 arm-poky-linux-gnueabi-g++ (GCC) 4.8.2
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
---
Quoted 6 lines
Hi,This patch came up on the ConnMan mailing list, applies to Bluez too.
The patch is rebased to latest upstream and commit message amended with more information.
Applied. Thanks.
Johan
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman
Hi,
Quoted 15 lines · Johan Hedberg
Hi Patrik,
Quoted 12 lines · Patrik Flykt
Move enumeration type defintions AFTER the enumerations themselves are declared and defined such that the header works with strict compilers.
This occurs when building a plugin, compiled with C++, and occurs on all of:
arm-none-linux-gnueabi-g++ (Sourcery G++ Lite 2010q1-202) 4.4.1 arm-poky-linux-gnueabi-g++ (GCC) 4.8.2
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
---Hi,
Quoted 8 lines
Quoted 4 lines
This patch came up on the ConnMan mailing list, applies to Bluez too.
The patch is rebased to latest upstream and commit message amended with more information.
Applied. Thanks.
Johan
Thanks. ConnMan ./gdbus is now in sync with Bluez.
Cheers,
Patrik
_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman