xnet.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <X11/Intrinsic.h>
#include <X11/Xatom.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Xaw/Cardinals.h>
#include <X11/Xaw/Label.h>
#include <X11/Xaw/Paned.h>
#include <X11/Xaw/StripChart.h>
#include <X11/Xmu/SysUtil.h>
#include "xnet.h"
#include "xnet.bit"

Include dependency graph for xnet.c:

Go to the source code of this file.

Defines

#define Offset(field)   (XtOffsetOf(XNetResources, field))

Functions

static void quit (Widget w, XEvent *event, String *params, Cardinal *num_params)
static void usage (void)
int main (int argc, char **argv)

Variables

char * ProgramName
char interface [1025] = { 0 }
char units [256] = { 'k', 'b', 0 }
unsigned int divisor = 10
static XrmOptionDescRec options []
static XtResource my_resources []
XNetResources resources
static XtActionsRec xnet_actions []
static Atom wm_delete_window


Define Documentation

#define Offset field   )     (XtOffsetOf(XNetResources, field))
 

Definition at line 88 of file xnet.c.


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 147 of file xnet.c.

References divisor, GetNetPoint(), InitNetPoint(), interface, my_resources, options, ProgramName, units, usage(), wm_delete_window, and xnet_actions.

Here is the call graph for this function:

static void quit Widget  w,
XEvent *  event,
String *  params,
Cardinal *  num_params
[static]
 

Definition at line 242 of file xnet.c.

References wm_delete_window.

static void usage void   )  [static]
 

Definition at line 112 of file xnet.c.

References ProgramName.

Referenced by main().


Variable Documentation

unsigned int divisor = 10
 

Definition at line 62 of file xnet.c.

Referenced by GetNetPoint(), and main().

char interface[1025] = { 0 }
 

Definition at line 60 of file xnet.c.

Referenced by __GetNetPoint(), and main().

XtResource my_resources[] [static]
 

Initial value:

 {
  {"showLabel", XtCBoolean, XtRBoolean, sizeof(Boolean),
     Offset(show_label), XtRImmediate, (XtPointer) TRUE},
        {"interface", XtCString, XtRString, sizeof(XtRString),
                 Offset(interface), XtRImmediate, (XtPointer) FALSE},
        {"units", XtCString, XtRString, sizeof(XtRString),
                 Offset(units), XtRImmediate, (XtPointer) FALSE},
}

Definition at line 90 of file xnet.c.

Referenced by main().

XrmOptionDescRec options[] [static]
 

Initial value:

 {
 {"-scale",      "*net.minScale",   XrmoptionSepArg, NULL},
 {"-update",     "*net.update",     XrmoptionSepArg, NULL},
 {"-hl",         "*net.highlight",  XrmoptionSepArg, NULL},
 {"-highlight",  "*net.highlight",  XrmoptionSepArg, NULL},
 {"-label",      "*label.label",    XrmoptionSepArg, NULL},
 {"-nolabel",    "*showLabel",      XrmoptionNoArg,  "False"},
 {"-jumpscroll", "*net.jumpScroll", XrmoptionSepArg, NULL},
 {"-interface",  "*net.interface",  XrmoptionSepArg, NULL},
 {"-units",      "*net.units",      XrmoptionSepArg, NULL},
}

Definition at line 71 of file xnet.c.

Referenced by main().

char* ProgramName
 

Definition at line 59 of file xnet.c.

Referenced by main(), and usage().

XNetResources resources
 

Definition at line 101 of file xnet.c.

char units[256] = { 'k', 'b', 0 }
 

Definition at line 61 of file xnet.c.

Referenced by GetNetPoint(), and main().

Atom wm_delete_window [static]
 

Definition at line 106 of file xnet.c.

Referenced by main(), and quit().

XtActionsRec xnet_actions[] [static]
 

Initial value:

 {
    { "quit",   quit },
}

Definition at line 103 of file xnet.c.

Referenced by main().


Generated on Thu Apr 27 14:28:42 2006 for xnet by  doxygen 1.4.2