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

Classes

struct  INDIDef
 
struct  SetEV
 
struct  SetSpec
 

Macros

#define NDEFS   (sizeof(defs) / sizeof(defs[0]))
 
#define INDIPORT   7624 /* default port */
 
#define TIMEOUT   2 /* default timeout, secs */
 

Functions

static void usage (void)
 
static int crackSpec (int *acp, char **avp[])
 
static void openINDIServer (FILE **rfpp, FILE **wfpp)
 
static void listenINDI (FILE *rfp, FILE *wfp)
 
static int finished (void)
 
static void onAlarm (int dummy)
 
static int readServerChar (FILE *fp)
 
static void findSet (XMLEle *root, FILE *fp)
 
static void scanEV (SetSpec *specp, char ev[])
 
static void scanEEVV (SetSpec *specp, char *ep, char ev[])
 
static void scanEVEV (SetSpec *specp, char ev[])
 
static void sendNew (FILE *fp, INDIDef *dp, SetSpec *sp)
 
static void sendSpecs (FILE *wfp)
 
int main (int ac, char *av[])
 
static void scanEEVV (SetSpec *sp, char *v, char *e)
 

Variables

static INDIDef defs []
 
static char host_def [] = "localhost"
 
static char * me
 
static char * host = host_def
 
static int port = INDIPORT
 
static int verbose
 
static int directfd = -1
 
static int timeout = TIMEOUT
 
static LilXMLlillp
 
static SetSpecsets
 
static int nsets
 
static char * rcsid [2]
 

Macro Definition Documentation

◆ INDIPORT

#define INDIPORT   7624 /* default port */

◆ NDEFS

#define NDEFS   (sizeof(defs) / sizeof(defs[0]))

◆ TIMEOUT

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

Function Documentation

◆ crackSpec()

static int crackSpec ( int *  acp,
char **  avp[] 
)
static

◆ findSet()

static void findSet ( XMLEle root,
FILE *  fp 
)
static

◆ finished()

static int finished ( void  )
static

◆ listenINDI()

static void listenINDI ( FILE *  rfp,
FILE *  wfp 
)
static

◆ main()

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

◆ onAlarm()

static void onAlarm ( int  dummy)
static

◆ openINDIServer()

static void openINDIServer ( FILE **  rfpp,
FILE **  wfpp 
)
static

◆ readServerChar()

static int readServerChar ( FILE *  fp)
static

◆ scanEEVV() [1/2]

static void scanEEVV ( SetSpec specp,
char *  ep,
char  ev[] 
)
static

◆ scanEEVV() [2/2]

static void scanEEVV ( SetSpec sp,
char *  v,
char *  e 
)
static

◆ scanEV()

static void scanEV ( SetSpec specp,
char  ev[] 
)
static

◆ scanEVEV()

static void scanEVEV ( SetSpec specp,
char  ev[] 
)
static

◆ sendNew()

static void sendNew ( FILE *  fp,
INDIDef dp,
SetSpec sp 
)
static

◆ sendSpecs()

static void sendSpecs ( FILE *  wfp)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ defs

INDIDef defs[]
static
Initial value:
= {
{ "defTextVector", "defText", "newTextVector", "oneText" },
{ "defNumberVector", "defNumber", "newNumberVector", "oneNumber" },
{ "defSwitchVector", "defSwitch", "newSwitchVector", "oneSwitch" },
}

◆ directfd

int directfd = -1
static

◆ host

char* host = host_def
static

◆ host_def

char host_def[] = "localhost"
static

◆ lillp

LilXML* lillp
static

◆ me

char* me
static

◆ nsets

int nsets
static

◆ port

int port = INDIPORT
static

◆ rcsid

char* rcsid[2]
static
Initial value:
= { (char *)rcsid,
"@(#) $RCSfile: setINDI.c,v $ $Date: 2010/11/07 07:13:59 $ $Revision: 1.6 $ $Name: $" }
static char * rcsid[2]
Definition: setINDIproperty.c:634

◆ sets

SetSpec* sets
static

◆ timeout

int timeout = TIMEOUT
static

◆ verbose

int verbose
static