diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-04-25 12:58:30 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-04-25 13:12:21 +0300 |
commit | 55bb0a274095c4871e333e80d78873609bc39d3a (patch) | |
tree | 19f121cd14af828d6c2f144e99d6cc13db796c90 /src/tagr.h | |
parent | d59a014f169e2394711cecd566a95cbfdceda6d3 (diff) | |
download | tagr-55bb0a274095c4871e333e80d78873609bc39d3a.tar.gz tagr-55bb0a274095c4871e333e80d78873609bc39d3a.tar.bz2 |
Bugfixes
* AUTHORS: Update emails.
* NEWS: Update.
* gnulib.modules: Add version-etc
* src/main.c: Implement --version.
* src/output.c, src/tagr.h, src/html.gram.y: Add missing
protos and includes.
* configure.ac, Makefile.am: Add etc
* etc/Makefile.am: New file.
Diffstat (limited to 'src/tagr.h')
-rw-r--r-- | src/tagr.h | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -79,10 +79,13 @@ void assign_string (char **pstr, const char *s); void assign_string_n (char **pstr, const char *s, size_t length); int readconfig (void); +void config_help (void); +void define_symbol (char *s); void decode_buffer (); struct monitor *find_monitor (const char *name); struct monitor *find_monitor_id (const char *id); +/* html.gram.y */ void begin_eval (); void end_eval (); int html_open (char *file); @@ -109,6 +112,8 @@ typedef struct pp_value_list pp_value_t value; } pp_tab_t; +int read_symtab (pp_tab_t **tab, const char *name); +int write_symtab (pp_tab_t *tab, const char *name); void add_numeric_value (pp_tab_t ** ptab, const char *name, double number); void add_string_value (pp_tab_t ** ptab, const char *name, const char *string); int find_value (char *name, pp_value_t * val); @@ -191,17 +196,21 @@ struct traffic_record }; - +/* report.c */ void open_db (); void close_db (); void read_db (struct monitor *mon, struct traffic_record **tr); void write_db (struct monitor *mon, struct traffic_record *tr); +void list_db (void); +void rebuild (int force); +void tr_init (struct traffic_record *tr); + +/* stat.c */ void update_stats (struct monitor *mon, struct traffic_sample *sample, struct traffic_record *tr); - -void rebuild (int force); void import (const char *dir); +/* queue.c */ void queue_clear (queue_t *q); int queue_count (queue_t *q); struct traffic_history *queue_get_ptr (queue_t *q, int index); @@ -209,7 +218,7 @@ struct traffic_history *queue_get_tail (queue_t *q); void queue_put (queue_t *q, struct traffic_history *elt); int queue_xchg (queue_t *q, struct traffic_history *elt); -char *mkfilename (char *dir, char *name, char *suffix); +char *mkfilename (const char *dir, const char *name, const char *suffix); /* output.c */ @@ -244,3 +253,5 @@ int draw_graph (FILE *fp, int xstep, unsigned long xmax, int growright, struct grid_class *xgrid, struct grid_class *ygrid); + + |