2
0
Fork 0
lighttpd2/src/base.h

38 lines
581 B
C

#ifndef _LIGHTTPD_BASE_H_
#define _LIGHTTPD_BASE_H_
#include "settings.h"
#define CONST_STR_LEN(x) x, x ? sizeof(x) - 1 : 0
struct server;
typedef struct server server;
struct connection;
typedef struct connection connection;
#include "plugin.h"
#include "actions.h"
#include "request.h"
struct server {
GHashTable *plugins;
size_t option_count;
GHashTable *options;
gpointer *option_def_values;
};
struct connection {
sock_addr dst_addr, src_addr;
GString *dst_addr_str, *src_addr_str;
action_stack action_stack;
request request;
physical physical;
};
#endif