Return-Path: From: Luiz Augusto von Dentz To: linux-bluetooth@vger.kernel.org Subject: [PATCH BlueZ 02/11] core: Add MAS record Date: Wed, 12 Dec 2012 13:52:07 +0200 Message-Id: <1355313136-7891-2-git-send-email-luiz.dentz@gmail.com> In-Reply-To: <1355313136-7891-1-git-send-email-luiz.dentz@gmail.com> References: <1355313136-7891-1-git-send-email-luiz.dentz@gmail.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: From: Luiz Augusto von Dentz This adds MAS record to detault settings --- src/profile.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/src/profile.c b/src/profile.c index fba894c..a3dd372 100644 --- a/src/profile.c +++ b/src/profile.c @@ -395,6 +395,47 @@ \ " +#define MAS_RECORD \ + " \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + " + #define GENERIC_RECORD \ " \ \ @@ -1570,6 +1611,13 @@ static char *get_pse_record(struct ext_profile *ext, struct ext_io *l2cap, ext->name); } +static char *get_mas_record(struct ext_profile *ext, struct ext_io *l2cap, + struct ext_io *rfcomm) +{ + return g_strdup_printf(MAS_RECORD, rfcomm->chan, ext->version, + ext->name); +} + static char *get_opp_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { @@ -1745,6 +1793,8 @@ static struct default_settings { .uuid = OBEX_MAS_UUID, .name = "Message Access", .channel = MAS_DEFAULT_CHANNEL, + .get_record = get_mas_record, + .version = 0x0100 }, { .uuid = OBEX_MNS_UUID, .name = "Message Notification", -- 1.7.11.7