mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
bus: add sd_bus_message_new_method_call() helper
adds BusLocator variant called bus_message_new_method_call()
This commit is contained in:
parent
a028ef14c9
commit
df91e319a9
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user