linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: joohi.rastogi@stericsson.com
Cc: User Name <linux-bluetooth@vger.kernel.org>
Subject: Re: [PATCH] Sets the information attribute for the service
Date: Wed, 30 May 2012 10:48:13 +0300	[thread overview]
Message-ID: <20120530074813.GG6539@x220> (raw)
In-Reply-To: <1338273973-28767-1-git-send-email-joohi.rastogi@stericsson.com>

Hi Joohi,

On Tue, May 29, 2012, joohi.rastogi@stericsson.com wrote:
> From: Joohi Rastogi <joohi.rastogi@stericsson.com>
> 
> This patch adds the service name for
> Device Identification Profile
> ---
>  src/sdpd-service.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
> diff --git a/src/sdpd-service.c b/src/sdpd-service.c
> index 39e05ab..1fa82a6 100644
> --- a/src/sdpd-service.c
> +++ b/src/sdpd-service.c
> @@ -228,6 +228,8 @@ void register_device_id(void)
>  	source_data = sdp_data_alloc(SDP_UINT16, &main_opts.did_source);
>  	sdp_attr_add(record, 0x0205, source_data);
>  
> +	sdp_set_info_attr(record, "Device Identification", 0, 0);
> +
>  	update_db_timestamp();

0 is an integer, NULL is a pointer. The function call you're adding
doesn't take any integer arguments so you should be passing NULL and not
0.

That said, I can't find any mention of the service name attribute in the
Device ID specification (version 1.3). In fact the table (8.1 on page
17) that lists all mandatory and optional attributes doesn't even have
this attribute mentioned as an optional one. So why do you need to have
it added? Is there some client that breaks if it's not present?

Johan

  reply	other threads:[~2012-05-30  7:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29  6:46 [PATCH] Sets the information attribute for the service joohi.rastogi
2012-05-30  7:48 ` Johan Hedberg [this message]
2012-06-01  6:01   ` Joohi RASTOGI
2012-06-12  7:31   ` Joohi RASTOGI
  -- strict thread matches above, loose matches on Subject: below --
2012-05-21  9:30 joohi.rastogi

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=20120530074813.GG6539@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=joohi.rastogi@stericsson.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).