+ return m;
+}
+
+static DBusMessage* new_removed_signal_message(Job *j) {
+ _cleanup_free_ char *p = NULL;
+ DBusMessage *m;
+ const char *r;
+
+ p = job_dbus_path(j);
+ if (!p)
+ return NULL;
+
+ m = dbus_message_new_signal("/org/freedesktop/systemd1", "org.freedesktop.systemd1.Manager", "JobRemoved");
+ if (!m)
+ return NULL;
+
+ r = job_result_to_string(j->result);
+
+ 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)) {
+ dbus_message_unref(m);
+ return NULL;
+ }