refactoors
[mTask.git] / client / sds.h
index 4179f47..4d3a178 100644 (file)
@@ -1,21 +1,26 @@
 #ifndef SDS_H
 #define SDS_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdbool.h>
 
 struct sds {
        int id;
-       bool used;
-       char type;
        int value;
+       char type;
 };
 
-void sds_init(void);
 void sds_register(void);
-void sds_delete(void);
-bool sds_update(void);
+void sds_delete(uint8_t cs);
+bool sds_update(uint8_t id);
 void sds_publish(int id);
 int sds_fetch(int id);
 void sds_store(int id, int val);
 
+#ifdef __cplusplus
+}
+#endif
 #endif