diff options
author | Stef Walter <stef@memberwebs.com> | 2004-08-18 22:47:38 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-08-18 22:47:38 +0000 |
commit | 53e4b851883571c92073c87986759bd98dab9c7e (patch) | |
tree | 436748a52788e2f0434ec9beef8768f881dbcd07 /daemon/bd.h | |
parent | 59099b09a63f200147fc506e75f3052469d69fe9 (diff) |
Thread safety and locking checks.
Diffstat (limited to 'daemon/bd.h')
-rw-r--r-- | daemon/bd.h | 10 |
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 |