summaryrefslogtreecommitdiff
path: root/src/config.h
blob: 3875a1b8c2449db9d653d0445fcda3e51eb5b4c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __CONFIG_H
#define __CONFIG_H

struct config {
    char *instance_url;
    char *client_id;
    char *client_secret;
    char *access_token;
};

extern const struct config *config;
void config_load();
int config_save();
void config_set_client_id(const char *cid);
void config_set_client_secret(const char *cs);
void config_set_instance_url(const char *iu);
void config_set_access_token(const char *a);
void config_cleanup();

#endif