TwiceAsNice  2019-02-18
Macros | Functions | Variables
evalINDI.c File Reference
#include "indiapi.h"
#include "indidevapi.h"
#include "lilxml.h"
#include <errno.h>
#include <math.h>
#include <netdb.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <unistd.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
Include dependency graph for evalINDI.c:

Macros

#define INDIPORT   7624 /* default port */
 
#define TIMEOUT   2 /* default timeout, secs */
 

Functions

int compileExpr (char *expr, char *errmsg)
 
int evalExpr (double *vp, char *errmsg)
 
int allOperandsSet ()
 
int getAllOperands (char ***ops)
 
int getSetOperands (char ***ops)
 
int getUnsetOperands (char ***ops)
 
int setOperand (char *name, double valu)
 
static void usage ()
 
static void compileINDI (char *expr)
 
static FILE * openINDIServer ()
 
static void getProps (FILE *fp)
 
static void initProps (FILE *fp)
 
static int pstatestr (char *state)
 
static time_t timestampINDI (char *ts)
 
static int devcmp (char *op1, char *op2)
 
static int runEval (FILE *fp)
 
static int setOp (XMLEle *root)
 
static XMLElenxtEle (FILE *fp)
 
static int readServerChar (FILE *fp)
 
static void onAlarm (int dummy)
 
int main (int ac, char *av[])
 

Variables

static char * me
 
static char host_def [] = "localhost"
 
static char * host = host_def
 
static int port = INDIPORT
 
static int timeout = TIMEOUT
 
static LilXMLlillp
 
static int directfd = -1
 
static int verbose
 
static int eflag
 
static int fflag
 
static int iflag
 
static int oflag
 
static int wflag
 
static int bflag
 

Macro Definition Documentation

◆ INDIPORT

#define INDIPORT   7624 /* default port */

◆ TIMEOUT

#define TIMEOUT   2 /* default timeout, secs */

Function Documentation

◆ allOperandsSet()

int allOperandsSet ( )

◆ compileExpr()

int compileExpr ( char *  expr,
char *  errmsg 
)

◆ compileINDI()

static void compileINDI ( char *  expr)
static

◆ devcmp()

static int devcmp ( char *  op1,
char *  op2 
)
static

◆ evalExpr()

int evalExpr ( double *  vp,
char *  errmsg 
)

◆ getAllOperands()

int getAllOperands ( char ***  ops)

◆ getProps()

static void getProps ( FILE *  fp)
static

◆ getSetOperands()

int getSetOperands ( char ***  ops)

◆ getUnsetOperands()

int getUnsetOperands ( char ***  ops)

◆ initProps()

static void initProps ( FILE *  fp)
static

◆ main()

int main ( int  ac,
char *  av[] 
)

◆ nxtEle()

static XMLEle * nxtEle ( FILE *  fp)
static

◆ onAlarm()

static void onAlarm ( int  dummy)
static

◆ openINDIServer()

static FILE * openINDIServer ( void  )
static

◆ pstatestr()

static int pstatestr ( char *  state)
static

◆ readServerChar()

static int readServerChar ( FILE *  fp)
static

◆ runEval()

static int runEval ( FILE *  fp)
static

◆ setOp()

static int setOp ( XMLEle root)
static

◆ setOperand()

int setOperand ( char *  name,
double  valu 
)

◆ timestampINDI()

static time_t timestampINDI ( char *  ts)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ bflag

int bflag
static

◆ directfd

int directfd = -1
static

◆ eflag

int eflag
static

◆ fflag

int fflag
static

◆ host

char* host = host_def
static

◆ host_def

char host_def[] = "localhost"
static

◆ iflag

int iflag
static

◆ lillp

LilXML* lillp
static

◆ me

char* me
static

◆ oflag

int oflag
static

◆ port

int port = INDIPORT
static

◆ timeout

int timeout = TIMEOUT
static

◆ verbose

int verbose
static

◆ wflag

int wflag
static