-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
52 lines (41 loc) · 810 Bytes
/
config.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
Copyright (C) 2011 jomat <[email protected]>
Published under the terms of the GNU General Public License (GPL).
*/
#ifndef GANGBANG_CONFIG_H
#define GANGBANG_CONFIG_H
#define _GNU_SOURCE
#include <curses.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
struct confignet {
char host[512];
int port;
};
struct configoptwin {
bool show;
short fg;
short bg;
};
struct configwin {
short fg;
short bg;
};
struct configkey {
int pause, stop, love, next, ban, radio, discovery, quit;
};
struct lnf {
int statusupdate;
};
struct config {
struct confignet net;
struct configwin history;
struct configwin status;
struct configoptwin info;
struct configkey key;
struct lnf lnf;
} config;
void trim(char *s);
void read_config();
#endif /* GANGBANG_CONFIG_H */