p2p-service-api.txt (2841B)
1 P2P Service Manager hierarchy 2 ============================= 3 4 Service net.connman.iwd 5 Interface net.connman.iwd.p2p.ServiceManager [Experimental] 6 Object path /net/connman/iwd 7 8 Methods void RegisterDisplayService(dict properties) 9 10 Register a Wi-Fi Display service handler. An 11 application can register as implementing this 12 P2P-based service to make IWD advertise local WFD 13 capability to peers, expose discovered peers' WFD 14 capabilities for each DBus peer object, and 15 validate the peer's WFD properties during a 16 connection setup. Once a connection is established 17 to a peer that was available for a WFD Session the 18 application is responsible for continuing the WFD 19 session establishment by setting up the TCP 20 connection, performing WFD capability exchange and 21 negotiation, Link Content Protection setup and 22 session start. When the session is torn down, 23 the application is responsible for calling the 24 Disconnect method on the net.connman.iwd.p2p.Peer 25 interface of the peer object. 26 27 Registering a service will have no effect on 28 existing connections. 29 30 The net.connman.iwd.p2p.Display interface is 31 going to be attached to discovered peer objects of 32 those peers that are available for a WFD session. 33 The properties argument to this method, who's DBus 34 signature is a{sv}, may contain any of the 35 properties on that interface as listed below. 36 Note that there's currently no way to select the 37 role for a specific connection so IWD will refuse 38 to connect to a dual-role peer if the local WFD 39 device is also dual-role capable. 40 41 Possible Errors: [service].Error.InvalidArguments 42 [service].Error.AlreadyExists 43 [service].Error.NotSupported 44 45 void UnregisterDisplayService() 46 47 Unregister a WFD service handler. 48 49 Possible Errors: [service].Error.InvalidArguments 50 [service].Error.NotFound 51 52 53 Display hierarchy 54 ================= 55 56 Service net.connman.iwd 57 Interface net.connman.iwd.p2p.Display [Experimental] 58 Object path /net/connman/iwd/{phy0,phy1,...}/p2p_peers/{aa_bb_cc_dd_ee_ff} 59 60 Properties boolean Source [readonly] 61 62 Whether the peer represented by the object is 63 a WFD source. 64 65 boolean Sink [readonly] 66 67 Whether the peer represented by the object has 68 a WFD sink capability. At least one of this and 69 'Source' should be true. 70 71 uint16 Port [readonly, optional] 72 73 WFD Session Management Control port -- a TCP port 74 number. Only present/allowed if Source is true. 75 76 boolean HasAudio [readonly, optional] 77 78 Whether audio rendering is supported. Only 79 present/allowed if Sink is true. 80 81 boolean HasUIBC [readonly] 82 83 Whether WFD Device supports UIBC or User Input 84 Back Channel communication. 85 86 boolean HasContentProtection [readonly] 87 88 Whether WFD Device supports Content Protection 89 using the HDCP system 2.x.