From c8af8efef02b296ce834d8d45599ca492f12c6d0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 12 Dec 2012 13:52:08 +0200 Subject: [PATCH] core: Add SYNC record This adds SYNC record to detault settings --- src/profile.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/src/profile.c b/src/profile.c index a3dd372a5..53d32b651 100644 --- a/src/profile.c +++ b/src/profile.c @@ -436,6 +436,46 @@ \ " +#define SYNC_RECORD \ + " \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + \ + " + #define GENERIC_RECORD \ " \ \ @@ -1618,6 +1658,13 @@ static char *get_mas_record(struct ext_profile *ext, struct ext_io *l2cap, ext->name); } +static char *get_sync_record(struct ext_profile *ext, struct ext_io *l2cap, + struct ext_io *rfcomm) +{ + return g_strdup_printf(SYNC_RECORD, rfcomm->chan, ext->version, + ext->name); +} + static char *get_opp_record(struct ext_profile *ext, struct ext_io *l2cap, struct ext_io *rfcomm) { @@ -1777,6 +1824,8 @@ static struct default_settings { .uuid = OBEX_SYNC_UUID, .name = "Synchronization", .channel = SYNC_DEFAULT_CHANNEL, + .get_record = get_sync_record, + .version = 0x0100, }, { .uuid = OBEX_PSE_UUID, .name = "Phone Book Access", -- 2.47.3