aboutsummaryrefslogtreecommitdiff
path: root/src/beaker_globals.c
blob: 2b1f056be5b6177f0c8901bc06ac167ed04e3b08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include "beaker_globals.h"

RouteHandler handlers[MAX_HANDLERS];

int handler_count = 0;

__thread int current_client_socket = -1;

__thread Cookie cookies_to_set[MAX_COOKIES];

__thread int cookies_to_set_count = 0;

__thread char current_request_buffer[BUFFER_SIZE];

__thread RequestInfo current_request_info = {0};

__thread int current_response_status = 0;

__thread size_t current_response_size = 0;

Locale *locales = NULL;

int locale_count = 0;

int locale_capacity = 0;