forked from allinurl/goaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.h
60 lines (54 loc) · 2.35 KB
/
ui.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
58
59
60
/**
* Copyright (C) 2010 by Gerardo Orellana <[email protected]>
* GoAccess - An ncurses apache weblog analyzer & interactive viewer
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* A copy of the GNU General Public License is attached to this
* source distribution for its full text.
*
* Visit http://goaccess.prosoftcorp.com for new releases.
*/
#ifndef UI_H_INCLUDED
#define UI_H_INCLUDED
#define T_BW "BW"
#define T_F_REQUESTS "Failed Requests"
#define T_GEN_TIME "Generation Time"
#define T_LOG "Log"
#define T_REFERRER "Referrers"
#define T_REQUESTS "Total Requests"
#define T_STATIC_FIL "Static Files"
#define T_UNIQUE404 "Unique 404"
#define T_UNIQUE_FIL "Unique Files"
#define T_UNIQUE_VIS "Unique Visitors"
WINDOW *create_win (WINDOW * main_win);
struct struct_agents
{
char *agents;
};
void close_win (WINDOW * w);
void display_content (WINDOW * main_win, struct struct_display **s_display,
struct logger *logger, struct scrolling scrolling);
void display_general (WINDOW * header_win, struct logger *logger,
char *ifile);
void do_scrolling (WINDOW * main_win, struct struct_display **s_display,
struct logger *logger, struct scrolling *scrolling,
int cmd);
void draw_header (WINDOW * win, char *header, int x, int y, int w, int color);
void generate_time (void);
void load_help_popup (WINDOW * help_win, size_t startx);
void load_popup (WINDOW * my_menu_win, struct struct_holder **s_holder,
struct logger *logger);
void load_schemes_win (WINDOW * schemes_win, size_t startx);
void set_input_opts (void);
void term_size (WINDOW * main_win);
void update_header (WINDOW * header_win, int current);
#endif