From ab68cd8e7ebeba3410bbdd1e4919ad875025766f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 26 May 2009 13:48:42 -0500 Subject: Create ofono_phone_number struct Creates a new structure in driver.h called ofono_phone_number. This is meant to replace const char *number, int number_type arguments everywhere. Fix up all existing code to use this structure instead. --- src/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 8fceaa26..90e245d9 100644 --- a/src/common.h +++ b/src/common.h @@ -173,8 +173,8 @@ enum ss_cssu { const char *telephony_error_to_str(const struct ofono_error *error); gboolean valid_phone_number_format(const char *number); -const char *phone_number_to_string(const char *number, int type); -void string_to_phone_number(const char *str, int *type, const char **number); +const char *phone_number_to_string(const struct ofono_phone_number *ph); +void string_to_phone_number(const char *str, struct ofono_phone_number *ph); int mmi_service_code_to_bearer_class(int code); -- cgit v1.2.3