diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-17 15:31:08 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-02-17 23:41:24 +0100 |
commit | 6dd5ced86d80c695be9898b9ac4ea3e50ff64f32 (patch) | |
tree | 24d279f2ec38c2014d0443bed017d6af55676577 /libmm-glib/mm-simple-connect-properties.c | |
parent | c4f215c9cb2d8497e7ebfea2904563526bb08d90 (diff) |
libmm-glib,simple-connect-properties: add missing APIs to get/set RM protocol
Probably not a big deal, since no one has asked for these in the past
years, but let's add them for completeness with the DBus API.
Diffstat (limited to 'libmm-glib/mm-simple-connect-properties.c')
-rw-r--r-- | libmm-glib/mm-simple-connect-properties.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libmm-glib/mm-simple-connect-properties.c b/libmm-glib/mm-simple-connect-properties.c index 5b9af11a..fd256513 100644 --- a/libmm-glib/mm-simple-connect-properties.c +++ b/libmm-glib/mm-simple-connect-properties.c @@ -364,6 +364,43 @@ mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *self) return mm_bearer_properties_get_allow_roaming (self->priv->bearer_properties); } +/*****************************************************************************/ + +/** + * mm_simple_connect_properties_set_rm_protocol: + * @self: a #MMSimpleConnectProperties. + * @protocol: a #MMModemCdmaRmProtocol. + * + * Sets the RM protocol requested by the user. + * + * Since: 1.16 + */ +void +mm_simple_connect_properties_set_rm_protocol (MMSimpleConnectProperties *self, + MMModemCdmaRmProtocol protocol) +{ + g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self)); + + mm_bearer_properties_set_rm_protocol (self->priv->bearer_properties, protocol); +} + +/** + * mm_simple_connect_properties_get_rm_protocol: + * @self: a #MMSimpleConnectProperties. + * + * Get the RM protocol requested by the user. + * + * Returns: a #MMModemCdmaRmProtocol. + * + * Since: 1.16 + */ +MMModemCdmaRmProtocol +mm_simple_connect_properties_get_rm_protocol (MMSimpleConnectProperties *self) +{ + g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), MM_MODEM_CDMA_RM_PROTOCOL_UNKNOWN); + + return mm_bearer_properties_get_rm_protocol (self->priv->bearer_properties); +} /*****************************************************************************/ |