diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 17:24:48 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-05-08 17:24:48 +0000 |
commit | 2af3c3a7ddc43577c067892cdfdc06dc4e63386c (patch) | |
tree | 6ed975fdc985e2d4c55e97f58b2d7ef124485b98 /hcid/dbus-service.h | |
parent | e3dede624b3f622fdb176b140e057f98cf26ca2b (diff) |
Remove service daemon activation handling
Diffstat (limited to 'hcid/dbus-service.h')
-rw-r--r-- | hcid/dbus-service.h | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/hcid/dbus-service.h b/hcid/dbus-service.h index 72a23f25..c96179ea 100644 --- a/hcid/dbus-service.h +++ b/hcid/dbus-service.h @@ -22,29 +22,10 @@ * */ -#define START_REPLY_TIMEOUT 5000 - struct service { - char *filename; char *object_path; - - DBusMessage *action; /* Either Start or Stop method call */ - - guint startup_timer; - guint shutdown_timer; - - /* These are set when the service is running */ - GPid pid; /* Process id */ - char *bus_name; /* D-Bus unique name */ - - /* Information parsed from the service file */ - char *name; - char *descr; char *ident; - gboolean autostart; - - /* Services without a *.service file */ - gboolean external; + char *name; }; void release_services(DBusConnection *conn); @@ -55,17 +36,13 @@ struct service *search_service(const char *pattern); struct service *search_service_by_uuid(const char *uuid); -int service_start(struct service *service, DBusConnection *conn); - -int init_services(const char *path); - -int service_register(DBusConnection *conn, const char *bus_name, const char *ident, - const char *name, const char *description); - int service_unregister(DBusConnection *conn, struct service *service); -void register_uuids(const char *name, const char **uuids); -void unregister_uuids(const char *name); +int register_service(const char *ident); +void unregister_service(const char *ident); + +void register_uuids(const char *ident, const char **uuids); +void unregister_uuids(const char *ident); typedef void (*service_auth_cb) (DBusError *derr, void *user_data); int service_req_auth(bdaddr_t *src, bdaddr_t *dst, |