File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mtr / ui / display.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 14:25:31 2019 UTC (4 years, 9 months ago) by misho
Branches: mtr, MAIN
CVS tags: v0_92, HEAD
mtr ver 0.92

    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,
   25: #ifdef HAVE_IPINFO
   26:     ActionII, ActionAS,
   27: #endif
   28:     ActionScrollDown, ActionScrollUp
   29: };
   30: 
   31: enum {
   32:     DisplayReport,
   33: #ifdef HAVE_CURSES
   34:     DisplayCurses,
   35: #endif
   36: #ifdef HAVE_GTK
   37:     DisplayGTK,
   38: #endif
   39:     DisplaySplit,
   40:     DisplayRaw,
   41:     DisplayXML,
   42:     DisplayCSV,
   43:     DisplayTXT,
   44:     DisplayJSON
   45: };
   46: 
   47: enum {
   48:     DisplayModeDefault,
   49:     DisplayModeBlockmap,
   50:     DisplayModeBlockmapScale,
   51:     DisplayModeMAX              /* this must be the last DisplayMode entry */
   52: };
   53: 
   54: /*  Prototypes for display.c  */
   55: extern void display_detect(
   56:     struct mtr_ctl *ctl,
   57:     int *argc,
   58:     char ***argv);
   59: extern void display_open(
   60:     struct mtr_ctl *ctl);
   61: extern void display_close(
   62:     struct mtr_ctl *ctl);
   63: extern void display_redraw(
   64:     struct mtr_ctl *ctl);
   65: extern void display_rawxmit(
   66:     struct mtr_ctl *ctl,
   67:     int hostnum,
   68:     int seq);
   69: extern void display_rawping(
   70:     struct mtr_ctl *ctl,
   71:     int hostnum,
   72:     int msec,
   73:     int seq);
   74: extern void display_rawhost(
   75:     struct mtr_ctl *ctl,
   76:     int hostnum,
   77:     ip_t * ip_addr);
   78: extern int display_keyaction(
   79:     struct mtr_ctl *ctl);
   80: extern void display_loop(
   81:     struct mtr_ctl *ctl);
   82: extern void display_clear(
   83:     struct mtr_ctl *ctl);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>