summaryrefslogtreecommitdiff
path: root/src/http_vhostdb.h
blob: 4f9f5b0e84c223d0463ae7dc80ecc7f38e5d0b6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _HTTP_VHOST_H_
#define _HTTP_VHOST_H_
#include "first.h"

#include "base.h"

void http_vhostdb_dumbdata_reset (void);

struct http_vhostdb_backend_t;

typedef struct http_vhostdb_backend_t {
    const char *name;
    int(*query)(server *srv, connection *con, void *p_d, buffer *result);
    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