From 6dd5ced86d80c695be9898b9ac4ea3e50ff64f32 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 17 Feb 2021 15:31:08 +0100 Subject: 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. --- libmm-glib/mm-simple-connect-properties.c | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'libmm-glib/mm-simple-connect-properties.c') 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); +} /*****************************************************************************/ -- cgit v1.2.3-70-g09d2