From 47bfdd8fc6745228e53cf3d9584b030470de056b Mon Sep 17 00:00:00 2001 From: Joursoir Date: Fri, 14 May 2021 17:29:46 +0000 Subject: ctimeline: add context and its init Context struct added to header file. Code have rewritten with use it. --- ctimeline.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ctimeline.h (limited to 'ctimeline.h') 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 */ -- cgit v1.2.3-18-g5258