2017-01-18 05:36:49 +00:00
|
|
|
#ifndef _HTTP_VHOST_H_
|
|
|
|
#define _HTTP_VHOST_H_
|
|
|
|
#include "first.h"
|
|
|
|
|
2018-03-25 07:45:05 +00:00
|
|
|
#include "base_decls.h"
|
|
|
|
#include "buffer.h"
|
2017-01-18 05:36:49 +00:00
|
|
|
|
2017-01-24 02:01:58 +00:00
|
|
|
void http_vhostdb_dumbdata_reset (void);
|
|
|
|
|
2017-01-18 05:36:49 +00:00
|
|
|
struct http_vhostdb_backend_t;
|
|
|
|
|
|
|
|
typedef struct http_vhostdb_backend_t {
|
|
|
|
const char *name;
|
2020-01-13 02:51:12 +00:00
|
|
|
int(*query)(request_st *r, void *p_d, buffer *result);
|
2017-01-18 05:36:49 +00:00
|
|
|
void *p_d;
|
|
|
|
} http_vhostdb_backend_t;
|
|
|
|
|
|
|
|
const http_vhostdb_backend_t * http_vhostdb_backend_get (const buffer *name);
|
|
|
|
void http_vhostdb_backend_set (const http_vhostdb_backend_t *backend);
|
|
|
|
|
|
|
|
#endif
|