diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-19 01:47:05 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 21:51:49 -0700 |
commit | 9a3d4cf6fd647c1b79686a69b52d297ac65838d9 (patch) | |
tree | 745298b7a02053fdc082b8831adb546677c7f7fb /gdbus | |
parent | 5c47b06d54c55339225a0e9094b4c543db79e174 (diff) | |
download | pacrunner-9a3d4cf6fd647c1b79686a69b52d297ac65838d9.tar.gz |
gdbus: add macro for methods marked as NOREPLY
Diffstat (limited to 'gdbus')
-rw-r--r-- | gdbus/gdbus.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 8354633..868c8d5 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -155,6 +155,15 @@ typedef struct { .function = _function, \ .flags = G_DBUS_METHOD_FLAG_ASYNC | G_DBUS_METHOD_FLAG_DEPRECATED +#define _GDBUS_NOREPLY_METHOD(_name, _signature, _reply, _in_args, _out_args, _function) \ + .name = _name, \ + .signature = _signature, \ + .reply = _reply, \ + .in_args = _in_args, \ + .out_args = _out_args, \ + .function = _function, \ + .flags = G_DBUS_METHOD_FLAG_NOREPLY + #define _GDBUS_SIGNAL(_name, _signature, _args) \ .name = _name, \ .signature = _signature, \ @@ -195,6 +204,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 |