f99bb1e1515d139e110f91b3a5829260bdada172
[mTask.git] / client / sds.h
1 #ifndef SDS_H
2 #define SDS_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #include <stdbool.h>
9
10 struct sds {
11 int id;
12 bool used;
13 char type;
14 int value;
15 };
16
17 void sds_init(void);
18 void sds_register(void);
19 void sds_delete(void);
20 bool sds_update(void);
21 void sds_publish(int id);
22 int sds_fetch(int id);
23 void sds_store(int id, int val);
24
25 #ifdef __cplusplus
26 }
27 #endif
28 #endif