[Rpm-maint] [rpm-software-management/rpm] Extend dbus-announce plugin (PR #3532)
mcrha
notifications at github.com
Mon Feb 24 14:11:06 UTC 2025
@mcrha commented on this pull request.
> @@ -103,9 +119,77 @@ static rpmRC send_ts_message(rpmPlugin plugin,
dbcookie = rpmdbCookie(rpmtsGetRdb(ts));
rpm_tid_t tid = rpmtsGetTid(ts);
+
+ if (!dbus_message_append_args(msg,
+ DBUS_TYPE_STRING, &dbcookie,
+ DBUS_TYPE_UINT32, &tid,
+ DBUS_TYPE_INVALID))
+ goto err;
+
+ if (!dbus_connection_send(state->bus, msg, NULL))
+ goto err;
+
+ if (snprintf(detail_name, sizeof(detail_name), "%sDetails", name) >= sizeof(detail_name)) {
This has got void with the split into two functions to construct the message and one to actually send the constructed message. I added more debug info (though as warnings) too.
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3532#discussion_r1967713144
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3532/review/2637222926 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20250224/5415312f/attachment.htm>
More information about the Rpm-maint
mailing list