phdc: Initial PHDC implementation
authorOlivier Guiter <olivier.guiter@linux.intel.com>
Mon, 2 Sep 2013 10:32:16 +0000 (12:32 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 2 Sep 2013 13:31:26 +0000 (15:31 +0200)
commit1821d00375f32994da466717ae8e0fcdce809c6d
tree97f67670701e189608e0cd294ffca193ab217e88
parent55facbbc2f31356508b55d22da01690e6ffa9725
phdc: Initial PHDC implementation

Code to add the PHDC p2p driver. This driver will publish a dbus
interface to facilitate PHDC Managers registration. This code handles
multiple Managers.

Managers (or Agents) should register using RegisterAgent(), and should
publish a specific interface "org.neard.PHDC.Manager" or
"org.neard.PHDC.Agent".
PHDC is different from usual p2p services as it is a proprietary
service. The PHDC Manager (external to neard) notify neard for being
registered on specific services urn (e.g: urn:nfc:sn:phdc)
The PHDC Agent connects to this specific urn using p2p, and the newly
created p2p file descriptor is forwarded to the PHDC Manager.
Doing this, the PHDC driver acts as a passthru, allowing the Agent to
exchange with the Manager.
Makefile.plugins
plugins/p2p.c
plugins/p2p.h
plugins/phdc.c [new file with mode: 0644]