Annotation of embedaddon/mtr/display.h, revision 1.1.1.2
1.1 misho 1: /*
2: mtr -- a network diagnostic tool
3: Copyright (C) 1997,1998 Matt Kimball
4:
5: This program is free software; you can redistribute it and/or modify
6: it under the terms of the GNU General Public License version 2 as
7: published by the Free Software Foundation.
8:
9: This program is distributed in the hope that it will be useful,
10: but WITHOUT ANY WARRANTY; without even the implied warranty of
11: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: GNU General Public License for more details.
13:
14: You should have received a copy of the GNU General Public License
15: along with this program; if not, write to the Free Software
16: Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17: */
18:
19: #include <netinet/in.h>
20:
21: /* Don't put a trailing comma in enumeration lists. Some compilers
22: (notably the one on Irix 5.2) do not like that. */
23: enum { ActionNone, ActionQuit, ActionReset, ActionDisplay,
24: ActionClear, ActionPause, ActionResume, ActionMPLS, ActionDNS,
1.1.1.2 ! misho 25: #ifdef IPINFO
1.1 misho 26: ActionII, ActionAS,
27: #endif
28: ActionScrollDown, ActionScrollUp };
29: enum { DisplayReport, DisplayCurses, DisplayGTK, DisplaySplit,
30: DisplayRaw, DisplayXML, DisplayCSV, DisplayTXT};
31:
32: /* Prototypes for display.c */
33: void display_detect(int *argc, char ***argv);
34: void display_open(void);
35: void display_close(time_t now);
36: void display_redraw(void);
37: void display_rawping(int hostnum, int msec);
38: void display_rawhost(int hostnum, ip_t *ip_addr);
39: int display_keyaction(void);
40: void display_loop(void);
41: void display_clear(void);
42:
43: extern int display_mode;
44: extern int display_offset; /* only used in text mode */
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>