summaryrefslogtreecommitdiff
path: root/src/shared/bus-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-06-28 15:59:37 +0200
committerLennart Poettering <lennart@poettering.net>2020-06-30 15:09:19 +0200
commit9b71e4ab90b4e1cb048f4cd13e0fde6f999cf6e8 (patch)
treed7af332fd87ca635aeddc552236ab623341d7c96 /src/shared/bus-util.c
parentc664cf56071a256121015eda330d471ff166682f (diff)
downloadsystemd-9b71e4ab90b4e1cb048f4cd13e0fde6f999cf6e8.tar.gz
shared: actually move all BusLocator related calls to bus-locator.c
Diffstat (limited to 'src/shared/bus-util.c')
-rw-r--r--src/shared/bus-util.c150
1 files changed, 0 insertions, 150 deletions
diff --git a/src/shared/bus-util.c b/src/shared/bus-util.c
index a43fe66888..b018a9e527 100644
--- a/src/shared/bus-util.c
+++ b/src/shared/bus-util.c
@@ -1396,153 +1396,3 @@ const struct hash_ops bus_message_hash_ops = {
.compare = trivial_compare_func,
.free_value = bus_message_unref_wrapper,
};
-
-/* Shorthand flavors of the sd-bus convenience helpers with destination,path,interface
- * strings encapsulated within a single struct.
- */
-int bus_call_method_async(
- sd_bus *bus,
- sd_bus_slot **slot,
- const BusLocator *locator,
- const char *member,
- sd_bus_message_handler_t callback,
- void *userdata,
- const char *types, ...) {
-
- va_list ap;
- int r;
-
- assert(locator);
-
- va_start(ap, types);
- r = sd_bus_call_method_asyncv(bus, slot, locator->destination, locator->path, locator->interface, member, callback, userdata, types, ap);
- va_end(ap);
-
- return r;
-}
-
-int bus_call_method(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- sd_bus_message **reply,
- const char *types, ...) {
-
- va_list ap;
- int r;
-
- assert(locator);
-
- va_start(ap, types);
- r = sd_bus_call_methodv(bus, locator->destination, locator->path, locator->interface, member, error, reply, types, ap);
- va_end(ap);
-
- return r;
-}
-
-int bus_get_property(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- sd_bus_message **reply,
- const char *type) {
-
- assert(locator);
-
- return sd_bus_get_property(bus, locator->destination, locator->path, locator->interface, member, error, reply, type);
-}
-
-int bus_get_property_trivial(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- char type, void *ptr) {
-
- assert(locator);
-
- return sd_bus_get_property_trivial(bus, locator->destination, locator->path, locator->interface, member, error, type, ptr);
-}
-
-int bus_get_property_string(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- char **ret) {
-
- assert(locator);
-
- return sd_bus_get_property_string(bus, locator->destination, locator->path, locator->interface, member, error, ret);
-}
-
-int bus_get_property_strv(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- char ***ret) {
-
- assert(locator);
-
- return sd_bus_get_property_strv(bus, locator->destination, locator->path, locator->interface, member, error, ret);
-}
-
-int bus_set_property(
- sd_bus *bus,
- const BusLocator *locator,
- const char *member,
- sd_bus_error *error,
- const char *type, ...) {
-
- va_list ap;
- int r;
-
- assert(locator);
-
- va_start(ap, type);
- r = sd_bus_set_propertyv(bus, locator->destination, locator->path, locator->interface, member, error, type, ap);
- va_end(ap);
-
- return r;
-}
-
-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) {
-
- assert(locator);
-
- return sd_bus_match_signal(bus, ret, locator->destination, locator->path, locator->interface, member, callback, 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) {
-
- assert(locator);
-
- 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);
-}