diff options
Diffstat (limited to 'sms.h')
-rw-r--r-- | sms.h | 53 |
1 files changed, 53 insertions, 0 deletions
@@ -0,0 +1,53 @@ + +#ifndef SMS_H +#define SMS_H + +//#include <uthash.h> + +#include <dirent.h> +#include <sys/types.h> +#include <string.h> +#include <time.h> + + + +#include "contactList.h" + + + +#define SMS_IN 0 +#define SMS_OUT 1 + +#define FLASH_SMS 0 +#define REGUL_SMS 1 + +#define SMS_READ 0 +#define SMS_UNREAD 1 + +typedef struct sms { + char number[20]; // Sender or Dest + char* text; + int len; + time_t outDate; // Sent date + time_t intDate; // Receive date + char type; // Class 0 = Flash SMS | Other = Normal + char state; // Read or Unread + char in_out; // Sent or Received ? +} sms; + +typedef struct conversation { + char number[20]; + sms* listSMS; + size_t nbSMS; +} conversation; + + + + +int listSMS(char*,int); +int loadConv(void); + +#endif + + + |