From c2097a4a073ea5c3ef364c56355d0a3595445684 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 15 Nov 2012 12:42:19 +0200 Subject: [PATCH] core: Add HFP AG defautl record for external profiles --- src/profile.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/src/profile.c b/src/profile.c index 9bd788039..30d9723ff 100644 --- a/src/profile.c +++ b/src/profile.c @@ -106,6 +106,50 @@ \ " +#define HFP_AG_RECORD \ + " \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + " + struct ext_profile { struct btd_profile p; @@ -1042,6 +1086,12 @@ static char *get_hfp_hf_record(struct ext_profile *ext) ext->name, ext->features); } +static char *get_hfp_ag_record(struct ext_profile *ext) +{ + return g_strdup_printf(HFP_AG_RECORD, ext->chan, ext->version, + ext->name, ext->features); +} + static struct default_settings { const char *uuid; int priority; @@ -1071,6 +1121,7 @@ static struct default_settings { .priority = BTD_PROFILE_PRIORITY_HIGH, .remote_uuid = HFP_HS_UUID, .channel = HFP_AG_DEFAULT_CHANNEL, + .get_record = get_hfp_ag_record, .version = 0x0105, }, { .uuid = HSP_AG_UUID, -- 2.47.3