#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);
int sds_fetch(int id);
void sds_store(int id, int val);
+#ifdef __cplusplus
+}
+#endif
#endif