diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-12-13 10:46:58 +0100 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2019-01-03 16:42:18 +0000 |
commit | 55c3026643ee6c75c0a68171abd884edf035b9ba (patch) | |
tree | f1bc2faa1bd0da6c8cec498dbb368a01e3952c0b /libmm-glib/mm-simple-connect-properties.c | |
parent | 5dc79ce6069a388db8c94a9fbe35cfee07445bb0 (diff) |
api: deprecate 'number' in bearer properties
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/issues/99
Diffstat (limited to 'libmm-glib/mm-simple-connect-properties.c')
-rw-r--r-- | libmm-glib/mm-simple-connect-properties.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/libmm-glib/mm-simple-connect-properties.c b/libmm-glib/mm-simple-connect-properties.c index 200b7c38..a02ba0ea 100644 --- a/libmm-glib/mm-simple-connect-properties.c +++ b/libmm-glib/mm-simple-connect-properties.c @@ -328,12 +328,17 @@ mm_simple_connect_properties_get_allow_roaming (MMSimpleConnectProperties *self) /*****************************************************************************/ +#ifndef MM_DISABLE_DEPRECATED + /** * mm_simple_connect_properties_set_number: * @self: a #MMSimpleConnectProperties. * @number: the number. * * Sets the number to use when performing the connection. + * + * Deprecated: 1.10.0. The number setting is not used anywhere, and therefore + * it doesn't make sense to expose it in the ModemManager interface. */ void mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self, @@ -341,8 +346,7 @@ mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self, { g_return_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self)); - mm_bearer_properties_set_number (self->priv->bearer_properties, - number); + /* NO-OP */ } /** @@ -352,15 +356,21 @@ mm_simple_connect_properties_set_number (MMSimpleConnectProperties *self, * Gets the number to use when performing the connection. * * Returns: (transfer none): the number, or #NULL if not set. Do not free the returned value, it is owned by @self. + * + * Deprecated: 1.10.0. The number setting is not used anywhere, and therefore + * it doesn't make sense to expose it in the ModemManager interface. */ const gchar * mm_simple_connect_properties_get_number (MMSimpleConnectProperties *self) { g_return_val_if_fail (MM_IS_SIMPLE_CONNECT_PROPERTIES (self), NULL); - return mm_bearer_properties_get_number (self->priv->bearer_properties); + /* NO-OP */ + return NULL; } +#endif /* MM_DISABLE_DEPRECATED */ + /*****************************************************************************/ /** |