aboutsummaryrefslogtreecommitdiff
path: root/sms.h
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-11-17 11:21:12 +0100
committerache <ache@ache.one>2017-11-17 11:21:12 +0100
commit20a87184b1c06f63b2b3d8b9c48a68535b31b4bb (patch)
treee3ad5a41ac00d71ef95bd58fd1c4d4bf3eaa07a7 /sms.h
parentNumber to contact option (diff)
New mesms
Diffstat (limited to 'sms.h')
-rw-r--r--sms.h53
1 files changed, 53 insertions, 0 deletions
diff --git a/sms.h b/sms.h
new file mode 100644
index 0000000..7d8a493
--- /dev/null
+++ b/sms.h
@@ -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
+
+
+