summaryrefslogtreecommitdiffstats
path: root/bus/services.h
diff options
context:
space:
mode:
Diffstat (limited to 'bus/services.h')
-rw-r--r--bus/services.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/bus/services.h b/bus/services.h
index 3dd2b0f5..3f6b31a9 100644
--- a/bus/services.h
+++ b/bus/services.h
@@ -38,17 +38,22 @@ typedef struct BusService BusService;
typedef void (* BusServiceForeachFunction) (BusService *service,
void *data);
-BusService* bus_service_lookup (const DBusString *service_name,
- dbus_bool_t create_if_not_found);
-void bus_service_free (BusService *service);
-dbus_bool_t bus_service_add_owner (BusService *service,
- DBusConnection *owner);
-void bus_service_remove_owner (BusService *service,
- DBusConnection *owner);
-DBusConnection* bus_service_get_primary_owner (BusService *service);
-const char* bus_service_get_name (BusService *service);
-void bus_service_foreach (BusServiceForeachFunction function,
- void *data);
+BusService* bus_service_lookup (const DBusString *service_name,
+ dbus_bool_t create_if_not_found);
+dbus_bool_t bus_service_add_owner (BusService *service,
+ DBusConnection *owner);
+void bus_service_remove_owner (BusService *service,
+ DBusConnection *owner);
+dbus_bool_t bus_service_has_owner (BusService *service,
+ DBusConnection *owner);
+DBusConnection* bus_service_get_primary_owner (BusService *service);
+void bus_service_set_prohibit_replacement (BusService *service,
+ dbus_bool_t prohibit_replacement);
+dbus_bool_t bus_service_get_prohibit_replacement (BusService *service);
+const char* bus_service_get_name (BusService *service);
+void bus_service_foreach (BusServiceForeachFunction function,
+ void *data);
+
char **bus_services_list (int *array_len);