telit: prefix helper methods with 'mm_telit'

This commit is contained in:
Aleksander Morgado
2015-12-19 11:45:32 +01:00
parent 740e1b5461
commit a74edab57f
4 changed files with 10 additions and 5 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 */

View File

@@ -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);