Add mpty field to ofono_call

A field 'mpty' is added to ofono_call so that we can know
whether the call belongs to multiparty call or not. According
to 27.007 7.18, it is a defined return value of AT+CLCC.
This commit is contained in:
Zhenhua Zhang 2009-11-23 14:06:53 +08:00 committed by Marcel Holtmann
parent bbc2eecd6f
commit f3fe75553a
2 changed files with 4 additions and 1 deletions

View File

@ -115,6 +115,7 @@ GSList *at_util_parse_clcc(GAtResult *result)
GAtResultIter iter; GAtResultIter iter;
GSList *l = NULL; GSList *l = NULL;
int id, dir, status, type; int id, dir, status, type;
ofono_bool_t mpty;
struct ofono_call *call; struct ofono_call *call;
g_at_result_iter_init(&iter, result); g_at_result_iter_init(&iter, result);
@ -135,7 +136,7 @@ GSList *at_util_parse_clcc(GAtResult *result)
if (!g_at_result_iter_next_number(&iter, &type)) if (!g_at_result_iter_next_number(&iter, &type))
continue; continue;
if (!g_at_result_iter_skip_next(&iter)) if (!g_at_result_iter_next_number(&iter, &mpty))
continue; continue;
if (g_at_result_iter_next_string(&iter, &str)) if (g_at_result_iter_next_string(&iter, &str))
@ -150,6 +151,7 @@ GSList *at_util_parse_clcc(GAtResult *result)
call->direction = dir; call->direction = dir;
call->status = status; call->status = status;
call->type = type; call->type = type;
call->mpty = mpty;
strncpy(call->phone_number.number, str, strncpy(call->phone_number.number, str,
OFONO_MAX_PHONE_NUMBER_LENGTH); OFONO_MAX_PHONE_NUMBER_LENGTH);
call->phone_number.type = number_type; call->phone_number.type = number_type;

View File

@ -87,6 +87,7 @@ struct ofono_call {
int type; int type;
int direction; int direction;
int status; int status;
ofono_bool_t mpty;
struct ofono_phone_number phone_number; struct ofono_phone_number phone_number;
int clip_validity; int clip_validity;
}; };