aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/telit/mm-broadband-modem-telit.c2
-rw-r--r--plugins/telit/mm-modem-helpers-telit.c5
-rw-r--r--plugins/telit/mm-modem-helpers-telit.h4
-rw-r--r--plugins/telit/tests/test-mm-modem-helpers-telit.c4
4 files changed, 10 insertions, 5 deletions
diff --git a/plugins/telit/mm-broadband-modem-telit.c b/plugins/telit/mm-broadband-modem-telit.c
index d0c5eeb5..37ae3c6f 100644
--- a/plugins/telit/mm-broadband-modem-telit.c
+++ b/plugins/telit/mm-broadband-modem-telit.c
@@ -107,7 +107,7 @@ csim_query_ready (MMBaseModem *self,
goto next_step;
}
- if ( (unlock_retries = parse_csim_response (ctx->step, response, &error)) < 0) {
+ if ( (unlock_retries = mm_telit_parse_csim_response (ctx->step, response, &error)) < 0) {
mm_warn ("Parse error in step %d: %s.", ctx->step, error->message);
g_error_free (error);
goto next_step;
diff --git a/plugins/telit/mm-modem-helpers-telit.c b/plugins/telit/mm-modem-helpers-telit.c
index 972d51e5..53446006 100644
--- a/plugins/telit/mm-modem-helpers-telit.c
+++ b/plugins/telit/mm-modem-helpers-telit.c
@@ -29,7 +29,10 @@
/*****************************************************************************/
/* +CSIM response parser */
-gint parse_csim_response (const guint step, const gchar *response, GError **error)
+gint
+mm_telit_parse_csim_response (const guint step,
+ const gchar *response,
+ GError **error)
{
GRegex *r = NULL;
GMatchInfo *match_info = NULL;
diff --git a/plugins/telit/mm-modem-helpers-telit.h b/plugins/telit/mm-modem-helpers-telit.h
index 74f993b2..112e04b0 100644
--- a/plugins/telit/mm-modem-helpers-telit.h
+++ b/plugins/telit/mm-modem-helpers-telit.h
@@ -19,6 +19,8 @@
#include <glib.h>
/* +CSIM response parser */
-gint parse_csim_response (const guint step, const gchar *response, GError **error);
+gint mm_telit_parse_csim_response (const guint step,
+ const gchar *response,
+ GError **error);
#endif /* MM_MODEM_HELPERS_TELIT_H */
diff --git a/plugins/telit/tests/test-mm-modem-helpers-telit.c b/plugins/telit/tests/test-mm-modem-helpers-telit.c
index a6a44c45..afe9f827 100644
--- a/plugins/telit/tests/test-mm-modem-helpers-telit.c
+++ b/plugins/telit/tests/test-mm-modem-helpers-telit.c
@@ -72,7 +72,7 @@ test_parse_csim_response (void)
/* Test valid responses */
for (i = 0; valid_csim_response_test_list[i].response != NULL; i++) {
- res = parse_csim_response (step, valid_csim_response_test_list[i].response, &error);
+ res = mm_telit_parse_csim_response (step, valid_csim_response_test_list[i].response, &error);
g_assert_no_error (error);
g_assert_cmpint (res, ==, valid_csim_response_test_list[i].result);
@@ -80,7 +80,7 @@ test_parse_csim_response (void)
/* Test invalid responses */
for (i = 0; invalid_csim_response_test_list[i].response != NULL; i++) {
- res = parse_csim_response (step, invalid_csim_response_test_list[i].response, &error);
+ res = mm_telit_parse_csim_response (step, invalid_csim_response_test_list[i].response, &error);
g_assert_error (error, MM_CORE_ERROR, MM_CORE_ERROR_FAILED);
g_assert_cmpint (res, ==, invalid_csim_response_test_list[i].result);