summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2020-04-10 00:34:37 -0700
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2020-04-10 11:30:05 +0200
commitdf91e319a9a94566436064f633909e1be52a2d70 (patch)
tree831564c0b54c92919c7518f4632debdb05c83de9 /src/shared/bus-util.c
parenta028ef14c99b10691a8155af27b2168fc1c99c5f (diff)
downloadsystemd-df91e319a9a94566436064f633909e1be52a2d70.tar.gz
bus: add sd_bus_message_new_method_call() helper
adds BusLocator variant called bus_message_new_method_call()
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r--src/shared/bus-util.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index ddc80d835c..81683e5afe 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1538,3 +1538,14 @@ int bus_match_signal_async(
return sd_bus_match_signal_async(bus, ret, locator->destination, locator->path, locator->interface, member, callback, install_callback, userdata);
}
+
+int bus_message_new_method_call(
+ sd_bus *bus,
+ sd_bus_message **m,
+ const BusLocator *locator,
+ const char *member) {
+
+ assert(locator);
+
+ return sd_bus_message_new_method_call(bus, m, locator->destination, locator->path, locator->interface, member);
+}