Don't apply ports-{max,keep} to protocols.
[darkstat] / graph_db.h
1 /* darkstat 3
2 * copyright (c) 2006, 2007 Emil Mikulic.
3 *
4 * graph_db.h: round robin database for graph data
5 */
6
7 #include <stdint.h> /* for uint64_t on Linux and OS X */
8
9 enum graph_dir {
10 MIN_GRAPH_DIR = 1,
11 GRAPH_IN = 1,
12 GRAPH_OUT = 2,
13 MAX_GRAPH_DIR = 2
14 };
15
16 void graph_init(void);
17 void graph_reset(void);
18 void graph_free(void);
19 void graph_acct(uint64_t amount, enum graph_dir dir);
20 void graph_rotate(void);
21 int graph_import(const int fd);
22 int graph_export(const int fd);
23
24 struct str *html_front_page(void);
25 struct str *xml_graphs(void);
26
27 /* vim:set ts=3 sw=3 tw=78 expandtab: */