summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-05-29 11:57:06 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-05-31 07:32:13 (GMT)
commit243ca16628fff07f8185c8e5083c6d46e7f34b38 (patch)
tree64a0da29b82e52637315913d1b92529ff1ffd0a6 /gdbus
parent18ec478652f819b8837b136ed117d8b882b2b3f6 (diff)
downloadconnman-243ca16628fff07f8185c8e5083c6d46e7f34b38.zip
connman-243ca16628fff07f8185c8e5083c6d46e7f34b38.tar.gz
connman-243ca16628fff07f8185c8e5083c6d46e7f34b38.tar.bz2
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')
-rw-r--r--gdbus/gdbus.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
index e2e160d..0a8a27c 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