ARPDAS_QNX6 1.0
Defines | Functions | Variables
cic.c File Reference
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include "nortlib.h"
#include "tm.h"
#include "cmdalgo.h"
Include dependency graph for cic.c:

Go to the source code of this file.

Defines

#define CMD_PREFIX_MAX   10
#define CMD_VERSION_MAX   80

Functions

void cic_options (int argcc, char **argvv, const char *def_prefix)
int cic_init (void)
void cic_reset (void)
void ci_settime (long int time)
const char * ci_time_str (void)
int ci_sendcmd (const char *cmdtext, int mode)

Variables

static char cic_header [CMD_PREFIX_MAX] = "CIC"
static char * cis_node
static int sent_quit = 0
static int cis_fd = -1
static int playback = 0
int cic_cmd_quit_fd = -1
int cgc_forwarding = 0
static long int ci_time = 0L

Define Documentation

#define CMD_PREFIX_MAX   10

Definition at line 10 of file cic.c.

Referenced by cic_options().

#define CMD_VERSION_MAX   80

Definition at line 11 of file cic.c.

Referenced by cic_init().


Function Documentation

int ci_sendcmd ( const char *  cmdtext,
int  mode 
)

Definition at line 146 of file cic.c.

References ci_time_str(), cic_header, cic_init(), cis_fd, CMD_MAX_COMMAND_IN, CMDREP_EXECERR, CMDREP_QUIT, CMDREP_SYNERR, nl_error, nl_response, playback, and sent_quit.

Referenced by ci_sendfcmd(), cic_transmit(), read_a_cmd(), tma_init_state(), and tma_process().

Here is the call graph for this function:

Here is the caller graph for this function:

void ci_settime ( long int  time)

Definition at line 115 of file cic.c.

References ci_time.

const char* ci_time_str ( void  )

Definition at line 119 of file cic.c.

References ci_time, and playback.

Referenced by ci_sendcmd(), and tma_new_state().

Here is the caller graph for this function:

int cic_init ( void  )

Definition at line 65 of file cic.c.

References ci_version, cic_cmd_quit_fd, cic_header, cis_fd, cis_node, CMD_VERSION_MAX, CMDSRVR_NAME, nl_error, nl_response, NLRSP_QUIET, NLRSP_WARN, playback, set_response(), tm_dev_name(), and tm_open_name().

Referenced by ci_sendcmd(), nct_cmdclt_init(), and nlph_cmdclt_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void cic_options ( int  argcc,
char **  argvv,
const char *  def_prefix 
)

Definition at line 30 of file cic.c.

References cic_header, cis_node, CMD_PREFIX_MAX, nl_error, opt_string, OPTIND_RESET, and playback.

void cic_reset ( void  )

Definition at line 103 of file cic.c.

References cic_cmd_quit_fd, and cis_fd.

Referenced by cic_cmd_quit_func().

Here is the caller graph for this function:


Variable Documentation

int cgc_forwarding = 0

Definition at line 28 of file cic.c.

long int ci_time = 0L [static]

Definition at line 114 of file cic.c.

Referenced by ci_settime(), and ci_time_str().

int cic_cmd_quit_fd = -1

Definition at line 17 of file cic.c.

Referenced by cic_init(), cic_reset(), nct_cmdclt_init(), and nlph_cmdclt_init().

char cic_header[CMD_PREFIX_MAX] = "CIC" [static]

Definition at line 12 of file cic.c.

Referenced by ci_sendcmd(), cic_init(), and cic_options().

int cis_fd = -1 [static]

Definition at line 15 of file cic.c.

Referenced by ci_sendcmd(), cic_init(), and cic_reset().

char* cis_node [static]

Definition at line 13 of file cic.c.

Referenced by cic_init(), and cic_options().

int playback = 0 [static]

Definition at line 16 of file cic.c.

Referenced by ci_sendcmd(), ci_time_str(), cic_init(), and cic_options().

int sent_quit = 0 [static]

Definition at line 14 of file cic.c.

Referenced by ci_sendcmd().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines