summaryrefslogtreecommitdiff
path: root/daemon/bd.h
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/bd.h')
-rw-r--r--daemon/bd.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/daemon/bd.h b/daemon/bd.h
index a59b1e1..5199615 100644
--- a/daemon/bd.h
+++ b/daemon/bd.h
@@ -44,16 +44,18 @@ typedef void (*bd_escape_value)(const ha_request_t* rq, ha_buffer_t* buf,
*/
typedef struct bd_context
{
- hsh_t* cache; /* Some cached records or basic */
-
+ /* Readonly ---------------------------------------------*/
bd_validate_digest f_validate_digest;
bd_validate_basic f_validate_basic;
bd_escape_value f_escape_value;
+
+ /* Require locking --------------------------------------*/
+ hsh_t* cache; /* Some cached records or basic */
}
bd_context_t;
-#define BD_CALLBACKS(a, b, c) { NULL, (a), (b), (c) }
-#define BD_DEFAULTS { NULL, NULL, NULL }
+#define BD_CALLBACKS(a, b, c) {(a), (b), (c), NULL }
+#define BD_DEFAULTS { NULL, NULL, NULL, NULL }
/* ----------------------------------------------------------------------------------
* Base Handler Functions