From 76f7b2136ba7ed8adec5f343550065e05bb733bc Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 11 Nov 2017 15:11:04 +0100 Subject: Number to contact option --- contactList.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contactList.h') diff --git a/contactList.h b/contactList.h index 12d69ed..5857c2f 100644 --- a/contactList.h +++ b/contactList.h @@ -12,6 +12,7 @@ typedef struct contact { int hasNewMessage; } contact ; +#define DEFAULT_CONTACT_FILENAME "/usr/share/sms/contact.csv" @@ -24,6 +25,13 @@ int fillContactList(char* cvs_file_in); // Return: 0 if success, >0 if error int writeContactList(char* cvs_file_in); +// Find a contact +// Params: A SIM Number +// Return: 0 if success, >0 otherwise +int findContact(const char*, contact**); + + + // Add a contact // Params: A contact struct // Return: 0 if success, >0 otherwise -- cgit v1.2.3