api,modem3gpp: new 5G registration settings support and MICO mode

A new set of property+method is added to be able to configure the 5G
specific registration settings, initially defining the support for the
MICO mode.

The property name starts with "Nr5g" instead of "5gNr" because of the
limitations imposed by the GObject type system on how properties with
numbers can be named.
This commit is contained in:
Som_SP
2021-11-04 11:11:27 +01:00
committed by Aleksander Morgado
parent 922bc2df5f
commit e951008ae8
4 changed files with 73 additions and 0 deletions

View File

@@ -124,6 +124,22 @@
<arg name="settings" type="a{sv}" direction="in" />
</method>
<!--
SetNr5gRegistrationSettings:
@properties: List of 5G specific registration settings.
Updates the 5G specific registration settings configured in the device.
The allowed properties in this method are all the ones specified in the
<link linkend="gdbus-property-org-freedesktop-ModemManager1-Modem-Modem3gpp.Nr5gRegistrationSettings">Nr5gRegistrationSettings</link>;
i.e.: <literal>"mico-mode"</literal>.
Since: 1.20
-->
<method name="SetNr5gRegistrationSettings">
<arg name="properties" type="a{sv}" direction="in" />
</method>
<!--
Imei:
@@ -317,5 +333,30 @@
-->
<property name="PacketServiceState" type="u" access="read" />
<!--
Nr5gRegistrationSettings:
5G specific registration settings.
This is a read-only property, updating these settings should be done using the
<link linkend="gdbus-method-org-freedesktop-ModemManager1-Modem-Modem3gpp.SetNr5gRegistrationSettings">Set5gNrRegistrationSettings()</link>
method.
<variablelist>
<varlistentry><term>"mico-mode"</term>
<listitem>
<para>
A <link linkend="MMModem3gppMicoMode">MMModem3gppMicoMode</link> value
representing the Mobile Initiated Connection (MICO) mode requested by the host,
given as an unsigned integer (signature <literal>"u"</literal>).
</para>
</listitem>
</varlistentry>
</variablelist>
Since: 1.20
-->
<property name="Nr5gRegistrationSettings" type="a{sv}" access="read" />
</interface>
</node>