modem-helpers: port ccwa service query parser to use object logging
This commit is contained in:
@@ -8311,7 +8311,7 @@ modem_voice_call_waiting_query_finish (MMIfaceModemVoice *self,
|
||||
if (!response)
|
||||
return FALSE;
|
||||
|
||||
return mm_3gpp_parse_ccwa_service_query_response (response, status, error);
|
||||
return mm_3gpp_parse_ccwa_service_query_response (response, self, status, error);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
@@ -2846,6 +2846,7 @@ mm_3gpp_parse_cemode_query_response (const gchar *response,
|
||||
|
||||
gboolean
|
||||
mm_3gpp_parse_ccwa_service_query_response (const gchar *response,
|
||||
gpointer log_object,
|
||||
gboolean *status,
|
||||
GError **error)
|
||||
{
|
||||
@@ -2881,10 +2882,10 @@ mm_3gpp_parse_ccwa_service_query_response (const gchar *response,
|
||||
guint class;
|
||||
|
||||
if (!mm_get_uint_from_match_info (match_info, 2, &class))
|
||||
mm_warn ("couldn't parse class from +CCWA line");
|
||||
mm_obj_warn (log_object, "couldn't parse class from +CCWA line");
|
||||
else if (class == 1 || class == 255) {
|
||||
if (!mm_get_uint_from_match_info (match_info, 1, &st))
|
||||
mm_warn ("couldn't parse status from +CCWA line");
|
||||
mm_obj_warn (log_object, "couldn't parse status from +CCWA line");
|
||||
else {
|
||||
class_1_status = st;
|
||||
break;
|
||||
|
||||
@@ -415,6 +415,7 @@ gboolean mm_3gpp_parse_cemode_query_response (const gchar *r
|
||||
|
||||
/* CCWA service query response parser */
|
||||
gboolean mm_3gpp_parse_ccwa_service_query_response (const gchar *response,
|
||||
gpointer log_object,
|
||||
gboolean *status,
|
||||
GError **error);
|
||||
|
||||
|
||||
@@ -4133,7 +4133,7 @@ common_test_ccwa_response (const gchar *response,
|
||||
GError *error = NULL;
|
||||
gboolean result;
|
||||
|
||||
result = mm_3gpp_parse_ccwa_service_query_response (response, &status, &error);
|
||||
result = mm_3gpp_parse_ccwa_service_query_response (response, NULL, &status, &error);
|
||||
|
||||
if (expected_error) {
|
||||
g_assert (!result);
|
||||
|
||||
Reference in New Issue
Block a user