aboutsummaryrefslogtreecommitdiff
path: root/src/beaker_globals.h
blob: 7418808d87327f8334a279f5574c0ef8bf70acd6 (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
#ifndef BEAKER_GLOBALS_H
#define BEAKER_GLOBALS_H

#include "../beaker.h"
#include <stdatomic.h>

extern RouteHandler handlers[MAX_HANDLERS];

extern int handler_count;

extern __thread int current_client_socket;

extern __thread Cookie cookies_to_set[MAX_COOKIES];

extern __thread int cookies_to_set_count;

extern __thread char current_request_buffer[BUFFER_SIZE];

extern Locale *locales;

extern int locale_count;

extern int locale_capacity;

#endif