diff options
author | ache <ache@ache.one> | 2017-11-11 15:11:04 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2017-11-11 15:11:04 +0100 |
commit | 76f7b2136ba7ed8adec5f343550065e05bb733bc (patch) | |
tree | 5ab7ee675146d6d300d622c8d2784aefae89c874 /contactList.h | |
parent | Todo list of the project (diff) |
Number to contact option
Diffstat (limited to 'contactList.h')
-rw-r--r-- | contactList.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |