All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] bluez5: Add bt_register_profile_full()
Date: Tue, 23 Apr 2013 11:29:11 -0300	[thread overview]
Message-ID: <20130423142911.GA11434@samus> (raw)
In-Reply-To: <51764A7C.6050008@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1486 bytes --]

Hi Denis,

On 03:46 Tue 23 Apr, Denis Kenzior wrote:
> Hi Vinicius,
> 
> On 04/22/2013 12:54 PM, Vinicius Costa Gomes wrote:
> >This function makes it easy to set up optional information in the profile
> >service record.
> >---
> >  plugins/bluez5.c | 40 +++++++++++++++++++++++++++++++++-------
> >  plugins/bluez5.h | 10 ++++++++++
> >  2 files changed, 43 insertions(+), 7 deletions(-)
> >
> >diff --git a/plugins/bluez5.c b/plugins/bluez5.c
> >index 0f997da..48d8bf2 100644
> >--- a/plugins/bluez5.c
> >+++ b/plugins/bluez5.c
> >@@ -90,9 +90,10 @@ done:
> >  	dbus_message_unref(reply);
> >  }
> >
> >-int bt_register_profile_with_role(DBusConnection *conn, const char *uuid,
> >-					uint16_t version, const char *name,
> >-					const char *object, const char *role)
> >+int bt_register_profile_full(DBusConnection *conn,
> >+					const char *uuid, uint16_t version,
> >+					const char *name, const char *object,
> >+					struct bt_profile_info *optional)
> 
> We are now getting too many variations.  We currently have 4 callers
> of bt_register_profile (3 the simple function, 1 of _role).  Now we
> have 4 callers and 3 variations.  This is too much.  Lets just make
> bt_register_profile accept the full set of arguments and change
> everyone over.
> 
> Also, I don't like introducing a struct bt_profile_info for this.
> Just add the extra arguments you need and accept NULL where needed.

Fair enough.  Sure.


Sure.
-- 
Vinicius

      reply	other threads:[~2013-04-23 14:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-22 17:54 [PATCH 1/3] bluez5: Add bt_register_profile_full() Vinicius Costa Gomes
2013-04-22 17:54 ` [PATCH 2/3] hfp: Add defines for HFP SDP feature bits Vinicius Costa Gomes
2013-04-22 17:54 ` [PATCH 3/3] hfp_hf_bluez5: Register the SDP record with correct features Vinicius Costa Gomes
2013-04-23  8:46 ` [PATCH 1/3] bluez5: Add bt_register_profile_full() Denis Kenzior
2013-04-23 14:29   ` Vinicius Costa Gomes [this message]

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=20130423142911.GA11434@samus \
    --to=vinicius.gomes@openbossa.org \
    --cc=ofono@ofono.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.