X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/70f8adff2c970496bdc45717cad49ddec0405ae7..8c6fa3fbaccc22127280bf77a48fab5a3ee0716e:/projects/rlm_stg/stgpair.h diff --git a/projects/rlm_stg/stgpair.h b/projects/rlm_stg/stgpair.h index dba9e3eb..ef7ab4b7 100644 --- a/projects/rlm_stg/stgpair.h +++ b/projects/rlm_stg/stgpair.h @@ -18,14 +18,28 @@ typedef struct STG_PAIR { typedef struct STG_RESULT { STG_PAIR* modify; STG_PAIR* reply; + int returnCode; } STG_RESULT; inline int emptyPair(const STG_PAIR* pair) { - return pair != NULL && pair->key[0] != '\0' && pair->value[0] != '\0'; + return pair == NULL || pair->key[0] == '\0' || pair->value[0] == '\0'; } +enum +{ + STG_REJECT, + STG_FAIL, + STG_OK, + STG_HANDLED, + STG_INVALID, + STG_USERLOCK, + STG_NOTFOUND, + STG_NOOP, + STG_UPDATED +}; + #ifdef __cplusplus } #endif