aboutsummaryrefslogtreecommitdiffstats
path: root/ctimeline.h
blob: edd5062105a15f9866e100add2f73139f9af3e2a (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
33
34
35
#ifndef CTIMELINE_H
#define CTIMELINE_H

#include "xstring.h"

#define CTIMELINE_VERSION "1.0"
#define CTIMELINE_CONFIG "/etc/ctimelines"

struct ctimeline_branch {
	string *name;
	int age_from;
	int age_to;
	string *desc;
};

struct ctimeline_branch_list {
	struct ctimeline_branch *list;
	int count;
	int capacity;
};

struct ctimeline_context {
	char *head_title;
	char *css;
	// char *favicon;
	char *header_title;
	char *header_desc;
	
	struct ctimeline_branch_list branches;
	struct ctimeline_branch *cur_branch;
};

extern struct ctimeline_context ctx;

#endif /* CTIMELINE_H */