aboutsummaryrefslogtreecommitdiff
path: root/contactList.h
diff options
context:
space:
mode:
Diffstat (limited to 'contactList.h')
-rw-r--r--contactList.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/contactList.h b/contactList.h
index c5cf10c..6d72dee 100644
--- a/contactList.h
+++ b/contactList.h
@@ -22,12 +22,12 @@ typedef struct contact {
// Params: The CSV filename (separator ';', unexcaped string, so ';' is forbiden in value)
// Return: 0 if success, >0 if error
-int fillContactList(char* cvs_file_in);
+int fillContactList(const char* cvs_file_in);
// Params: A valide filename
// Return: 0 if success, >0 if error
-int writeContactList(char* cvs_file_in);
+int writeContactList(const char* cvs_file_in);
// Find a contact
// Params: A SIM Number
@@ -50,14 +50,7 @@ int addContact(const contact*);
// Delete a contact
// Params: A String which is a valide contact SIM number
// Return: 0 if success, >0 otherwise
-int deleteContactFromNumber(const char*);
-
-
-// Delete a contact from his name
-// Params: A String which is a valide contact SIM number
-// Return: 0 if success, >0 otherwise
-int deleteContactFromName(const char*);
-
+int deleteContact(void);
// Sort the contact list
// Params : Nothing