summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2011-02-01 15:12:43 -0200
committerMarcel Holtmann <marcel@holtmann.org>2011-02-01 18:30:53 +0100
commit80a257098a80ce593137bc72a55ed7ef00ab627b (patch)
treee143306aea2daf4af4d857ec0d2a56777875db01 /src/common.c
parent7ff536558378f9b59e0725b09f44be9c6aea39bb (diff)
downloadofono-80a257098a80ce593137bc72a55ed7ef00ab627b.tar.bz2
common: implement initializer for ofono_call
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c7
1 files changed, 7 insertions, 0 deletions
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;
+}