All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gdbus: Move typedefs for interwork with strict compilers
@ 2015-12-08 16:09 Patrik Flykt
  2015-12-09 10:24 ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Patrik Flykt @ 2015-12-08 16:09 UTC (permalink / raw)
  To: linux-bluetooth, connman; +Cc: Grant Erickson

From: Grant Erickson <marathon96@gmail.com>

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(-)

diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index 9ece4b0..69fbc10 100644
--- a/gdbus/gdbus.h
+++ b/gdbus/gdbus.h
@@ -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;
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdbus: Move typedefs for interwork with strict compilers
  2015-12-08 16:09 [PATCH] gdbus: Move typedefs for interwork with strict compilers Patrik Flykt
@ 2015-12-09 10:24 ` Johan Hedberg
  2015-12-09 19:40   ` Patrik Flykt
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2015-12-09 10:24 UTC (permalink / raw)
  To: Patrik Flykt; +Cc: connman, linux-bluetooth, Grant Erickson

Hi Patrik,

On Tue, Dec 08, 2015, Patrik Flykt wrote:
> 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.

Applied. Thanks.

Johan
_______________________________________________
connman mailing list
connman@lists.01.org
https://lists.01.org/mailman/listinfo/connman

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdbus: Move typedefs for interwork with strict compilers
  2015-12-09 10:24 ` Johan Hedberg
@ 2015-12-09 19:40   ` Patrik Flykt
  0 siblings, 0 replies; 3+ messages in thread
From: Patrik Flykt @ 2015-12-09 19:40 UTC (permalink / raw)
  To: Johan Hedberg; +Cc: connman, linux-bluetooth, Grant Erickson


	Hi,

On Wed, 2015-12-09 at 12:24 +0200, Johan Hedberg wrote:
> Hi Patrik,
> 
> On Tue, Dec 08, 2015, Patrik Flykt wrote:
> > 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.
> 
> Applied. Thanks.
> 
> Johan

Thanks. ConnMan ./gdbus is now in sync with Bluez.

Cheers,

	Patrik

_______________________________________________
connman mailing list
connman@lists.01.org
https://lists.01.org/mailman/listinfo/connman

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-09 19:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 16:09 [PATCH] gdbus: Move typedefs for interwork with strict compilers Patrik Flykt
2015-12-09 10:24 ` Johan Hedberg
2015-12-09 19:40   ` Patrik Flykt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.