linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: "Frédéric Danis" <frederic.danis@linux.intel.com>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [RFC 1/2] audio: Move tel drivers to DBus interface
Date: Tue, 22 Nov 2011 16:22:04 +0200	[thread overview]
Message-ID: <20111122142204.GA16285@fusion.localdomain> (raw)
In-Reply-To: <1321970484-10208-2-git-send-email-frederic.danis@linux.intel.com>

Hi Frédéric,

On Tue, Nov 22, 2011, Frédéric Danis wrote:
> +Telephony hierarchy [experiemental]
> +===================
> +
> +Service		org.bluez
> +Interface	org.bluez.Telephony
> +Object path	[variable prefix]/{hci0,hci1,...}
> +
> +Methods		void RegisterAgent(object path, dict properties)
> +
> +			Register a TelephonyAgent to sender, the sender can
> +			register as many agents as it likes.
> +
> +			Note: If the sender disconnects its agents are
> +			automatically unregistered.
> +
> +			possible properties:
> +
> +				string UUID:
> +
> +					UUID of the profile which the agent is
> +					for.
> +
> +				uint16 Version:
> +
> +					Version of the profile which the agent
> +					implements.
> +
> +				byte Features:
> +
> +					Agent supported features as defined in
> +					profile spec e.g. HFP.

The HFP spec uses a 16-bit integer for Features in SDP so I believe we
should too.

> +
> +			Possible Errors: org.bluez.Error.InvalidArguments
> +
> +
> +		void UnregisterAgent(object path)
> +
> +			Unregister sender agent.
> +
> +TelephonyAgent hierarchy
> +========================
> +
> +Service		unique name
> +Interface	org.bluez.TelephonyAgent
> +Object path	freely definable
> +
> +ethods		void NewConnection(filedescriptor fd, dict properties)

M missing :)

> +
> +			This method gets called whenever a new connection
> +			has been established. This method assumes that DBus
> +			daemon with file descriptor passing capability is
> +			being used.
> +
> +			The agent should only return successfully once the
> +			establishment of the service level connection (SLC)
> +			has been completed.  In the case of Handsfree this
> +			means that BRSF exchange has been performed and
> +			necessary initialization has been done.
> +
> +			If Endpoint is set the agent is responsible to
> +			create an object implementing org.bluez.MediaTransport
> +			and notify the Endpoint using org.bluez.MediaEndpoint.
> +
> +			possible properties:
> +
> +				strict Device:
> +
> +					BlueZ remote device object.
> +
> +				string UUID:
> +
> +					Profile UUID of the connection.
> +
> +				uint16 Version:
> +
> +					Remote profile version.
> +
> +				byte Features:
> +
> +					Remote profile features.

Same thing here about the Features integer size.

Johan

  reply	other threads:[~2011-11-22 14:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-22 14:01 [RFC 0/2] Add org.bluez.Telephony interface Frédéric Danis
2011-11-22 14:01 ` [RFC 1/2] audio: Move tel drivers to DBus interface Frédéric Danis
2011-11-22 14:22   ` Johan Hedberg [this message]
2011-11-22 14:15 ` [RFC 0/2] Add org.bluez.Telephony interface Andrei Emeltchenko
2011-11-22 15:58   ` Frederic Danis
2011-11-22 16:41     ` Claudio Takahasi
2011-11-23  9:58       ` Frederic Danis
2011-11-23 11:06         ` Anderson Lizardo
2011-11-24 15:26           ` Frederic Danis
2011-11-24 15:54             ` Anderson Lizardo
2011-11-24  6:46               ` Denis Kenzior

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=20111122142204.GA16285@fusion.localdomain \
    --to=johan.hedberg@gmail.com \
    --cc=frederic.danis@linux.intel.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).