ngc 1.5.0
 
Loading...
Searching...
No Matches
main.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <sys/ioctl.h>
#include <ngc/core/ngcbIFC2.hpp>
#include <ngc/core/ngcbShell.h>

Classes

struct  shell_stat_t
 
struct  shell_cmd_t
 

Macros

#define _GNU_SOURCE
 
#define NUM_ELE(x)
 

Typedefs

typedef int(* CMD_HANDLER) (shell_stat_t *, char *, FILE *, char *)
 

Functions

int handleHelp (shell_stat_t *, char *, FILE *, char *)
 
int handleAbort (shell_stat_t *, char *, FILE *, char *)
 
int handleOpen (shell_stat_t *, char *, FILE *, char *)
 
int handleClose (shell_stat_t *, char *, FILE *, char *)
 
int handleTimeout (shell_stat_t *, char *, FILE *, char *)
 
int handleReset (shell_stat_t *, char *, FILE *, char *)
 
int handleReadAddr (shell_stat_t *, char *, FILE *, char *)
 
int handleWriteAddr (shell_stat_t *, char *, FILE *, char *)
 
int handleRpc (shell_stat_t *, char *, FILE *, char *)
 
int main (int argc, char *argv[])
 

Detailed Description

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ NUM_ELE

#define NUM_ELE ( x)
Value:
((sizeof x) / (sizeof x[0]))

Typedef Documentation

◆ CMD_HANDLER

typedef int(* CMD_HANDLER) (shell_stat_t *, char *, FILE *, char *)

Interactive mode command handler

Function Documentation

◆ handleAbort()

int handleAbort ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleClose()

int handleClose ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleHelp()

int handleHelp ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleOpen()

int handleOpen ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleReadAddr()

int handleReadAddr ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleReset()

int handleReset ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleRpc()

int handleRpc ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleTimeout()

int handleTimeout ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ handleWriteAddr()

int handleWriteAddr ( shell_stat_t * stat,
char * cmdLine,
FILE * rs,
char * erms )

◆ main()

int main ( int argc,
char * argv[] )