From ac9481b7ad48944f727f6f42237e4e4da32a10a7 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Fri, 20 Jul 2007 18:03:20 +0000 Subject: Move server registration and sdp record code from gateway to manager. --- audio/headset.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'audio/headset.c') diff --git a/audio/headset.c b/audio/headset.c index 1e57c177..e97a99cf 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -1279,9 +1279,6 @@ void headset_update(void *device, sdp_record_t *record, uint16_t svc) { struct headset *headset = ((struct device *) device)->headset; - if (!gateway_is_enabled(svc)) - return; - switch (svc) { case HANDSFREE_SVCLASS_ID: if (headset->hfp_handle && @@ -1330,11 +1327,6 @@ struct headset *headset_init(void *device, sdp_record_t *record, if (!record) goto register_iface; - if (!gateway_is_enabled(svc)) { - g_free(hs); - return NULL; - } - switch (svc) { case HANDSFREE_SVCLASS_ID: hs->hfp_handle = record->handle; -- cgit