As soon as p2p technology is present, whether it is enabled or not, it
will be possible to register and un-register P2P Peer services. These
will be served once p2p technology gets enabled.
When scanning for Peers is possible, Peer objects will show the proposed
services of those if some are present.
---
doc/manager-api.txt | 31 +++++++++++++++++++++++++++++++
doc/peer-api.txt | 5 +++++
2 files changed, 36 insertions(+)
diff --git a/doc/manager-api.txt b/doc/manager-api.txt
index 05d2701..a2ebea0 100644
--- a/doc/manager-api.txt
+++ b/doc/manager-api.txt
@@ -156,6 +156,37 @@ Methods dict GetProperties()
Possible Errors: [service].Error.InvalidArguments
+ void RegisterPeerService(array{byte} specification, boolean
master) [experimental]
+
+ Registers a local P2P Peer service
+
+ If p2p technology is not available, this will raise a
+ 'not supported' error. This behavior does not apply if
+ such technology is just disabled.
+
+ A Peer service belongs to the process that registers
+ it, thus if that process dies, its Peer services will
+ be destroyed as well.
+
+ "specification" is the TLV formated byte array
+ describing the WiFi P2P service.
+
+ ConnMan will be able to determine in most cases
+ whether to be the P2P Group Owner or not. If the
+ service must belong to a group that this device
+ manages, the "master" property can be set. Do not set
+ the "master" property unless you are absolutely sure
+ you know what you are doing.
+
+ Possible Errors: [service].Error.InvalidArguments
+ [service].Error.NotSupported
+
+ void UnregisterPeerService(array{byte} specification)
[experimental]
+
+ Unregisters an existing local P2P Peer service
+
+ Possible Errors: [service].Error.InvalidArguments
+
Signals TechnologyAdded(object path, dict properties)
Signal that is sent when a new technology is added.
diff --git a/doc/peer-api.txt b/doc/peer-api.txt
index e38066f..59a3351 100644
--- a/doc/peer-api.txt
+++ b/doc/peer-api.txt
@@ -57,3 +57,8 @@ Properties string State [readonly] [experimental]
string Netmask [readonly]
The current configured IPv4 netmask.
+
+ array{array{byte}} Services [readonly] [experimental]
+
+ Array of P2P service specifications, which are
+ themselves a TLV formated byte array.
--
1.8.5.5
_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman