diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-05-18 17:30:10 -0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-18 15:02:37 -0700 |
commit | 5064f6bb6452d89cec60ba9828db5d427113ca56 (patch) | |
tree | b6b9e9f185331f0310d2e38b848472a25ac2f625 | |
parent | c63eb830386932317033acd092a56f9b82755f4c (diff) | |
download | connman-5064f6bb6452d89cec60ba9828db5d427113ca56.tar.gz connman-5064f6bb6452d89cec60ba9828db5d427113ca56.tar.bz2 connman-5064f6bb6452d89cec60ba9828db5d427113ca56.zip |
gdbus: remove signature and reply from tables
-rw-r--r-- | gdbus/gdbus.h | 51 | ||||
-rw-r--r-- | gdbus/object.c | 2 |
2 files changed, 1 insertions, 52 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 8354633b..e2e160df 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -89,8 +89,6 @@ typedef struct { typedef struct { const char *name; - const char *signature; - const char *reply; GDBusMethodFunction function; GDBusMethodFlags flags; unsigned int privilege; @@ -100,7 +98,6 @@ typedef struct { typedef struct { const char *name; - const char *signature; GDBusSignalFlags flags; const GDBusArgInfo *args; } GDBusSignalTable; @@ -120,54 +117,6 @@ typedef struct { #define GDBUS_ARGS(args...) (const GDBusArgInfo[]) { args, { } } -#define _GDBUS_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 - -#define _GDBUS_ASYNC_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_ASYNC - -#define _GDBUS_DEPRECATED_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_DEPRECATED - -#define _GDBUS_DEPRECATED_ASYNC_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_ASYNC | G_DBUS_METHOD_FLAG_DEPRECATED - -#define _GDBUS_SIGNAL(_name, _signature, _args) \ - .name = _name, \ - .signature = _signature, \ - .args = _args - -#define _GDBUS_DEPRECATED_SIGNAL(_name, _signature, _args) \ - .name = _name, \ - .signature = _signature, \ - .args = _args, \ - .flags = G_DBUS_SIGNAL_FLAG_DEPRECATED - -/* Helpers with no signature and reply */ - #define GDBUS_METHOD(_name, _in_args, _out_args, _function) \ .name = _name, \ .in_args = _in_args, \ diff --git a/gdbus/object.c b/gdbus/object.c index b187bb59..fcdd6eca 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -471,7 +471,7 @@ done: } static const GDBusMethodTable introspect_methods[] = { - { _GDBUS_METHOD("Introspect", "", "s", NULL, + { GDBUS_METHOD("Introspect", NULL, GDBUS_ARGS({ "xml", "s" }), introspect) }, { } }; |