mirror of
https://github.com/sailfishos/ofono
synced 2025-12-04 16:41:04 +08:00
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:
committed by
Marcel Holtmann
parent
8e815c100b
commit
b3489f2ee8
@@ -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) },
|
||||
{ }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user