gdbus: Add macro for methods marked as NOREPLY
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 29 May 2012 11:57:06 +0000 (08:57 -0300)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Thu, 31 May 2012 07:32:13 +0000 (10:32 +0300)
Bring gdbus up to sync with other projects. The macro is
not yet used in ConnMan.

gdbus/gdbus.h

index e2e160d..0a8a27c 100644 (file)
@@ -144,6 +144,13 @@ typedef struct {
        .function = _function, \
        .flags = G_DBUS_METHOD_FLAG_ASYNC | G_DBUS_METHOD_FLAG_DEPRECATED
 
+#define GDBUS_NOREPLY_METHOD(_name, _in_args, _out_args, _function) \
+       .name = _name, \
+       .in_args = _in_args, \
+       .out_args = _out_args, \
+       .function = _function, \
+       .flags = G_DBUS_METHOD_FLAG_NOREPLY
+
 #define GDBUS_SIGNAL(_name, _args) \
        .name = _name, \
        .args = _args