1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

dbus: fix return value name in introspection data

This commit is contained in:
Lennart Poettering 2010-04-04 22:54:11 +02:00
parent 0b7964b804
commit 4ca5640b27

View File

@ -38,7 +38,7 @@
" </method>" \ " </method>" \
" <method name=\"GetJob\">" \ " <method name=\"GetJob\">" \
" <arg name=\"id\" type=\"u\" direction=\"in\"/>" \ " <arg name=\"id\" type=\"u\" direction=\"in\"/>" \
" <arg name=\"unit\" type=\"o\" direction=\"out\"/>" \ " <arg name=\"job\" type=\"o\" direction=\"out\"/>" \
" </method>" \ " </method>" \
" <method name=\"ClearJobs\"/>" \ " <method name=\"ClearJobs\"/>" \
" <method name=\"ListUnits\">" \ " <method name=\"ListUnits\">" \
@ -142,7 +142,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection
DBUS_TYPE_INVALID)) DBUS_TYPE_INVALID))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "GetJob")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "GetJob")) {
uint32_t id; uint32_t id;
Job *j; Job *j;
@ -168,14 +168,14 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection
DBUS_TYPE_INVALID)) DBUS_TYPE_INVALID))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ClearJobs")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ClearJobs")) {
manager_clear_jobs(m); manager_clear_jobs(m);
if (!(reply = dbus_message_new_method_return(message))) if (!(reply = dbus_message_new_method_return(message)))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ListUnits")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ListUnits")) {
DBusMessageIter iter, sub; DBusMessageIter iter, sub;
Iterator i; Iterator i;
Unit *u; Unit *u;
@ -249,7 +249,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection
if (!dbus_message_iter_close_container(&iter, &sub)) if (!dbus_message_iter_close_container(&iter, &sub))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ListJobs")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "ListJobs")) {
DBusMessageIter iter, sub; DBusMessageIter iter, sub;
Iterator i; Iterator i;
Job *j; Job *j;
@ -305,7 +305,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection
if (!dbus_message_iter_close_container(&iter, &sub)) if (!dbus_message_iter_close_container(&iter, &sub))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "Subscribe")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "Subscribe")) {
char *client; char *client;
if (!(client = strdup(dbus_message_get_sender(message)))) if (!(client = strdup(dbus_message_get_sender(message))))
@ -319,7 +319,7 @@ static DBusHandlerResult bus_manager_message_handler(DBusConnection *connection
if (!(reply = dbus_message_new_method_return(message))) if (!(reply = dbus_message_new_method_return(message)))
goto oom; goto oom;
} else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "Unsubscribe")) { } else if (dbus_message_is_method_call(message, "org.freedesktop.systemd1", "Unsubscribe")) {
char *client; char *client;
if (!(client = set_remove(m->subscribed, (char*) dbus_message_get_sender(message)))) if (!(client = set_remove(m->subscribed, (char*) dbus_message_get_sender(message))))