[Rpm-maint] [rpm-software-management/rpm] Add dbus-announce plugin (#1255)
Panu Matilainen
notifications at github.com
Wed Jun 10 10:15:43 UTC 2020
@pmatilai commented on this pull request.
> + char * dbcookie;
+
+ if (!state->logging) {
+ return RPMRC_OK;
+ }
+
+ msg = dbus_message_new_signal("/org/rpm/Transaction", // object name
+ "org.rpm.Transaction", // interface name
+ name); // name of the signal
+ if (NULL == msg) {
+ return RPMRC_FAIL;
+ }
+
+ dbcookie = rpmdbCookie(rpmtsGetRdb(ts));
+ if (!dbus_message_append_args(msg, DBUS_TYPE_STRING, &dbcookie)) {
+ return RPMRC_FAIL;
This leaks memory in the failure case.
--
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-427912875
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200610/8492ec6c/attachment.html>
More information about the Rpm-maint
mailing list