diff options
| author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-11-07 12:46:30 +0000 |
|---|---|---|
| committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2006-11-07 12:46:30 +0000 |
| commit | 1b2d818457e3998bf64ed0dea5080aee73181674 (patch) | |
| tree | 6a382b37a58efea6c73971f0ea8a476b2f51de72 /hcid/dbus-service.c | |
| parent | b2de3fcb62ea69ee5b1181078893a4eb1c02c888 (diff) | |
Added autostart feature when calling RegisterService
Diffstat (limited to 'hcid/dbus-service.c')
| -rw-r--r-- | hcid/dbus-service.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index b7eda84d..8f04dfdb 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -43,20 +43,11 @@ #include "dbus-manager.h" #include "dbus-service.h" -#define START_REPLY_TIMEOUT 5000 - -#define SERVICE_RUNNING 1 -#define SERVICE_NOT_RUNNING 0 - -struct service_call { - DBusConnection *conn; - DBusMessage *msg; - struct service_agent *agent; -}; static struct slist *services = NULL; -static struct service_call *service_call_new(DBusConnection *conn, DBusMessage *msg, struct service_agent *agent) +struct service_call *service_call_new(DBusConnection *conn, DBusMessage *msg, + struct service_agent *agent) { struct service_call *call; call = malloc(sizeof(struct service_call)); @@ -70,7 +61,7 @@ static struct service_call *service_call_new(DBusConnection *conn, DBusMessage * return call; } -static void service_call_free(void *data) +void service_call_free(void *data) { struct service_call *call = data; @@ -182,7 +173,7 @@ mem_fail: return NULL; } -static int register_agent_records(struct slist *lrecords) +int register_agent_records(struct slist *lrecords) { sdp_session_t *sess; sdp_record_t *rec; |
