log-helpers: add helper to log simple connect properties

This commit is contained in:
Aleksander Morgado
2022-09-13 13:52:33 +00:00
parent f509e68fa3
commit e7b225ab9a
2 changed files with 27 additions and 8 deletions

View File

@@ -30,6 +30,21 @@ common_log_print_array (gpointer log_object,
} }
} }
void
mm_log_simple_connect_properties (gpointer log_object,
MMLogLevel level,
const gchar *prefix,
MMSimpleConnectProperties *value)
{
g_autoptr(GPtrArray) print_array = NULL;
if (!mm_log_check_level_enabled (level))
return;
print_array = mm_simple_connect_properties_print (value, mm_log_get_show_personal_info ());
common_log_print_array (log_object, level, prefix, print_array);
}
void void
mm_log_bearer_properties (gpointer log_object, mm_log_bearer_properties (gpointer log_object,
MMLogLevel level, MMLogLevel level,

View File

@@ -22,13 +22,17 @@
#include "mm-log.h" #include "mm-log.h"
void mm_log_bearer_properties (gpointer log_object, void mm_log_simple_connect_properties (gpointer log_object,
MMLogLevel level, MMLogLevel level,
const gchar *prefix, const gchar *prefix,
MMBearerProperties *value); MMSimpleConnectProperties *value);
void mm_log_3gpp_profile (gpointer log_object, void mm_log_bearer_properties (gpointer log_object,
MMLogLevel level, MMLogLevel level,
const gchar *prefix, const gchar *prefix,
MM3gppProfile *value); MMBearerProperties *value);
void mm_log_3gpp_profile (gpointer log_object,
MMLogLevel level,
const gchar *prefix,
MM3gppProfile *value);
#endif /* MM_LOG_HELPERS_H */ #endif /* MM_LOG_HELPERS_H */