diff options
author | Benjamin Berg <bberg@redhat.com> | 2018-10-10 23:30:46 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-01-27 23:45:12 +0100 |
commit | 00e64d13320f5848a757765c8541e8160aa8e3e2 (patch) | |
tree | ac1146f555ee1aacf01b82099c2e1db714b16b7c /introspection | |
parent | 42e60e327f92b7469fa1584682c09771017990fb (diff) | |
download | NetworkManager-00e64d13320f5848a757765c8541e8160aa8e3e2.tar.gz |
core/devices: Add P2P Wifi device and peer tracking
This only adds the new device type and simple peer list handling.
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/meson.build | 2 | ||||
-rw-r--r-- | introspection/org.freedesktop.NetworkManager.Device.P2PWireless.xml | 65 | ||||
-rw-r--r-- | introspection/org.freedesktop.NetworkManager.P2PPeer.xml | 78 |
3 files changed, 145 insertions, 0 deletions
diff --git a/introspection/meson.build b/introspection/meson.build index ef2ad9c1af..e5bbe2a284 100644 --- a/introspection/meson.build +++ b/introspection/meson.build @@ -23,6 +23,7 @@ ifaces = [ 'org.freedesktop.NetworkManager.Device.OvsInterface', 'org.freedesktop.NetworkManager.Device.OvsPort', 'org.freedesktop.NetworkManager.Device.OvsBridge', + 'org.freedesktop.NetworkManager.Device.P2PWireless', 'org.freedesktop.NetworkManager.Device.Ppp', 'org.freedesktop.NetworkManager.Device.Statistics', 'org.freedesktop.NetworkManager.Device.Team', @@ -42,6 +43,7 @@ ifaces = [ 'org.freedesktop.NetworkManager.IP4Config', 'org.freedesktop.NetworkManager.IP6Config', 'org.freedesktop.NetworkManager', + 'org.freedesktop.NetworkManager.P2PPeer', 'org.freedesktop.NetworkManager.PPP', 'org.freedesktop.NetworkManager.SecretAgent', 'org.freedesktop.NetworkManager.Settings.Connection', diff --git a/introspection/org.freedesktop.NetworkManager.Device.P2PWireless.xml b/introspection/org.freedesktop.NetworkManager.Device.P2PWireless.xml new file mode 100644 index 0000000000..fa85b83f9d --- /dev/null +++ b/introspection/org.freedesktop.NetworkManager.Device.P2PWireless.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<node name="/"> + <!-- + org.freedesktop.NetworkManager.Device.P2PWireless: + @short_description: P2P Wi-Fi Device + + --> + <interface name="org.freedesktop.NetworkManager.Device.P2PWireless"> + <annotation name="org.gtk.GDBus.C.Name" value="Device_P2P_Wifi"/> + + <!-- + HwAddress: + + The active hardware address of the device. + --> + <property name="HwAddress" type="s" access="read"/> + + <!-- + GroupOwner: + + Whether this device is currently the group owner. + --> + <property name="GroupOwner" type="b" access="read"/> + + <!-- + WFDIEs: + + The Wi-Fi Display information elements. + --> + <property name="WFDIEs" type="ay" access="read"> + <!-- gdbus-codegen assumes that "ay" means "non-UTF-8 string" and + won't deal with '\0' bytes correctly. + --> + <annotation name="org.gtk.GDBus.C.ForceGVariant" value="1"/> + </property> + + <!-- + Peers: + + List of object paths of peers visible to this p2p wireless device. + --> + <property name="Peers" type="ao" access="read"/> + + <!-- + PeerAdded: + @peer: The object path of the newly found access point. + + Emitted when a new P2P peer is found by the device. + --> + <signal name="PeerAdded"> + <arg name="peer" type="o"/> + </signal> + + <!-- + PeerRemoved: + @peer: The object path of the P2P peer that has disappeared. + + Emitted when a P2P peer disappears from view of the device. + --> + <signal name="PeerRemoved"> + <arg name="peer" type="o"/> + </signal> + + </interface> +</node> diff --git a/introspection/org.freedesktop.NetworkManager.P2PPeer.xml b/introspection/org.freedesktop.NetworkManager.P2PPeer.xml new file mode 100644 index 0000000000..1a1cf71308 --- /dev/null +++ b/introspection/org.freedesktop.NetworkManager.P2PPeer.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<node name="/"> + <!-- + org.freedesktop.NetworkManager.P2PPeer: + @short_description: P2P Wi-Fi Peer + + --> + <interface name="org.freedesktop.NetworkManager.P2PPeer"> + <annotation name="org.gtk.GDBus.C.Name" value="P2P_Peer"/> + + <!-- + Flags: + + Flags describing the capabilities of the access point. + + Returns: <link linkend="NM80211ApFlags">NM80211ApFlags</link> + --> + <property name="Flags" type="u" access="read"/> + + <!-- + Manufacturer: + + The manufacturer of the P2P peer. + --> + <property name="Manufacturer" type="s" access="read"/> + + <!-- + Model: + + The model of the P2P peer. + --> + <property name="Model" type="s" access="read"/> + + <!-- + ModelNumber: + + The model number of the P2P peer. + --> + <property name="ModelNumber" type="s" access="read"/> + + <!-- + Serial: + + The serial number of the P2P peer. + --> + <property name="Serial" type="s" access="read"/> + + <!-- + Wfdies: + + The Wi-Fi Display Information Elements of the P2P peer. + --> + <property name="WfdIEs" type="ay" access="read"/> + + <!-- + HwAddress: + + The hardware address (BSSID) of the access point. + --> + <property name="HwAddress" type="s" access="read"/> + + <!-- + Strength: + + The current signal quality of the access point, in percent. + --> + <property name="Strength" type="y" access="read"/> + + <!-- + LastSeen: + + The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access + point was found in scan results. A value of -1 means the access point has + never been found in scan results. + --> + <property name="LastSeen" type="i" access="read"/> + </interface> +</node> |