added debug statements, dynamic allocation is working for tasks
[mTask.git] / client / sds.h
index 1cc5b3b..f99bb1e 100644 (file)
@@ -1,21 +1,28 @@
 #ifndef SDS_H
 #define SDS_H
 
-#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-#define MAXSDSS 100
+#include <stdbool.h>
 
 struct sds {
        int id;
-       int value;
        bool used;
+       char type;
+       int value;
 };
 
 void sds_init(void);
 void sds_register(void);
+void sds_delete(void);
 bool sds_update(void);
 void sds_publish(int id);
 int sds_fetch(int id);
 void sds_store(int id, int val);
 
+#ifdef __cplusplus
+}
+#endif
 #endif