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/Xmu/SysUtil.h>
#include "UnitStripChart.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
static XrmOptionDescRec options []
static XtResource my_resources []
XNetResources xnet_resources
static XtActionsRec xnet_actions []
static Atom wm_delete_window


Define Documentation

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

Definition at line 87 of file xnet.c.


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 144 of file xnet.c.

References GetNetPoint(), InitNetPoint(), my_resources, options, ProgramName, unitStripChartWidgetClass, usage(), wm_delete_window, xnet_actions, XtNgetValue, XtNlabel, and XtNunits.

Here is the call graph for this function:

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

Definition at line 243 of file xnet.c.

References wm_delete_window.

static void usage void   )  [static]
 

Definition at line 109 of file xnet.c.

References ProgramName.


Variable Documentation

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},
}

Definition at line 89 of file xnet.c.

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"},
        {"-showlabel",  "*showLabel",      XrmoptionNoArg,  "True"},
        {"-jumpscroll", "*net.jumpScroll", XrmoptionSepArg, NULL},
        {"-interface",  "*interface",      XrmoptionSepArg, NULL},
        {"-units",      "*net.units",      XrmoptionSepArg, "B/s"},
        {"-unit-fn",    "*net.fontSet",    XrmoptionSepArg, NULL},
}

Definition at line 68 of file xnet.c.

char* ProgramName
 

Definition at line 59 of file xnet.c.

Atom wm_delete_window [static]
 

Definition at line 103 of file xnet.c.

XtActionsRec xnet_actions[] [static]
 

Initial value:

 {
        { "quit",       quit },
}

Definition at line 100 of file xnet.c.

Referenced by main().

XNetResources xnet_resources
 

Definition at line 98 of file xnet.c.

Referenced by __GetNetPoint().


Generated on Mon May 8 16:48:07 2006 for xmonitors by  doxygen 1.4.2