-
Notifications
You must be signed in to change notification settings - Fork 1
/
omjson.h
57 lines (50 loc) · 1.97 KB
/
omjson.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* xvisitors -- very fast web logs analyzer.
*
* Copyright (C) 2014 Wael BEN ZID <benzid.wael@hotmail.fr>
* All Rights Reserved.
*
* This software is released under the terms of the GPL license version 2.
* Read the COPYING file in this distribution for more details. */
#ifndef _OMJSON_H
#define _OMJSON_H
#include "om.h"
void init_omjson();
void om_json_print_header(FILE *fp);
void om_json_print_footer(FILE *fp);
void om_json_print_title(FILE *fp, char *title);
void om_json_close_title(FILE *fp);
void om_json_print_subtitle(FILE *fp, char *title);
void om_json_print_numkey_info(FILE *fp, char *key, int val);
void om_json_print_dblkey_info(FILE *fp, char *key, double val);
void om_json_print_strkey_info(FILE *fp, char *key, char *val);
void om_json_print_keykey_entry(FILE *fp, char *key1, char *key2, int num);
void om_json_print_numkey_entry(FILE *fp, char *key, int val, char *link,
int num);
void om_json_print_numkeybar_entry(FILE *fp, char *key, int max, int tot,
int this, int time_delta);
void om_json_print_numkeycomparativebar_entry(FILE *fp, char *key, int tot,
int this, int time_delta);
void om_json_print_bidimentional_map(FILE *fp, int xlen, int ylen,
char **xlabel, char **ylabel, int *value);
void om_json_print_hline(FILE *fp);
void om_json_print_credits(FILE *fp);
void om_json_print_report_link(FILE *fp, char *report);
struct outputmodule OutputModuleJson = {
om_json_print_header,
om_json_print_footer,
om_json_print_title,
om_json_close_title,
om_json_print_subtitle,
om_json_print_numkey_info,
om_json_print_dblkey_info,
om_json_print_strkey_info,
om_json_print_keykey_entry,
om_json_print_numkey_entry,
om_json_print_numkeybar_entry,
om_json_print_numkeycomparativebar_entry,
om_json_print_bidimentional_map,
om_json_print_hline,
om_json_print_credits,
om_json_print_report_link,
};
#endif