X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/65a51d11c64daa4df3d4388df60bb4efc3e67e14..46b0747592074017ff0ea4b33d4a7194235886e5:/projects/rlm_stg/stgpair.h?ds=sidebyside diff --git a/projects/rlm_stg/stgpair.h b/projects/rlm_stg/stgpair.h deleted file mode 100644 index dba9e3eb..00000000 --- a/projects/rlm_stg/stgpair.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef __STG_STGPAIR_H__ -#define __STG_STGPAIR_H__ - -#include - -#define STGPAIR_KEYLENGTH 64 -#define STGPAIR_VALUELENGTH 256 - -#ifdef __cplusplus -extern "C" { -#endif - -typedef struct STG_PAIR { - char key[STGPAIR_KEYLENGTH]; - char value[STGPAIR_VALUELENGTH]; -} STG_PAIR; - -typedef struct STG_RESULT { - STG_PAIR* modify; - STG_PAIR* reply; -} STG_RESULT; - -inline -int emptyPair(const STG_PAIR* pair) -{ - return pair != NULL && pair->key[0] != '\0' && pair->value[0] != '\0'; -} - -#ifdef __cplusplus -} -#endif - -#endif