diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-05-22 17:14:22 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:52 -0400 |
commit | 0fd891877713b1755d8b3182528f8b845cf7db0f (patch) | |
tree | 43aa421ab339766fc4710dddb39a10d91169e328 /src/mod_vhostdb_api.h | |
parent | 3538f8f2a407aadcce945c6ae4c96e7335f13fec (diff) | |
download | lighttpd-git-0fd891877713b1755d8b3182528f8b845cf7db0f.tar.gz |
[mod_vhostdb*] rename http_vhostdb->mod_vhostdb_api
rename http_vhostdb.[ch] -> mod_vhostdb_api.[ch]
Diffstat (limited to 'src/mod_vhostdb_api.h')
-rw-r--r-- | src/mod_vhostdb_api.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/mod_vhostdb_api.h b/src/mod_vhostdb_api.h new file mode 100644 index 00000000..04aec31c --- /dev/null +++ b/src/mod_vhostdb_api.h @@ -0,0 +1,30 @@ +/* + * mod_vhostdb_api - virtual hosts mapping backend registration + * + * Copyright(c) 2017 Glenn Strauss gstrauss()gluelogic.com All rights reserved + * License: BSD 3-clause (same as lighttpd) + */ +#ifndef INCLUDED_MOD_VHOSTDB_API_H +#define INCLUDED_MOD_VHOSTDB_API_H +#include "first.h" + +#include "base_decls.h" +#include "buffer.h" + +__attribute_cold__ +void http_vhostdb_dumbdata_reset (void); + +typedef struct http_vhostdb_backend_t { + const char *name; + int(*query)(request_st *r, void *p_d, buffer *result); + void *p_d; +} http_vhostdb_backend_t; + +__attribute_cold__ +__attribute_pure__ +const http_vhostdb_backend_t * http_vhostdb_backend_get (const buffer *name); + +__attribute_cold__ +void http_vhostdb_backend_set (const http_vhostdb_backend_t *backend); + +#endif |