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

63 lines
981 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"
#include "log.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;
gboolean exiting;
GMutex *mutex;
15 years ago
/* logs */
gboolean rotate_logs;
GHashTable *logs;
struct log_t *log_stderr;
struct log_t *log_syslog;
GAsyncQueue *log_queue;
GThread *log_thread;
15 years ago
GMutex *log_mutex;
15 years ago
};
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;
GMutex *mutex;
struct log_t *log;
gint log_level;
15 years ago
};
server* server_new();
void server_free(server* srv);
15 years ago
#endif