libmm-glib,pco: move deprecated methods to compat source

This commit is contained in:
Aleksander Morgado
2021-06-25 11:31:53 +02:00
parent 27a192c1ef
commit a09b13de86
5 changed files with 27 additions and 30 deletions

View File

@@ -1484,8 +1484,6 @@ MMPco
mm_pco_get_session_id
mm_pco_is_complete
mm_pco_get_data
<SUBSECTION List>
mm_pco_list_free
<SUBSECTION Private>
mm_pco_new
mm_pco_from_variant
@@ -1834,6 +1832,8 @@ mm_call_properties_get_state_reason
mm_call_properties_set_state_reason
<SUBSECTION LocationGpsNmea>
mm_location_gps_nmea_build_full
<SUBSECTION Pco>
mm_pco_list_free
<SUBSECTION Modem3gpp>
mm_modem_3gpp_get_subscription_state
<SUBSECTION ModemOma>

View File

@@ -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)
{

View File

@@ -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"
@@ -230,6 +231,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.

View File

@@ -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)
*/

View File

@@ -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 */