CliXoN
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
cli_main.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <dlfcn.h>
#include <dirent.h>
#include <unistd.h>
#include <errno.h>
#include <signal.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <netinet/in.h>
#include <assert.h>
#include <libgen.h>
#include <cligen/cligen.h>
#include <clixon/clixon.h>
#include "clixon_cli_api.h"
#include "cli_plugin.h"
#include "cli_generate.h"
#include "cli_common.h"
#include "cli_handle.h"

Macros

#define __USE_GNU   /* strverscmp */
 
#define CLI_OPTS   "hD:f:F:1u:d:m:qpGLl:y:"
 

Functions

static int cli_terminate (clicon_handle h)
 
static void cli_sig_term (int arg)
 
static void cli_signal_init (clicon_handle h)
 
static void cli_interactive (clicon_handle h)
 
static void usage (char *argv0, clicon_handle h)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define __USE_GNU   /* strverscmp */
#define CLI_OPTS   "hD:f:F:1u:d:m:qpGLl:y:"

Function Documentation

static void cli_interactive ( clicon_handle  h)
static

Interactive CLI command loop

Parameters
[in]hCLICON handle
See Also
cligen_loop
static void cli_sig_term ( int  arg)
static

Unlink pidfile and quit

static void cli_signal_init ( clicon_handle  h)
static

Setup signal handlers

static int cli_terminate ( clicon_handle  h)
static

terminate cli application

int main ( int  argc,
char **  argv 
)
static void usage ( char *  argv0,
clicon_handle  h 
)
static