statUsage_example.c

Reference Documentation

product_line_custom
IntelĀ® PAC
Napatech SmartNIC
category
Reference Information
Napatech Software Suite: examples/statUsage/statUsage_example.c File Reference
statUsage_example.c File Reference
#include <nt.h>
#include <argparse.h>

Go to the source code of this file.

Functions

static void StopApplication (int sig)
 
int main (int argc, const char *argv[])
 

Variables

int appRunning =1
 
static const char * usageText []
 
static int opt_streamid = -1
 
struct argparse_option arg_options []
 

Function Documentation

static void StopApplication ( int  sig)
static

The function called when user is pressing CTRL-C

Definition at line 125 of file statUsage_example.c.

Referenced by main().

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

Definition at line 139 of file statUsage_example.c.

Variable Documentation

int appRunning =1

Definition at line 97 of file statUsage_example.c.

Referenced by main(), and StopApplication().

const char* usageText[]
static
Initial value:
= {
"Syntax:\n"
"statUsage_example [-h][-s <stream ID>]\n"
"\nCommands:\n",

Print command line info

Definition at line 102 of file statUsage_example.c.

Referenced by main().

int opt_streamid = -1
static
Examples:
statUsage/statUsage_example.c.

Definition at line 108 of file statUsage_example.c.

Referenced by main().

struct argparse_option arg_options[]
Initial value:
= {
OPT_INTEGER('s', "streamid", &opt_streamid, "Stream ID", NULL, 0, 0, "streamid"),
}

Table of valid options.

Definition at line 113 of file statUsage_example.c.