#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"
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 NPARAM 1024 |
number of parameters (actually<200)
Definition at line 52 of file opf.c.
Referenced by ReadInputParameters().
| void DumpParameters | ( | int | number, | |
| int | lower | |||
| ) |
print the parameters
Definition at line 145 of file opf.c.
References configFields, and strlower().
Referenced by ProcessOPF().
| int ParamCompare | ( | const void * | p1, | |
| const void * | p2 | |||
| ) |
comparison function for lsearch
| p1 | first parameter | |
| p1 | second parameter |
Definition at line 65 of file opf.c.
Referenced by ReadInputParameters().
| void ProcessOPF | ( | int | m, | |
| int | lower | |||
| ) |
filter and print the OPF input
| m | also filter mask values |
Definition at line 175 of file opf.c.
References DumpParameters(), and ReadInputParameters().
Referenced by ParseOptions().
| int ReadInputParameters | ( | int | m | ) |
read the parameter input
| m | also filter mask values |
Definition at line 76 of file opf.c.
References ListToMask(), NPARAM, and ParamCompare().
Referenced by ProcessOPF().
| char* strlower | ( | char * | s | ) |
lower the characters of a string, work in place
| s | input string |
Definition at line 132 of file opf.c.
Referenced by DumpParameters().
| 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" |
1.5.6