X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=client%2Fsds.h;h=f99bb1e1515d139e110f91b3a5829260bdada172;hb=09b207a39b7791098daafd7d87c3ad9d3db3e19f;hp=ab67bc8d229ece5dd6050db03e4498889e10a9ae;hpb=55afb005ced3bba3813163596cdc7288a318a3c2;p=mTask.git diff --git a/client/sds.h b/client/sds.h index ab67bc8..f99bb1e 100644 --- a/client/sds.h +++ b/client/sds.h @@ -1,14 +1,17 @@ #ifndef SDS_H #define SDS_H -#include +#ifdef __cplusplus +extern "C" { +#endif -#define MAXSDSS 100 +#include struct sds { int id; - int value; bool used; + char type; + int value; }; void sds_init(void); @@ -19,4 +22,7 @@ void sds_publish(int id); int sds_fetch(int id); void sds_store(int id, int val); +#ifdef __cplusplus +} +#endif #endif