]> git.stg.codes - stg.git/blobdiff - projects/rlm_stg/stgpair.h
Merge branch 'stg-2.409-radius'
[stg.git] / projects / rlm_stg / stgpair.h
index dba9e3eb4b5af5c1643337423f54c0392f8a3499..ef7ab4b778897fdd3e738e36346b70a7ebe7633a 100644 (file)
@@ -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