blob: a1a4ea51722c764dcca2fdb4568eb01d5c4a93a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#ifndef SMS_H
#define SMS_H
//#include <uthash.h>
#include <dirent.h>
#include <sys/types.h>
#include <time.h>
#include <string.h>
#include "contactList.h"
#include "config.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
|