telit: prefix helper methods with 'mm_telit'
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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 */
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user