Convert GDBus methods to use macro helpers

With these macro helpers we can separate in/out arguments and use their
own vector.
This commit is contained in:
Lucas De Marchi
2012-05-20 02:07:29 -03:00
committed by Marcel Holtmann
parent 8e815c100b
commit b3489f2ee8
31 changed files with 406 additions and 234 deletions

View File

@@ -152,8 +152,12 @@ static DBusMessage *push_notification_unregister_agent(DBusConnection *conn,
}
static const GDBusMethodTable push_notification_methods[] = {
{ "RegisterAgent", "o", "", push_notification_register_agent },
{ "UnregisterAgent", "o", "", push_notification_unregister_agent },
{ _GDBUS_METHOD("RegisterAgent", "o", "",
GDBUS_ARGS({ "path", "o" }), NULL,
push_notification_register_agent) },
{ _GDBUS_METHOD("UnregisterAgent", "o", "",
GDBUS_ARGS({ "path", "o" }), NULL,
push_notification_unregister_agent) },
{ }
};