summaryrefslogtreecommitdiff
path: root/libmm-glib
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-06-25 11:31:53 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-06-25 19:01:06 +0200
commita09b13de86fd62c9b5144ada2c23c6062e873ec1 (patch)
tree3ca29b639a21153e11d02f50bddf79ba83a4be9e /libmm-glib
parent27a192c1ef063f7c29668cf61739335dc02ecf87 (diff)
libmm-glib,pco: move deprecated methods to compat source
Diffstat (limited to 'libmm-glib')
-rw-r--r--libmm-glib/mm-compat.c8
-rw-r--r--libmm-glib/mm-compat.h17
-rw-r--r--libmm-glib/mm-pco.c21
-rw-r--r--libmm-glib/mm-pco.h7
4 files changed, 25 insertions, 28 deletions
diff --git a/libmm-glib/mm-compat.c b/libmm-glib/mm-compat.c
index 2c5f2d75..d7b5d40a 100644
--- a/libmm-glib/mm-compat.c
+++ b/libmm-glib/mm-compat.c
@@ -117,6 +117,14 @@ mm_location_gps_nmea_build_full (MMLocationGpsNmea *self)
/*****************************************************************************/
+void
+mm_pco_list_free (GList *pco_list)
+{
+ g_list_free_full (pco_list, g_object_unref);
+}
+
+/*****************************************************************************/
+
MMModem3gppSubscriptionState
mm_modem_3gpp_get_subscription_state (MMModem3gpp *self)
{
diff --git a/libmm-glib/mm-compat.h b/libmm-glib/mm-compat.h
index 5a06da17..143a0d43 100644
--- a/libmm-glib/mm-compat.h
+++ b/libmm-glib/mm-compat.h
@@ -33,6 +33,7 @@
#include "mm-bearer-properties.h"
#include "mm-call-properties.h"
#include "mm-location-gps-nmea.h"
+#include "mm-pco.h"
#include "mm-modem-3gpp.h"
#include "mm-modem-oma.h"
@@ -231,6 +232,22 @@ gchar *mm_location_gps_nmea_build_full (MMLocationGpsNmea *self);
/*****************************************************************************/
/**
+ * mm_pco_list_free:
+ * @pco_list: (transfer full)(element-type ModemManager.Pco): a #GList of
+ * #MMPco.
+ *
+ * Frees all of the memory used by a #GList of #MMPco.
+ *
+ * Since: 1.10
+ * Deprecated: 1.12.0: Use g_list_free_full() using g_object_unref() as
+ * #GDestroyNotify function instead.
+ */
+G_DEPRECATED
+void mm_pco_list_free (GList *pco_list);
+
+/*****************************************************************************/
+
+/**
* mm_modem_3gpp_get_subscription_state:
* @self: A #MMModem.
*
diff --git a/libmm-glib/mm-pco.c b/libmm-glib/mm-pco.c
index 581761a1..23753b10 100644
--- a/libmm-glib/mm-pco.c
+++ b/libmm-glib/mm-pco.c
@@ -246,27 +246,6 @@ mm_pco_to_variant (MMPco *self)
/*****************************************************************************/
-#ifndef MM_DISABLE_DEPRECATED
-
-/**
- * mm_pco_list_free:
- * @pco_list: (transfer full)(element-type ModemManager.Pco): a #GList of
- * #MMPco.
- *
- * Frees all of the memory used by a #GList of #MMPco.
- *
- * Since: 1.10
- * Deprecated: 1.12.0: Use g_list_free_full() using g_object_unref() as
- * #GDestroyNotify function instead.
- */
-void
-mm_pco_list_free (GList *pco_list)
-{
- g_list_free_full (pco_list, g_object_unref);
-}
-
-#endif /* MM_DISABLE_DEPRECATED */
-
/**
* mm_pco_list_add: (skip)
*/
diff --git a/libmm-glib/mm-pco.h b/libmm-glib/mm-pco.h
index e276e3b9..11203577 100644
--- a/libmm-glib/mm-pco.h
+++ b/libmm-glib/mm-pco.h
@@ -61,13 +61,6 @@ gboolean mm_pco_is_complete (MMPco *self);
const guint8 *mm_pco_get_data (MMPco *self,
gsize *data_size);
-#ifndef MM_DISABLE_DEPRECATED
-
-G_DEPRECATED
-void mm_pco_list_free (GList *pco_list);
-
-#endif
-
/*****************************************************************************/
/* ModemManager/libmm-glib/mmcli specific methods */