aboutsummaryrefslogtreecommitdiff
path: root/src/context.h
blob: 80c7e7223acb9379bb08333450ae00ff0b84d09a (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
26
27
28
29
30
31
32
#ifndef CONTEXT_H
#define CONTEXT_H

#include <stdint.h>
#include <stdlib.h>

struct context_t {
    char* document_root;

    char* raw_path;

    char** path; /* NULLABLE */
    size_t path_length;

    // simplistic values
    // never allocated to
    char* project;
    char* action;
    char* index;
    char* extra;

    char* token;

    uint8_t debug;
};

extern struct context_t context;

void init_context();
void deinit_context();

#endif