From 52d80367caa4482512715c943157df317da4eecb Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 15 Nov 2012 13:59:37 +0200 Subject: [PATCH] core: Add default DUN record for external profiles --- src/profile.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/src/profile.c b/src/profile.c index 76df2ca5b..33aa72a53 100644 --- a/src/profile.c +++ b/src/profile.c @@ -187,6 +187,44 @@ \ " +#define DUN_RECORD \ + " \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + " + struct ext_profile { struct btd_profile p; @@ -1130,6 +1168,11 @@ static char *get_spp_record(struct ext_profile *ext) return g_strdup_printf(SPP_RECORD, ext->chan, ext->version, ext->name); } +static char *get_dun_record(struct ext_profile *ext) +{ + return g_strdup_printf(DUN_RECORD, ext->chan, ext->version, ext->name); +} + static struct default_settings { const char *uuid; const char *name; @@ -1150,8 +1193,10 @@ static struct default_settings { .version = 0x0102, }, { .uuid = DUN_GW_UUID, - .name = "Dialup Networking", + .name = "Dial-Up Networking", .channel = DUN_DEFAULT_CHANNEL, + .get_record = get_dun_record, + .version = 0x0102, }, { .uuid = HFP_HS_UUID, .name = "Hands-Free unit", -- 2.47.3