X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Fsds.h;h=4d3a1786c895d385b59133debd6ee7841da29057;hb=HEAD;hp=de8342101b931b6e36c2bf82976155b7a5d8af05;hpb=7ab8606c3d22a2bc2743eae7a398407c84d502f2;p=mTask.git diff --git a/client/sds.h b/client/sds.h index de83421..4d3a178 100644 --- a/client/sds.h +++ b/client/sds.h @@ -1,23 +1,26 @@ #ifndef SDS_H #define SDS_H -#include +#ifdef __cplusplus +extern "C" { +#endif -#define MAXSDSS 100 +#include 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