diff options
Diffstat (limited to 'audio/gateway.c')
-rw-r--r-- | audio/gateway.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/audio/gateway.c b/audio/gateway.c index 3b84462d..0c540de5 100644 --- a/audio/gateway.c +++ b/audio/gateway.c @@ -551,3 +551,22 @@ void gateway_exit(void) dbus_connection_unref(connection); connection = NULL; } + +gboolean gateway_is_enabled(uint16_t svc) +{ + gboolean ret; + + switch (svc) { + case HEADSET_SVCLASS_ID: + ret = (hs_server != NULL); + break; + case HANDSFREE_SVCLASS_ID: + ret = (hf_server != NULL); + break; + default: + ret = FALSE; + break; + } + + return ret; +} |