From 80a257098a80ce593137bc72a55ed7ef00ab627b Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 1 Feb 2011 15:12:43 -0200 Subject: common: implement initializer for ofono_call --- src/common.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common.c') diff --git a/src/common.c b/src/common.c index 8bf9dbba..f25f1053 100644 --- a/src/common.c +++ b/src/common.c @@ -762,3 +762,10 @@ const char *ofono_uuid_to_str(const struct ofono_uuid *uuid) return encode_hex_own_buf(uuid->uuid, OFONO_SHA1_UUID_LEN, 0, buf); } + +void ofono_call_init(struct ofono_call *call) +{ + memset(call, 0, sizeof(struct ofono_call)); + call->cnap_validity = CNAP_VALIDITY_NOT_AVAILABLE; + call->clip_validity = CLIP_VALIDITY_NOT_AVAILABLE; +} -- cgit v1.2.3