aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-06-25 11:10:21 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-06-25 19:01:06 +0200
commitfebd5778e732d8f7fb5634c6557424578dfd75fa (patch)
tree2d61d3b69758ab21e4fb164b3ecb79be15e6056f
parentc1fae670b77b0cac7f82ee540348f161f49d2fa3 (diff)
libmm-glib,bearer-properties: move deprecated methods to compat source
-rw-r--r--docs/reference/libmm-glib/libmm-glib-sections.txt5
-rw-r--r--libmm-glib/mm-bearer-properties.c48
-rw-r--r--libmm-glib/mm-bearer-properties.h8
-rw-r--r--libmm-glib/mm-compat.c16
-rw-r--r--libmm-glib/mm-compat.h34
5 files changed, 53 insertions, 58 deletions
diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt
index d5c5423f..7cbfd77d 100644
--- a/docs/reference/libmm-glib/libmm-glib-sections.txt
+++ b/docs/reference/libmm-glib/libmm-glib-sections.txt
@@ -1213,8 +1213,6 @@ mm_bearer_properties_get_rm_protocol
mm_bearer_properties_set_rm_protocol
mm_bearer_properties_get_multiplex
mm_bearer_properties_set_multiplex
-mm_bearer_properties_get_number
-mm_bearer_properties_set_number
<SUBSECTION Private>
mm_bearer_properties_new_from_dictionary
mm_bearer_properties_new_from_string
@@ -1825,6 +1823,9 @@ mm_serial_error_get_type
<SECTION>
<FILE>mm-compat</FILE>
<TITLE>Deprecated Interface</TITLE>
+<SUBSECTION BearerProperties>
+mm_bearer_properties_get_number
+mm_bearer_properties_set_number
<SUBSECTION CallProperties>
mm_call_properties_get_direction
mm_call_properties_set_direction
diff --git a/libmm-glib/mm-bearer-properties.c b/libmm-glib/mm-bearer-properties.c
index 1864d256..51d0a60b 100644
--- a/libmm-glib/mm-bearer-properties.c
+++ b/libmm-glib/mm-bearer-properties.c
@@ -367,54 +367,6 @@ mm_bearer_properties_get_allow_roaming (MMBearerProperties *self)
/*****************************************************************************/
-#ifndef MM_DISABLE_DEPRECATED
-
-/**
- * mm_bearer_properties_set_number:
- * @self: a #MMBearerProperties.
- * @number: the number.
- *
- * Sets the number to use when performing the connection.
- *
- * Since: 1.0
- * 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_bearer_properties_set_number (MMBearerProperties *self,
- const gchar *number)
-{
- g_return_if_fail (MM_IS_BEARER_PROPERTIES (self));
-
- /* NO-OP */
-}
-
-/**
- * mm_bearer_properties_get_number:
- * @self: a #MMBearerProperties.
- *
- * 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.
- *
- * Since: 1.0
- * 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_bearer_properties_get_number (MMBearerProperties *self)
-{
- g_return_val_if_fail (MM_IS_BEARER_PROPERTIES (self), NULL);
-
- /* NO-OP */
- return NULL;
-}
-
-#endif /* MM_DISABLE_DEPRECATED */
-
-/*****************************************************************************/
-
/**
* mm_bearer_properties_set_rm_protocol:
* @self: a #MMBearerProperties.
diff --git a/libmm-glib/mm-bearer-properties.h b/libmm-glib/mm-bearer-properties.h
index 43975132..e6e4f537 100644
--- a/libmm-glib/mm-bearer-properties.h
+++ b/libmm-glib/mm-bearer-properties.h
@@ -91,14 +91,6 @@ gboolean mm_bearer_properties_get_allow_roaming (MMBearerProper
MMModemCdmaRmProtocol mm_bearer_properties_get_rm_protocol (MMBearerProperties *self);
MMBearerMultiplexSupport mm_bearer_properties_get_multiplex (MMBearerProperties *self);
-#ifndef MM_DISABLE_DEPRECATED
-G_DEPRECATED
-void mm_bearer_properties_set_number (MMBearerProperties *self,
- const gchar *number);
-G_DEPRECATED
-const gchar *mm_bearer_properties_get_number (MMBearerProperties *self);
-#endif
-
/*****************************************************************************/
/* ModemManager/libmm-glib/mmcli specific methods */
diff --git a/libmm-glib/mm-compat.c b/libmm-glib/mm-compat.c
index fd04fa33..0a4dacbd 100644
--- a/libmm-glib/mm-compat.c
+++ b/libmm-glib/mm-compat.c
@@ -29,6 +29,22 @@
/*****************************************************************************/
void
+mm_bearer_properties_set_number (MMBearerProperties *self,
+ const gchar *number)
+{
+ /* NO-OP */
+}
+
+const gchar *
+mm_bearer_properties_get_number (MMBearerProperties *self)
+{
+ /* NO-OP */
+ return NULL;
+}
+
+/*****************************************************************************/
+
+void
mm_call_properties_set_direction (MMCallProperties *self,
MMCallDirection direction)
{
diff --git a/libmm-glib/mm-compat.h b/libmm-glib/mm-compat.h
index 9b781762..1b984162 100644
--- a/libmm-glib/mm-compat.h
+++ b/libmm-glib/mm-compat.h
@@ -29,6 +29,7 @@
#error "Only <libmm-glib.h> can be included directly."
#endif
+#include "mm-bearer-properties.h"
#include "mm-call-properties.h"
#include "mm-modem-oma.h"
@@ -44,6 +45,39 @@
/*****************************************************************************/
/**
+ * mm_bearer_properties_set_number:
+ * @self: a #MMBearerProperties.
+ * @number: the number.
+ *
+ * Sets the number to use when performing the connection.
+ *
+ * Since: 1.0
+ * 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.
+ */
+G_DEPRECATED
+void mm_bearer_properties_set_number (MMBearerProperties *self,
+ const gchar *number);
+
+/**
+ * mm_bearer_properties_get_number:
+ * @self: a #MMBearerProperties.
+ *
+ * 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.
+ *
+ * Since: 1.0
+ * 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.
+ */
+G_DEPRECATED
+const gchar *mm_bearer_properties_get_number (MMBearerProperties *self);
+
+/*****************************************************************************/
+
+/**
* mm_call_properties_set_direction:
* @self: A #MMCallProperties.
* @direction: the call direction