diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-29 08:57:06 -0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-31 10:32:13 +0300 |
commit | 243ca16628fff07f8185c8e5083c6d46e7f34b38 (patch) | |
tree | 64a0da29b82e52637315913d1b92529ff1ffd0a6 /gdbus/gdbus.h | |
parent | 18ec478652f819b8837b136ed117d8b882b2b3f6 (diff) | |
download | connman-243ca16628fff07f8185c8e5083c6d46e7f34b38.tar.gz connman-243ca16628fff07f8185c8e5083c6d46e7f34b38.tar.bz2 connman-243ca16628fff07f8185c8e5083c6d46e7f34b38.zip |
gdbus: Add macro for methods marked as NOREPLY
Bring gdbus up to sync with other projects. The macro is
not yet used in ConnMan.
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index e2e160df..0a8a27c5 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -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 |