]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network/queue: introduce manager_queue_request_full()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 17 Aug 2024 04:04:03 +0000 (13:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Aug 2024 11:49:32 +0000 (20:49 +0900)
Currently it is not used, but will be used later.

src/network/networkd-queue.c
src/network/networkd-queue.h

index 98c629f161dc6bf556f648d18cfd889cef53d29d..7943ab5fb09a87e0a79b74ee5d8ddf9d917d45ed 100644 (file)
@@ -216,6 +216,23 @@ int link_queue_request_full(
                            process, counter, netlink_handler, ret);
 }
 
+int manager_queue_request_full(
+                Manager *manager,
+                RequestType type,
+                void *userdata,
+                mfree_func_t free_func,
+                hash_func_t hash_func,
+                compare_func_t compare_func,
+                request_process_func_t process,
+                unsigned *counter,
+                request_netlink_handler_t netlink_handler,
+                Request **ret) {
+
+        return request_new(manager, NULL, type,
+                           userdata, free_func, hash_func, compare_func,
+                           process, counter, netlink_handler, ret);
+}
+
 int link_requeue_request(Link *link, Request *req, void *userdata, Request **ret) {
         assert(link);
         assert(req);
index e35cd73efd944def8120bce462d904cef36e557a..3289183f2ddabd02998f4a5571a83306caa339b0 100644 (file)
@@ -107,6 +107,18 @@ int link_queue_request_full(
                 request_netlink_handler_t netlink_handler,
                 Request **ret);
 
+int manager_queue_request_full(
+                Manager *manager,
+                RequestType type,
+                void *userdata,
+                mfree_func_t free_func,
+                hash_func_t hash_func,
+                compare_func_t compare_func,
+                request_process_func_t process,
+                unsigned *counter,
+                request_netlink_handler_t netlink_handler,
+                Request **ret);
+
 int link_requeue_request(Link *link, Request *req, void *userdata, Request **ret);
 
 static inline int link_queue_request(