diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-19 21:03:53 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-01-19 21:03:53 +0000 |
commit | 6d6b1e82f0f3c51254417264aa70b417f7ad3e7a (patch) | |
tree | c4ff2cff015b5db56805fb39f8eccceec846695d /hcid | |
parent | 2f8c48d48529b951e514be6541f272c0ecca48a7 (diff) |
Remove unused register_service_records function
Diffstat (limited to 'hcid')
-rw-r--r-- | hcid/dbus-service.c | 23 | ||||
-rw-r--r-- | hcid/dbus-service.h | 2 |
2 files changed, 0 insertions, 25 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index b319b2be..2a756cbb 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -133,28 +133,6 @@ static void service_free(struct service *service) free(service); } -int register_service_records(GSList *lrecords) -{ - while (lrecords) { - struct binary_record *rec = lrecords->data; - lrecords = lrecords->next; - uint32_t handle = 0; - - if (!rec || !rec->buf || rec->handle != 0xffffffff) - continue; - - if (register_sdp_record(rec->buf->data, rec->buf->data_size, &handle) < 0) { - /* FIXME: If just one of the service record registration fails */ - error("Service Record registration failed:(%s, %d)", - strerror(errno), errno); - } - - rec->handle = handle; - } - - return 0; -} - static int unregister_service_records(GSList *lrecords) { while (lrecords) { @@ -1003,4 +981,3 @@ int init_services(const char *path) return 0; } - diff --git a/hcid/dbus-service.h b/hcid/dbus-service.h index bb308c46..43cf8eee 100644 --- a/hcid/dbus-service.h +++ b/hcid/dbus-service.h @@ -66,8 +66,6 @@ void append_available_services(DBusMessageIter *iter); struct service *search_service(DBusConnection *conn, const char *pattern); -int register_service_records(GSList *lrecords); - int service_start(struct service *service, DBusConnection *conn); int init_services(const char *path); |