xio.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 "xio.h"
#include "xio.bit"

Include dependency graph for xio.c:

Go to the source code of this file.

Defines

#define Offset(field)   (XtOffsetOf(XIoResources, 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 []
XIoResources xio_resources
static XtActionsRec xio_actions []
static Atom wm_delete_window


Define Documentation

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

Definition at line 87 of file xio.c.


Function Documentation

int main int  argc,
char **  argv
 

Definition at line 144 of file xio.c.

References GetIoPoint(), InitIoPoint(), my_resources, options, ProgramName, unitStripChartWidgetClass, usage(), wm_delete_window, xio_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 xio.c.

References wm_delete_window.

static void usage void   )  [static]
 

Definition at line 109 of file xio.c.

References ProgramName.

Referenced by main().


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 xio.c.

Referenced by main().

XrmOptionDescRec options[] [static]
 

Initial value:

 {
        {"-scale",      "*io.minScale",    XrmoptionSepArg, NULL},
        {"-update",     "*io.update",      XrmoptionSepArg, NULL},
        {"-hl",         "*io.highlight",   XrmoptionSepArg, NULL},
        {"-highlight",  "*io.highlight",   XrmoptionSepArg, NULL},
        {"-label",      "*label.label",    XrmoptionSepArg, NULL},
        {"-nolabel",    "*showLabel",      XrmoptionNoArg,  "False"},
        {"-showlabel",  "*showLabel",      XrmoptionNoArg,  "True"},
        {"-jumpscroll", "*io.jumpScroll",  XrmoptionSepArg, NULL},
        {"-interface",  "*interface",      XrmoptionSepArg, NULL},
        {"-units",      "*io.units",       XrmoptionSepArg, "B/s"},
        {"-unit-fn",    "*io.fontSet",     XrmoptionSepArg, NULL},
}

Definition at line 68 of file xio.c.

Referenced by main().

char* ProgramName
 

Definition at line 59 of file xio.c.

Referenced by main(), and usage().

Atom wm_delete_window [static]
 

Definition at line 103 of file xio.c.

Referenced by main(), and quit().

XtActionsRec xio_actions[] [static]
 

Initial value:

 {
        { "quit",       quit },
}

Definition at line 100 of file xio.c.

Referenced by main().

XIoResources xio_resources
 

Definition at line 98 of file xio.c.

Referenced by __GetIoPoint().


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