All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Dial-up Networking profile API
@ 2010-05-09  2:11 Gustavo F. Padovan
  2010-05-10  0:41 ` Zhang, Zhenhua
  0 siblings, 1 reply; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-05-09  2:11 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: gustavo

It is exactly the same API of Handsfree profile. The idea is to use the
same Agent logic.
---
 doc/dun-api.txt |   82 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 82 insertions(+), 0 deletions(-)
 create mode 100644 doc/dun-api.txt

diff --git a/doc/dun-api.txt b/doc/dun-api.txt
new file mode 100644
index 0000000..af1c507
--- /dev/null
+++ b/doc/dun-api.txt
@@ -0,0 +1,82 @@
+DUNGateway hierarchy
+========================
+
+Service		org.bluez
+Interface	org.bluez.DUNGateway
+Object path	[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX
+
+This interface is available for remote devices which can function in the
+Gateway role of the DUN profile.  It is intended to be used with external
+ handlers of the DUN Protocol.
+
+Methods		void Connect()
+
+			Connect to the GW service on the remote device.
+
+		void Disconnect()
+
+			Disconnect from the GW service on the remote device
+
+		dict GetProperties()
+
+			Returns all properties for the interface. See the
+			properties section for available properties.
+
+		void RegisterAgent(object path)
+
+			The object path defines the path the of the agent
+			that will be called when a new DUN connection
+			is established.
+
+			If an application disconnects from the bus all of its
+			registered agents will be removed.
+
+		void UnregisterAgent(object path)
+
+			This unregisters the agent that has been previously
+			registered. The object path parameter must match the
+			same value that has been used on registration.
+
+			Possible Errors: org.bluez.Error.Failed
+					 org.bluez.Error.InvalidArguments
+
+
+Signals		PropertyChanged(string name, variant value)
+
+			This signal indicates a changed value of the given
+			property.
+
+Properties	string State [readonly]
+
+			Indicates the state of the connection.  Possible
+			values are:
+				"disconnected"
+				"connecting"
+				"connected"
+
+DUNAgent hierarchy
+===============
+
+Service         unique name
+Interface       org.bluez.DUNAgent
+Object path     freely definable
+
+Methods		void NewConnection(filedescriptor fd)
+
+			This method gets called whenever a new DUN
+			connection has been established.  The objectpath
+			contains the object path of the remote device.  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 data call has been fineshed
+			without problems.
+
+			Possible Errors: org.bluez.Error.InvalidArguments
+					 org.bluez.Error.Failed
+
+		void Release()
+
+			This method gets called whenever the service daemon
+			unregisters the agent.
-- 
1.7.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* RE: [PATCH] Dial-up Networking profile API
  2010-05-09  2:11 [PATCH] Dial-up Networking profile API Gustavo F. Padovan
@ 2010-05-10  0:41 ` Zhang, Zhenhua
  2010-05-17  2:18   ` Gustavo F. Padovan
  0 siblings, 1 reply; 4+ messages in thread
From: Zhang, Zhenhua @ 2010-05-10  0:41 UTC (permalink / raw)
  To: Gustavo F. Padovan, linux-bluetooth@vger.kernel.org

Hi Padovan,

linux-bluetooth-owner@vger.kernel.org wrote:
> It is exactly the same API of Handsfree profile. The idea is
> to use the same Agent logic.
> ---
> doc/dun-api.txt |   82
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 1 files changed, 82 insertions(+), 0 deletions(-)  create
> mode 100644 doc/dun-api.txt
> 
> diff --git a/doc/dun-api.txt b/doc/dun-api.txt new file mode 100644
> index 0000000..af1c507 --- /dev/null
> +++ b/doc/dun-api.txt
> @@ -0,0 +1,82 @@
> +DUNGateway hierarchy
> +========================
> +
> +Service		org.bluez
> +Interface	org.bluez.DUNGateway
> +Object path	[variable prefix]/{hci0,hci1,...}/dev_XX_XX_XX_XX_XX_XX +
> +This interface is available for remote devices which can function in
> +the Gateway role of the DUN profile.  It is intended to be used with
> +external  handlers of the DUN Protocol.
> +
> +Methods		void Connect()
> +
> +			Connect to the GW service on the remote device. +
> +		void Disconnect()
> +
> +			Disconnect from the GW service on the
> remote device
> +
> +		dict GetProperties()
> +
> +			Returns all properties for the
> interface. See the
> +			properties section for available properties.
> +
> +		void RegisterAgent(object path)
> +
> +			The object path defines the path the of
> the agent
> +			that will be called when a new DUN connection
> +			is established.
> +
> +			If an application disconnects from the
> bus all of its
> +			registered agents will be removed.
> +
> +		void UnregisterAgent(object path)
> +
> +			This unregisters the agent that has
> been previously
> +			registered. The object path parameter
> must match the
> +			same value that has been used on registration.
> +
> +			Possible Errors: org.bluez.Error.Failed
> +
> org.bluez.Error.InvalidArguments
> +
> +
> +Signals		PropertyChanged(string name, variant value) +
> +			This signal indicates a changed value
> of the given
> +			property.
> +
> +Properties	string State [readonly]
> +
> +			Indicates the state of the connection.  Possible +			values are:
> +				"disconnected"
> +				"connecting"
> +				"connected"
> +
> +DUNAgent hierarchy
> +===============
> +
> +Service         unique name
> +Interface       org.bluez.DUNAgent
> +Object path     freely definable
> +
> +Methods		void NewConnection(filedescriptor fd)
> +
> +			This method gets called whenever a new DUN
> +			connection has been established.  The objectpath
> +			contains the object path of the remote
> device.  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 data call has been fineshed

A typo 'fineshed' should be 'finished'.

> +			without problems.
> +
> +			Possible Errors:
> org.bluez.Error.InvalidArguments
> +					 org.bluez.Error.Failed
> +
> +		void Release()
> +
> +			This method gets called whenever the service daemon
> +			unregisters the agent.

Compared with hfp-api.txt, I think we should also add the sentence like "or whenever the Adapter where the DUNAgent registers itself is removed".

> --
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe
> linux-bluetooth" in the body of a message to
> majordomo@vger.kernel.org More majordomo info at
> http://vger.kernel.org/majordomo-info.html



Regards,
Zhenhua


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Dial-up Networking profile API
  2010-05-10  0:41 ` Zhang, Zhenhua
@ 2010-05-17  2:18   ` Gustavo F. Padovan
  2010-05-17  2:20     ` Zhang, Zhenhua
  0 siblings, 1 reply; 4+ messages in thread
From: Gustavo F. Padovan @ 2010-05-17  2:18 UTC (permalink / raw)
  To: Zhang, Zhenhua; +Cc: linux-bluetooth@vger.kernel.org

Hi Zhenhua,

* Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-05-10 08:41:59 +0800]:

...

> > +DUNAgent hierarchy
> > +===============
> > +
> > +Service         unique name
> > +Interface       org.bluez.DUNAgent
> > +Object path     freely definable
> > +
> > +Methods		void NewConnection(filedescriptor fd)
> > +
> > +			This method gets called whenever a new DUN
> > +			connection has been established.  The objectpath
> > +			contains the object path of the remote
> > device.  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 data call has been fineshed
> 
> A typo 'fineshed' should be 'finished'.

Thanks. ;)

> 
> > +			without problems.
> > +
> > +			Possible Errors:
> > org.bluez.Error.InvalidArguments
> > +					 org.bluez.Error.Failed
> > +
> > +		void Release()
> > +
> > +			This method gets called whenever the service daemon
> > +			unregisters the agent.
> 
> Compared with hfp-api.txt, I think we should also add the sentence like "or whenever the Adapter where the DUNAgent registers itself is removed".

Or we can remove that sentence from hfp-api, since when a adapter is
removed bluetoothd relaese all agents on that adapter.


Regards,

-- 
Gustavo F. Padovan
http://padovan.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: [PATCH] Dial-up Networking profile API
  2010-05-17  2:18   ` Gustavo F. Padovan
@ 2010-05-17  2:20     ` Zhang, Zhenhua
  0 siblings, 0 replies; 4+ messages in thread
From: Zhang, Zhenhua @ 2010-05-17  2:20 UTC (permalink / raw)
  To: Gustavo F. Padovan; +Cc: linux-bluetooth@vger.kernel.org

Hi Padovan,

Gustavo F. Padovan wrote:
> Hi Zhenhua,
> 
> * Zhang, Zhenhua <zhenhua.zhang@intel.com> [2010-05-10 08:41:59
> +0800]: 
> 
> ...
> 
>>> +DUNAgent hierarchy
>>> +===============
>>> +
>>> +Service         unique name
>>> +Interface       org.bluez.DUNAgent
>>> +Object path     freely definable
>>> +
>>> +Methods		void NewConnection(filedescriptor fd)
>>> +
>>> +			This method gets called whenever a new DUN
>>> +			connection has been established.  The objectpath
>>> +			contains the object path of the remote
>>> device.  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 data call has been fineshed
>> 
>> A typo 'fineshed' should be 'finished'.
> 
> Thanks. ;)
> 
>> 
>>> +			without problems.
>>> +
>>> +			Possible Errors:
>>> org.bluez.Error.InvalidArguments
>>> +					 org.bluez.Error.Failed
>>> +
>>> +		void Release()
>>> +
>>> +			This method gets called whenever the service daemon
>>> +			unregisters the agent.
>> 
>> Compared with hfp-api.txt, I think we should also add the
> sentence like "or whenever the Adapter where the DUNAgent
> registers itself is removed".
> 
> Or we can remove that sentence from hfp-api, since when a
> adapter is removed bluetoothd relaese all agents on that adapter.
> 

Well. It's all upon on you. I am fine. :-)

> Regards,
> 
> --
> Gustavo F. Padovan
> http://padovan.org

Regards,
Zhenhua


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-17  2:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-09  2:11 [PATCH] Dial-up Networking profile API Gustavo F. Padovan
2010-05-10  0:41 ` Zhang, Zhenhua
2010-05-17  2:18   ` Gustavo F. Padovan
2010-05-17  2:20     ` Zhang, Zhenhua

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.