diff options
-rw-r--r-- | src/shared/bus-util.c | 11 | ||||
-rw-r--r-- | src/shared/bus-util.h | 1 |
2 files changed, 12 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); +} diff --git a/src/shared/bus-util.h b/src/shared/bus-util.h index 65082e866f..fd1820ca7e 100644 --- a/src/shared/bus-util.h +++ b/src/shared/bus-util.h @@ -198,3 +198,4 @@ int bus_get_property_strv(sd_bus *bus, const BusLocator *locator, const char *me int bus_set_property(sd_bus *bus, const BusLocator *locator, const char *member, sd_bus_error *error, const char *type, ...); int bus_match_signal(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, void *userdata); int bus_match_signal_async(sd_bus *bus, sd_bus_slot **ret, const BusLocator *locator, const char *member, sd_bus_message_handler_t callback, sd_bus_message_handler_t install_callback, void *userdata); +int bus_message_new_method_call(sd_bus *bus, sd_bus_message **m, const BusLocator *locator, const char *member); |