aboutsummaryrefslogtreecommitdiff
path: root/src/context.h
blob: 4d89497182305c8614cb6909bc367746f16e72f8 (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
#ifndef CONTEXT_H
#define CONTEXT_H

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

struct context_t {
    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