Linux bluetooth development
 help / color / mirror / Atom feed
From: Sunil Kumar Behera <sunil.behera@samsung.com>
To: Luiz Augusto von Dentz <luiz.dentz@gmail.com>,
	Sunil Kumar Behera <sunil.behera@samsung.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH obexd v1 2/3] MAP: Add MSETime application parameter
Date: Fri, 09 Nov 2012 16:59:03 +0530	[thread overview]
Message-ID: <1F1B79404D1345F5B0892E4441A11BA5@sisodomain.com> (raw)
In-Reply-To: <CABBYNZ+K+R_i6ofgCP9rgsOPP2rBVk_9RKG=Q1v4BVRO_RCRCw@mail.gmail.com>

Hi Luiz,

--------------------------------------------------
From: "Luiz Augusto von Dentz" <luiz.dentz@gmail.com>
Sent: Friday, November 09, 2012 3:33 PM
To: "Sunil Kumar Behera" <sunil.behera@samsung.com>
Cc: <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH obexd v1 2/3] MAP: Add MSETime application parameter

> Hi Sunil,
>
> On Thu, Nov 8, 2012 at 1:04 PM, Sunil Kumar Behera
> <sunil.behera@samsung.com> wrote:
>> MSETime application parameter shall be used in the response
>> to report the Local Time basis of the MSE.
>> ---
>>  plugins/mas.c      |    4 +++-
>>  plugins/messages.h |    1 +
>>  2 files changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/plugins/mas.c b/plugins/mas.c
>> index 319c87f..bdf2b6b 100644
>> --- a/plugins/mas.c
>> +++ b/plugins/mas.c
>> @@ -284,7 +284,7 @@ static const char *yesorno(gboolean a)
>>  }
>>
>>  static void get_messages_listing_cb(void *session, int err, uint16_t 
>> size,
>> -                                       gboolean newmsg,
>> +                                       gboolean newmsg, gchar *msetime,
>>                                         const struct messages_message 
>> *entry,
>>                                         void *user_data)
>>  {
>> @@ -403,6 +403,8 @@ proceed:
>>                 mas->outparams = g_obex_apparam_set_uint8(mas->outparams,
>>                                                 MAP_AP_NEWMESSAGE,
>>                                                 newmsg ? 1 : 0);
>> +               mas->outparams = 
>> g_obex_apparam_set_string(mas->outparams,
>> +                                               MAP_AP_MSETIME, msetime);
>>         }
>>
>>         if (err != -EAGAIN)
>> diff --git a/plugins/messages.h b/plugins/messages.h
>> index 00a16b1..2ab4ba1 100644
>> --- a/plugins/messages.h
>> +++ b/plugins/messages.h
>> @@ -226,6 +226,7 @@ int messages_get_folder_listing(void *session, const 
>> char *name, uint16_t max,
>>   */
>>  typedef void (*messages_get_messages_listing_cb)(void *session, int err,
>>                                         uint16_t size, gboolean newmsg,
>> +                                       gchar *msetime,
>>                                         const struct messages_message 
>> *message,
>>                                         void *user_data);
>
> Do we really need to do this in the backend? We could possible
> generate the timestamp on get_messages_listing_cb and which should
> avoid having duplicate code doing the same for each backend.
>

The data for application parameter MSETime is string with current time basis
and UTC-offset of the MSE. Since the UTC value depends on the location of 
the device
so I think it is better left to backend on deciding the UTC value.

Best regards,
Sunil Kumar Behera 


  reply	other threads:[~2012-11-09 11:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-08 11:04 [PATCH obexd v1 2/3] MAP: Add MSETime application parameter Sunil Kumar Behera
2012-11-09 10:03 ` Luiz Augusto von Dentz
2012-11-09 11:29   ` Sunil Kumar Behera [this message]
2012-11-09 15:40     ` Luiz Augusto von Dentz
2012-11-09 16:06       ` Sunil Kumar Behera

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1F1B79404D1345F5B0892E4441A11BA5@sisodomain.com \
    --to=sunil.behera@samsung.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=luiz.dentz@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox