aboutsummaryrefslogtreecommitdiffstats
path: root/ctimeline.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctimeline.h')
-rw-r--r--ctimeline.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/ctimeline.h b/ctimeline.h
new file mode 100644
index 0000000..28bed28
--- /dev/null
+++ b/ctimeline.h
@@ -0,0 +1,32 @@
+#ifndef CTIMELINE_H
+#define CTIMELINE_H
+
+#include "xstring.h"
+
+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 */