diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2012-06-04 14:54:15 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-06-04 15:02:28 +0200 |
commit | eaf2db21ea025afaad5d0bd62c53ccef48cbdfc9 (patch) | |
tree | e4bf6d3b2d6b88516ebc0467fe5ac30f53968946 /doc | |
parent | a884d7536a2e5e12a193979aae0b9aa2cd04d391 (diff) | |
download | neard-eaf2db21ea025afaad5d0bd62c53ccef48cbdfc9.tar.gz neard-eaf2db21ea025afaad5d0bd62c53ccef48cbdfc9.tar.bz2 neard-eaf2db21ea025afaad5d0bd62c53ccef48cbdfc9.zip |
doc: Add handover agent API definition
Diffstat (limited to 'doc')
-rw-r--r-- | doc/handover-agent-api.txt | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/doc/handover-agent-api.txt b/doc/handover-agent-api.txt new file mode 100644 index 0000000..085636d --- /dev/null +++ b/doc/handover-agent-api.txt @@ -0,0 +1,66 @@ +HandoverAgent hierarchy +======================= + +Service unique name +Interface org.neard.HandoverAgent +Object path freely definable + +Methods dict RequestOOB() [experimental] + + This method gets called when the service daemon + needs to get Out Of Band data from the handover + agent, typically the BlueZ daemon. + + The service daemon will use this OOB data to build + a Handover Select message, send it to the selector + and let it proceed with the Bluetooth pairing. + + If there is no Bluetooth adapter or if it doesn't + support simple pairing the agent will return an error. + + The return value should be a dictionary where the + keys are the field names and the values are the + actual fields. + + Possible Errors: org.neard.HandoverAgent.Error.NotSupported + org.neard.HandoverAgent.Error.NoSuchDevice + + void Release() [experimental] + + This method gets called when the service daemon + unregisters the agent. An agent can use it to do + cleanup tasks. There is no need to unregister the + agent, because when this method gets called it has + already been unregistered. + + +Fields string Address + + The Bluetooth device address. + This is a mandatory field. + + string Name + + The Bluetooth local name. + This is an optional field. + + array{byte} Hash + + The simple pairing hash C. + This is an optional field. + + array{byte} Randomizer + + The simple pairing randomizer R. + This is an optional field. + + uint32 Class + + The Bluetooth class of device. + This is an optional field. + + array{string} UUIDs + + List of 128-bit UUIDs that represents the available + local services. + This is an optional field. |