diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2015-12-19 11:45:32 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-12-19 11:45:32 +0100 |
commit | a74edab57f53ee8c920e681145070b252f5e656e (patch) | |
tree | 9c7fd411f4d18636d1d21b2c98a413c82c3d2e6b /plugins | |
parent | 740e1b5461bda9ff28f3ad2210ecf7238c38e785 (diff) |
telit: prefix helper methods with 'mm_telit'
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/telit/mm-broadband-modem-telit.c | 2 | ||||
-rw-r--r-- | plugins/telit/mm-modem-helpers-telit.c | 5 | ||||
-rw-r--r-- | plugins/telit/mm-modem-helpers-telit.h | 4 | ||||
-rw-r--r-- | plugins/telit/tests/test-mm-modem-helpers-telit.c | 4 |
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); |