[Rpm-maint] [rpm-software-management/rpm] Add dbus-announce plugin (#1255)
Panu Matilainen
notifications at github.com
Wed Jun 2 07:54:43 UTC 2021
@pmatilai commented on this pull request.
> +{
+ struct dbus_announce_data * state = rpmPluginGetData(plugin);
+ DBusMessage* msg;
+ char * dbcookie = NULL;
+
+ if (!state->bus)
+ return RPMRC_OK;
+
+ msg = dbus_message_new_signal("/org/rpm/Transaction", /* object name */
+ "org.rpm.Transaction", /* interface name */
+ name); /* signal name */
+ if (msg == NULL)
+ goto err;
+
+ dbcookie = rpmdbCookie(rpmtsGetRdb(ts));
+ if (!dbus_message_append_args(msg, DBUS_TYPE_STRING, &dbcookie))
Sorry for not realizing this earlier: we really should add transaction ID to these messages.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1255#pullrequestreview-673895857
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210602/2a63ed4b/attachment.html>
More information about the Rpm-maint
mailing list