include: define initializer for ofono_call
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 1 Feb 2011 17:12:42 +0000 (15:12 -0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 1 Feb 2011 17:30:44 +0000 (18:30 +0100)
Some fields in struct ofono_call such as cnap_validity and clip_validity
are not correctly initialized as 0 since this means they are present. If
driver does not implement the necessary handlers, it might send to core
an ofono_call signalling that cnap and clip are available when they are
actually not.

include/types.h

index 0faff54..31f2682 100644 (file)
@@ -116,6 +116,7 @@ struct ofono_uuid {
 };
 
 const char *ofono_uuid_to_str(const struct ofono_uuid *uuid);
+void ofono_call_init(struct ofono_call *call);
 
 #ifdef __cplusplus
 }