diff options
Diffstat (limited to 'src/d_bus.c')
-rw-r--r-- | src/d_bus.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/d_bus.c b/src/d_bus.c index 79405f5..79ac6ab 100644 --- a/src/d_bus.c +++ b/src/d_bus.c @@ -41,10 +41,7 @@ int dbus_set_property_string(const string_quadruple_t* path, const char* value) return (r>0?(0):(r)); } -const char* dbus_get_property_string(const char *destination, - const char *path, - const char *interface, - const char *member) +char* dbus_get_property_string(const string_quadruple_t* path ) { _cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_bus_message_unref_ sd_bus_message *m = NULL; @@ -59,10 +56,10 @@ const char* dbus_get_property_string(const char *destination, r = sd_bus_get_property_string( bus, - destination, - path, - interface, - member, + path->first, + path->second, + path->third, + path->fourth, &error, &state); if (r >= 0) |