From b325270296f89f9bca1c054b4661906984f6b19a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sat, 26 Oct 2019 22:43:53 +0200 Subject: [PATCH] libmm-glib,pco: mm_pco_list_add() is not part of the API This method is used by the daemon to modify the GList of MMPco objects, the client should not need to use this method for anything. --- docs/reference/libmm-glib/libmm-glib-sections.txt | 2 +- libmm-glib/mm-pco.c | 10 +--------- libmm-glib/mm-pco.h | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/docs/reference/libmm-glib/libmm-glib-sections.txt b/docs/reference/libmm-glib/libmm-glib-sections.txt index be2b0102..f70ad455 100644 --- a/docs/reference/libmm-glib/libmm-glib-sections.txt +++ b/docs/reference/libmm-glib/libmm-glib-sections.txt @@ -1417,7 +1417,6 @@ mm_pco_get_session_id mm_pco_is_complete mm_pco_get_data -mm_pco_list_add mm_pco_list_free mm_pco_new @@ -1426,6 +1425,7 @@ mm_pco_to_variant mm_pco_set_session_id mm_pco_set_complete mm_pco_set_data +mm_pco_list_add MMPcoClass MMPcoPrivate diff --git a/libmm-glib/mm-pco.c b/libmm-glib/mm-pco.c index 4804541e..632f947b 100644 --- a/libmm-glib/mm-pco.c +++ b/libmm-glib/mm-pco.c @@ -255,15 +255,7 @@ mm_pco_list_free (GList *pco_list) } /** - * mm_pco_list_add: - * @pco_list: (transfer full)(element-type ModemManager.Pco): a #GList of #MMPco. - * @pco: (transfer none): a #MMPco to add to the given list. - * - * Adds a #MMPco to a given PCO list. #MMPco objects stored in the order of - * their session ID. An existing PCO with the same session ID is overwritten - * with the new value. - * - * Returns: (transfer full)(element-type ModemManager.Pco): the new start of an updated or newly allocated #GList of #MMPco. + * mm_pco_list_add: (skip) */ GList * mm_pco_list_add (GList *pco_list, diff --git a/libmm-glib/mm-pco.h b/libmm-glib/mm-pco.h index 08f4694d..95b9ec16 100644 --- a/libmm-glib/mm-pco.h +++ b/libmm-glib/mm-pco.h @@ -65,8 +65,6 @@ const guint8 *mm_pco_get_data (MMPco *self, gsize *data_size); void mm_pco_list_free (GList *pco_list); -GList *mm_pco_list_add (GList *pco_list, - MMPco *pco); /*****************************************************************************/ /* ModemManager/libmm-glib/mmcli specific methods */ @@ -87,6 +85,8 @@ void mm_pco_set_data (MMPco *self, const guint8 *data, gsize data_size); +GList *mm_pco_list_add (GList *pco_list, + MMPco *pco); #endif G_END_DECLS