opf.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <ctype.h>
#include <math.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <assert.h>
#include <signal.h>
#include <search.h>
#include "common.h"

Include dependency graph for opf.c:

Go to the source code of this file.

Defines

#define _GNU_SOURCE
#define PARAMLEN   128
 string length for name and value
#define NPARAM   1024
 number of parameters (actually<200)

Functions

int ParamCompare (const void *p1, const void *p2)
 comparison function for lsearch
int ReadInputParameters (int m)
 read the parameter input
char * strlower (char *s)
 lower the characters of a string, work in place
void DumpParameters (int number, int lower)
 print the parameters
void ProcessOPF (int m, int lower)
 filter and print the OPF input

Variables

char * configFields = "UseOif SmtpServer MailFrom MailTo ForceParameters OshRunCommand RunCommand MinPause AddPause OshGetParamCommand GetParamCommand OshGetInfoCommand GetInfoCommand OshGetErrorCommand GetErrorCommand OshGetEventListCommand GetEventListCommand OshGetLogCommand GetLogCommand OshGetTriggerCommand GetTriggerCommand PreConnectStation OshWait OshConnect OshKey OshPort OshHangUpStation"
struct Parameter * param
 parameter list


Define Documentation

#define _GNU_SOURCE

Definition at line 23 of file opf.c.

#define NPARAM   1024

number of parameters (actually<200)

Definition at line 52 of file opf.c.

Referenced by ReadInputParameters().

#define PARAMLEN   128

string length for name and value

Definition at line 51 of file opf.c.


Function Documentation

void DumpParameters ( int  number,
int  lower 
)

print the parameters

Returns:
none

Definition at line 145 of file opf.c.

References configFields, and strlower().

Referenced by ProcessOPF().

Here is the call graph for this function:

int ParamCompare ( const void *  p1,
const void *  p2 
)

comparison function for lsearch

Parameters:
p1 first parameter
p1 second parameter
Returns:
strcasecmp on the name fields

Definition at line 65 of file opf.c.

Referenced by ReadInputParameters().

void ProcessOPF ( int  m,
int  lower 
)

filter and print the OPF input

Parameters:
m also filter mask values
Returns:
none

Definition at line 175 of file opf.c.

References DumpParameters(), and ReadInputParameters().

Referenced by ParseOptions().

Here is the call graph for this function:

int ReadInputParameters ( int  m  ) 

read the parameter input

Parameters:
m also filter mask values
Returns:
0 if ok -1 on error

Definition at line 76 of file opf.c.

References ListToMask(), NPARAM, and ParamCompare().

Referenced by ProcessOPF().

Here is the call graph for this function:

char* strlower ( char *  s  ) 

lower the characters of a string, work in place

Parameters:
s input string
Returns:
s, lowered (same address)

Definition at line 132 of file opf.c.

Referenced by DumpParameters().


Variable Documentation

char* configFields = "UseOif SmtpServer MailFrom MailTo ForceParameters OshRunCommand RunCommand MinPause AddPause OshGetParamCommand GetParamCommand OshGetInfoCommand GetInfoCommand OshGetErrorCommand GetErrorCommand OshGetEventListCommand GetEventListCommand OshGetLogCommand GetLogCommand OshGetTriggerCommand GetTriggerCommand PreConnectStation OshWait OshConnect OshKey OshPort OshHangUpStation"

Definition at line 44 of file opf.c.

Referenced by DumpParameters().

struct Parameter* param

parameter list

Definition at line 59 of file opf.c.


Generated on Tue Jul 22 23:11:57 2008 for Titan2Reader by  doxygen 1.5.6