dbus: include unit name in JobNew/JobRemoved signals
This breaks D-Bus interface slightly, but since the D-Bus API isn't covered by the interface stability promise this should be OK.
This commit is contained in:
@@ -295,6 +295,7 @@ static DBusMessage* new_change_signal_message(Job *j) {
|
||||
if (!dbus_message_append_args(m,
|
||||
DBUS_TYPE_UINT32, &j->id,
|
||||
DBUS_TYPE_OBJECT_PATH, &p,
|
||||
DBUS_TYPE_STRING, &j->unit->id,
|
||||
DBUS_TYPE_INVALID))
|
||||
goto oom;
|
||||
}
|
||||
@@ -326,6 +327,7 @@ static DBusMessage* new_removed_signal_message(Job *j) {
|
||||
if (!dbus_message_append_args(m,
|
||||
DBUS_TYPE_UINT32, &j->id,
|
||||
DBUS_TYPE_OBJECT_PATH, &p,
|
||||
DBUS_TYPE_STRING, &j->unit->id,
|
||||
DBUS_TYPE_STRING, &r,
|
||||
DBUS_TYPE_INVALID))
|
||||
goto oom;
|
||||
|
||||
@@ -198,10 +198,12 @@
|
||||
" <signal name=\"JobNew\">\n" \
|
||||
" <arg name=\"id\" type=\"u\"/>\n" \
|
||||
" <arg name=\"job\" type=\"o\"/>\n" \
|
||||
" <arg name=\"unit\" type=\"s\"/>\n" \
|
||||
" </signal>\n" \
|
||||
" <signal name=\"JobRemoved\">\n" \
|
||||
" <arg name=\"id\" type=\"u\"/>\n" \
|
||||
" <arg name=\"job\" type=\"o\"/>\n" \
|
||||
" <arg name=\"unit\" type=\"s\"/>\n" \
|
||||
" <arg name=\"result\" type=\"s\"/>\n" \
|
||||
" </signal>" \
|
||||
" <signal name=\"StartupFinished\">\n" \
|
||||
|
||||
Reference in New Issue
Block a user