OSDN Git Service

gdbus: add macro for methods marked as NOREPLY
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Mon, 21 May 2012 14:54:35 +0000 (11:54 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 18 Jun 2012 14:32:18 +0000 (17:32 +0300)
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