From 81787036f2758fb23226d8b62dfd034ecea55ba0 Mon Sep 17 00:00:00 2001 From: Marek Blaha Date: Wed, 29 May 2024 10:35:53 +0200 Subject: [PATCH] daemon: Generate transfer_id on server side The list_fd() method of the Rpm interface uses a unique transfer_id to identify which particular file descriptor transfer has finished. Previously, it was the client's responsibility to pass this unique identifier to the server in the list_fd() method call. With this patch, the identifier is generated on the server side, simplifying the method's usage for clients. Resolves: https://github.com/rpm-software-management/dnf5/issues/1493 --- .../dbus/interfaces/org.rpm.dnf.v0.rpm.Rpm.xml | 2 +- dnf5daemon-server/services/rpm/rpm.cpp | 15 ++++++--------- dnf5daemon-server/services/rpm/rpm.hpp | 2 +- dnf5daemon-server/threads_manager.hpp | 13 +++++++++---- doc/dnf_daemon/examples/rpm_list_fd.py | 7 +++++-- 5 files changed, 22 insertions(+), 17 deletions(-) diff --git a/dnf5daemon-server/dbus/interfaces/org.rpm.dnf.v0.rpm.Rpm.xml b/dnf5daemon-server/dbus/interfaces/org.rpm.dnf.v0.rpm.Rpm.xml index e0b2266d0..d39d9477e 100644 --- a/dnf5daemon-server/dbus/interfaces/org.rpm.dnf.v0.rpm.Rpm.xml +++ b/dnf5daemon-server/dbus/interfaces/org.rpm.dnf.v0.rpm.Rpm.xml @@ -107,7 +107,7 @@ along with libdnf. If not, see . - +