* [PATCH] Add mpty field to ofono_call
@ 2009-11-23 6:06 Zhenhua Zhang
2009-11-23 8:06 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: Zhenhua Zhang @ 2009-11-23 6:06 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1623 bytes --]
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.
---
drivers/atmodem/atutil.c | 4 +++-
include/types.h | 1 +
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/drivers/atmodem/atutil.c b/drivers/atmodem/atutil.c
index 3a365f4..c3d7922 100644
--- a/drivers/atmodem/atutil.c
+++ b/drivers/atmodem/atutil.c
@@ -115,6 +115,7 @@ GSList *at_util_parse_clcc(GAtResult *result)
GAtResultIter iter;
GSList *l = NULL;
int id, dir, status, type;
+ ofono_bool_t mpty;
struct ofono_call *call;
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))
continue;
- if (!g_at_result_iter_skip_next(&iter))
+ if (!g_at_result_iter_next_number(&iter, &mpty))
continue;
if (g_at_result_iter_next_string(&iter, &str))
@@ -150,6 +151,7 @@ GSList *at_util_parse_clcc(GAtResult *result)
call->direction = dir;
call->status = status;
call->type = type;
+ call->mpty = mpty;
strncpy(call->phone_number.number, str,
OFONO_MAX_PHONE_NUMBER_LENGTH);
call->phone_number.type = number_type;
diff --git a/include/types.h b/include/types.h
index 6a9681d..79e6d4c 100644
--- a/include/types.h
+++ b/include/types.h
@@ -87,6 +87,7 @@ struct ofono_call {
int type;
int direction;
int status;
+ ofono_bool_t mpty;
struct ofono_phone_number phone_number;
int clip_validity;
};
--
1.6.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-23 8:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-23 6:06 [PATCH] Add mpty field to ofono_call Zhenhua Zhang
2009-11-23 8:06 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox