diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-01 01:05:46 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2008-05-01 01:05:46 +0000 |
commit | 098cd10838193272c669348c5ffd0410218e1bcc (patch) | |
tree | eb7fffb0e440dbb33391029c607de2b678bb3c2e /audio | |
parent | 2d5441331d402a0d78c4b84a028df076f6aab8cf (diff) |
fixed service authorization
Diffstat (limited to 'audio')
-rw-r--r-- | audio/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/audio/main.c b/audio/main.c index b2566c95..47e2c513 100644 --- a/audio/main.c +++ b/audio/main.c @@ -41,6 +41,20 @@ #include "device.h" #include "manager.h" +static const char *uuids[] = { + GENERIC_AUDIO_UUID, + HSP_HS_UUID, + HSP_AG_UUID, + HFP_HS_UUID, + HFP_AG_UUID, + ADVANCED_AUDIO_UUID, + A2DP_SOURCE_UUID, + A2DP_SINK_UUID, + AVRCP_REMOTE_UUID, + AVRCP_TARGET_UUID, + NULL +}; + static GKeyFile *load_config_file(const char *file) { GError *err = NULL; @@ -82,6 +96,8 @@ static int audio_init(void) g_key_file_free(config); + register_uuids("audio", &uuids); + register_external_service(conn, "audio", "Audio service", ""); return 0; |