You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/src/base.h

42 lines
643 B

15 years ago
#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;
15 years ago
#include "plugin.h"
15 years ago
#include "actions.h"
#include "request.h"
15 years ago
#define SERVER_VERSION ((guint) 0x01FF0000)
15 years ago
struct server {
guint version;
15 years ago
GHashTable *plugins;
size_t option_count;
GHashTable *options;
gpointer *option_def_values;
};
15 years ago
struct connection {
sock_addr dst_addr, src_addr;
GString *dst_addr_str, *src_addr_str;
action_stack action_stack;
request request;
15 years ago
physical physical;
15 years ago
};
15 years ago
#endif