]> Pileus Git - ~andy/aweather-web/blob - html.h
Add sitemap, per-page descriptions, misc updates
[~andy/aweather-web] / html.h
1 /* Version information */
2 #define VERSION        "0.5"
3 #define VERSION_LINUX  VERSION
4 #define VERSION_GENTOO VERSION
5 #define VERSION_DEBIAN VERSION
6 #define VERSION_WIN32  VERSION
7 #define VERSION_MACOS  "0"
8
9 /* Link info */
10 #define WIKI_INDEX   "/code/projects/aweather/wiki"
11 #define WIKI_INSTALL "/code/projects/aweather/wiki/Install"
12
13 #define BUG_LIST     "/code/projects/aweather/issues"
14 #define BUG_NEW      "/code/projects/aweather/issues/new"
15
16 #define GIT_AWEATHER "git://lug.rose-hulman.edu/proj/aweather"
17 #define GIT_GRITS    "git://lug.rose-hulman.edu/proj/grits"
18 #define GIT_RSL      "git://lug.rose-hulman.edu/~spenceal/rsl"
19
20 #define GW_AWEATHER  "/git/?p=proj/aweather"
21 #define GW_GRITS     "/git/?p=proj/grits"
22 #define GW_RSL       "/git/?p=~spenceal/rsl"
23
24 #define RSL_WEB      "http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/"
25 #define RSL_FTP      "ftp://trmm-fc.gsfc.nasa.gov/software/rsl-v1.41.tar.gz"
26
27 #define PREFIX       "http://lug.rose-hulman.edu/proj/aweather/"
28
29 /* Types */
30 typedef struct {
31         const char *link;
32         const char *name;
33         void (*print)(void);
34         float prio;
35         /* Optional */
36         const char *desc;
37 } page_t;
38
39 /* Data */
40 extern page_t header[];
41 extern page_t other[];
42 extern page_t footer[];
43 extern page_t special[];
44
45 /* Global functions */
46 void print_header(void);
47 void print_page(const page_t *which);
48
49 /* Pages */
50 void print_about(void);
51 void print_news(void);
52 void print_screenshots(void);
53 void print_download(void);
54 void print_development(void);
55 void print_grits(void);
56 void print_rsl(void);
57
58 void print_contact(void);
59 void print_legal(void);
60
61 void print_index(void);
62 void print_notfound(void);
63 void print_sitemap(const page_t **pages);