Skip to content

Commit

Permalink
Merge a3c0890 into f4ba1b4
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jul 4, 2023
2 parents f4ba1b4 + a3c0890 commit 5bf91ca
Show file tree
Hide file tree
Showing 31 changed files with 1,017 additions and 239 deletions.

This file was deleted.

106 changes: 106 additions & 0 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Connection.IPv4.bus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection">
<!--
Connection ID.
Unique identifier of the network connection. It may or not be the same that the used by the
backend. For instance, when using NetworkManager (which is the only supported backend by
now), it uses the original ID but appending a number in case the ID is duplicated.
-->
<property name="Id" type="s" access="read"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.IPv4">
<!--
List of IP addresses.
When the method is 'auto', these addresses are used as additional addresses.
-->
<property name="Addresses" type="as" access="readwrite"/>
<!--
Network gateway.
An empty string removes the current value. It is not possible to set a gateway if the
addresses property is empty.
-->
<property name="Gateway" type="s" access="readwrite"/>
<!--
IP configuration method.
Possible values: "disabled", "auto", "manual" or "link-local".
See [crate::model::IpMethod].
-->
<property name="Method" type="s" access="readwrite"/>
<!--
Name server addresses.
-->
<property name="Nameservers" type="as" access="readwrite"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.Wireless">
<!--
Wireless connection mode.
Possible values: "unknown", "adhoc", "infrastructure", "ap" or "mesh".
See [crate::model::WirelessMode].
-->
<property name="Mode" type="s" access="readwrite"/>
<!--
Password to connect to the wireless network.
-->
<property name="Password" type="s" access="readwrite"/>
<!--
Network SSID.
-->
<property name="SSID" type="ay" access="readwrite"/>
<!--
Wireless security protocol.
Possible values: "none", "owe", "ieee8021x", "wpa-psk", "sae", "wpa-eap",
"wpa-eap-suite-b192".
See [crate::model::WirelessMode].
-->
<property name="Security" type="s" access="readwrite"/>
</interface>
<interface name="org.freedesktop.DBus.Peer">
<method name="Ping">
</method>
<method name="GetMachineId">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
<arg name="interface_name" type="s" direction="in"/>
<arg name="property_name" type="s" direction="in"/>
<arg type="v" direction="out"/>
</method>
<method name="Set">
<arg name="interface_name" type="s" direction="in"/>
<arg name="property_name" type="s" direction="in"/>
<arg name="value" type="v" direction="in"/>
</method>
<method name="GetAll">
<arg name="interface_name" type="s" direction="in"/>
<arg type="a{sv}" direction="out"/>
</method>
<!--
Emits the `org.freedesktop.DBus.Properties.PropertiesChanged` signal.
-->
<signal name="PropertiesChanged">
<arg name="interface_name" type="s"/>
<arg name="changed_properties" type="a{sv}"/>
<arg name="invalidated_properties" type="as"/>
</signal>
</interface>
</node>

This file was deleted.

106 changes: 106 additions & 0 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Connection.Wireless.bus.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@

<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection">
<!--
Connection ID.
Unique identifier of the network connection. It may or not be the same that the used by the
backend. For instance, when using NetworkManager (which is the only supported backend by
now), it uses the original ID but appending a number in case the ID is duplicated.
-->
<property name="Id" type="s" access="read"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.IPv4">
<!--
List of IP addresses.
When the method is 'auto', these addresses are used as additional addresses.
-->
<property name="Addresses" type="as" access="readwrite"/>
<!--
Network gateway.
An empty string removes the current value. It is not possible to set a gateway if the
addresses property is empty.
-->
<property name="Gateway" type="s" access="readwrite"/>
<!--
IP configuration method.
Possible values: "disabled", "auto", "manual" or "link-local".
See [crate::model::IpMethod].
-->
<property name="Method" type="s" access="readwrite"/>
<!--
Name server addresses.
-->
<property name="Nameservers" type="as" access="readwrite"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.Wireless">
<!--
Wireless connection mode.
Possible values: "unknown", "adhoc", "infrastructure", "ap" or "mesh".
See [crate::model::WirelessMode].
-->
<property name="Mode" type="s" access="readwrite"/>
<!--
Password to connect to the wireless network.
-->
<property name="Password" type="s" access="readwrite"/>
<!--
Network SSID.
-->
<property name="SSID" type="ay" access="readwrite"/>
<!--
Wireless security protocol.
Possible values: "none", "owe", "ieee8021x", "wpa-psk", "sae", "wpa-eap",
"wpa-eap-suite-b192".
See [crate::model::WirelessMode].
-->
<property name="Security" type="s" access="readwrite"/>
</interface>
<interface name="org.freedesktop.DBus.Peer">
<method name="Ping">
</method>
<method name="GetMachineId">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
<arg name="interface_name" type="s" direction="in"/>
<arg name="property_name" type="s" direction="in"/>
<arg type="v" direction="out"/>
</method>
<method name="Set">
<arg name="interface_name" type="s" direction="in"/>
<arg name="property_name" type="s" direction="in"/>
<arg name="value" type="v" direction="in"/>
</method>
<method name="GetAll">
<arg name="interface_name" type="s" direction="in"/>
<arg type="a{sv}" direction="out"/>
</method>
<!--
Emits the `org.freedesktop.DBus.Properties.PropertiesChanged` signal.
-->
<signal name="PropertiesChanged">
<arg name="interface_name" type="s"/>
<arg name="changed_properties" type="a{sv}"/>
<arg name="invalidated_properties" type="as"/>
</signal>
</interface>
</node>

90 changes: 69 additions & 21 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Connection.bus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,79 @@
<!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
<node>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection">
<!--
Connection ID.
Unique identifier of the network connection. It may or not be the same that the used by the
backend. For instance, when using NetworkManager (which is the only supported backend by
now), it uses the original ID but appending a number in case the ID is duplicated.
-->
<property name="Id" type="s" access="read"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.IPv4">
<!--
List of IP addresses.
When the method is 'auto', these addresses are used as additional addresses.
-->
<property name="Addresses" type="as" access="readwrite"/>
<!--
Network gateway.
An empty string removes the current value. It is not possible to set a gateway if the
addresses property is empty.
-->
<property name="Gateway" type="s" access="readwrite"/>
<!--
IP configuration method.
Possible values: "disabled", "auto", "manual" or "link-local".
See [crate::model::IpMethod].
-->
<property name="Method" type="s" access="readwrite"/>
<!--
Name server addresses.
-->
<property name="Nameservers" type="as" access="readwrite"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.Wireless">
<property name="Mode" type="y" access="readwrite"/>
<!--
Wireless connection mode.
Possible values: "unknown", "adhoc", "infrastructure", "ap" or "mesh".
See [crate::model::WirelessMode].
-->
<property name="Mode" type="s" access="readwrite"/>
<!--
Password to connect to the wireless network.
-->
<property name="Password" type="s" access="readwrite"/>
<!--
Network SSID.
-->
<property name="SSID" type="ay" access="readwrite"/>
<property name="Security" type="y" access="readwrite"/>
<!--
Wireless security protocol.
Possible values: "none", "owe", "ieee8021x", "wpa-psk", "sae", "wpa-eap",
"wpa-eap-suite-b192".
See [crate::model::WirelessMode].
-->
<property name="Security" type="s" access="readwrite"/>
</interface>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<interface name="org.freedesktop.DBus.Peer">
<method name="Ping">
</method>
<method name="GetMachineId">
<arg type="s" direction="out"/>
</method>
</interface>
Expand Down Expand Up @@ -37,22 +102,5 @@
<arg name="invalidated_properties" type="as"/>
</signal>
</interface>
<interface name="org.freedesktop.DBus.Peer">
<method name="Ping">
</method>
<method name="GetMachineId">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection">
<property name="Id" type="s" access="read"/>
<property name="UUID" type="s" access="read"/>
</interface>
<interface name="org.opensuse.Agama.Network1.Connection.IPv4">
<property name="Addresses" type="a(su)" access="readwrite"/>
<property name="Gateway" type="s" access="readwrite"/>
<property name="Method" type="y" access="readwrite"/>
<property name="Nameservers" type="as" access="readwrite"/>
</interface>
</node>

13 changes: 11 additions & 2 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Connections.bus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,25 @@
* `ty`: connection type (see [crate::model::DeviceType]).
-->
<method name="AddConnection">
<arg name="name" type="s" direction="in"/>
<arg name="id" type="s" direction="in"/>
<arg name="ty" type="y" direction="in"/>
</method>
<!--
Returns the D-Bus path of the network connection.
* `id`: connection ID.
-->
<method name="GetConnection">
<arg name="id" type="s" direction="in"/>
<arg type="o" direction="out"/>
</method>
<!--
Removes a network connection.
* `uuid`: connection UUID..
-->
<method name="RemoveConnection">
<arg name="uuid" type="s" direction="in"/>
<arg name="id" type="s" direction="in"/>
</method>
<!--
Applies the network configuration.
Expand Down
12 changes: 12 additions & 0 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Device.bus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,19 @@
</signal>
</interface>
<interface name="org.opensuse.Agama.Network1.Device">
<!--
Device name.
Kernel device name, e.g., eth0, enp1s0, etc.
-->
<property name="Name" type="s" access="read"/>
<!--
Device type.
Possible values: 0 = loopback, 1 = ethernet, 2 = wireless.
See [crate::model::DeviceType].
-->
<property name="Type" type="y" access="read"/>
</interface>
</node>
Expand Down
10 changes: 5 additions & 5 deletions doc/dbus/bus/org.opensuse.Agama.Network1.Devices.bus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg type="s" direction="out"/>
</method>
</interface>
<interface name="org.freedesktop.DBus.Properties">
<method name="Get">
<arg name="interface_name" type="s" direction="in"/>
Expand All @@ -41,10 +46,5 @@
<arg name="invalidated_properties" type="as"/>
</signal>
</interface>
<interface name="org.freedesktop.DBus.Introspectable">
<method name="Introspect">
<arg type="s" direction="out"/>
</method>
</interface>
</node>

0 comments on commit 5bf91ca

Please sign in to comment.