shares are dynamically allocated as well:)
[mTask.git] / client / sds.h
index f99bb1e..4d3a178 100644 (file)
@@ -9,15 +9,13 @@ extern "C" {
 
 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);