libmm-glib,simple-connect-properties: new print() method
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
* Boston, MA 02110-1301 USA.
|
* Boston, MA 02110-1301 USA.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Aleksander Morgado <aleksander@gnu.org>
|
* Copyright (C) 2011-2022 Aleksander Morgado <aleksander@aleksander.es>
|
||||||
|
* Copyright (C) 2022 Google, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -730,6 +731,26 @@ mm_simple_connect_properties_new_from_dictionary (GVariant *dictionary,
|
|||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* mm_simple_connect_properties_print: (skip)
|
||||||
|
*/
|
||||||
|
GPtrArray *
|
||||||
|
mm_simple_connect_properties_print (MMSimpleConnectProperties *self,
|
||||||
|
gboolean show_personal_info)
|
||||||
|
{
|
||||||
|
GPtrArray *array;
|
||||||
|
|
||||||
|
array = mm_bearer_properties_print (self->priv->bearer_properties, show_personal_info);
|
||||||
|
if (self->priv->pin)
|
||||||
|
g_ptr_array_add (array, g_strdup_printf (PROPERTY_PIN ": %s", mm_common_str_personal_info (self->priv->pin, show_personal_info)));
|
||||||
|
if (self->priv->operator_id)
|
||||||
|
g_ptr_array_add (array, g_strdup_printf (PROPERTY_OPERATOR_ID ": %s", self->priv->operator_id));
|
||||||
|
|
||||||
|
return array;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*****************************************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* mm_simple_connect_properties_new:
|
* mm_simple_connect_properties_new:
|
||||||
*
|
*
|
||||||
|
@@ -17,7 +17,8 @@
|
|||||||
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
||||||
* Boston, MA 02110-1301 USA.
|
* Boston, MA 02110-1301 USA.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Aleksander Morgado <aleksander@gnu.org>
|
* Copyright (C) 2011-2022 Aleksander Morgado <aleksander@aleksander.es>
|
||||||
|
* Copyright (C) 2022 Google, Inc.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MM_SIMPLE_CONNECT_PROPERTIES_H
|
#ifndef MM_SIMPLE_CONNECT_PROPERTIES_H
|
||||||
@@ -120,6 +121,10 @@ MMSimpleConnectProperties *mm_simple_connect_properties_new_from_dictionary (GVa
|
|||||||
MMBearerProperties *mm_simple_connect_properties_get_bearer_properties (MMSimpleConnectProperties *self);
|
MMBearerProperties *mm_simple_connect_properties_get_bearer_properties (MMSimpleConnectProperties *self);
|
||||||
|
|
||||||
GVariant *mm_simple_connect_properties_get_dictionary (MMSimpleConnectProperties *self);
|
GVariant *mm_simple_connect_properties_get_dictionary (MMSimpleConnectProperties *self);
|
||||||
|
|
||||||
|
GPtrArray *mm_simple_connect_properties_print (MMSimpleConnectProperties *self,
|
||||||
|
gboolean show_personal_info);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user