diff options
| -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); | 
