File src/cmd_events.c

Displays information about known events, as detailed in the ubs.conf file.


Included Files


Global Variable PROCNAME

char PROCNAME[128]
Included from include/ubs.h

Global Variable CUR_TIME

struct tm* CUR_TIME
Included from include/ubs.h

Global Variable GLOBAL

ubs_table GLOBAL
Included from include/ubs.h

Global Variable LOGLEVEL

int LOGLEVEL
Included from include/ubs.h

Global Variable ALLEVENTS

All known events which were parsed in the configuration file

struct event* ALLEVENTS
Included from include/ubs-event.h


Global Variable EVENT

ubs_table EVENT
Included from include/ubs-event.h

Global Function cmd_events()

Displays information about known events in the ubs-event process.

int cmd_events ( int cmdc, char** cmdv )

int cmd_events
Returns OK on success
int cmdc
Number of arguments
char** cmdv
Argument vector
Prototyped in: include/ubs-main.h
Calls: sub_dump_event()src/cmd_events.c
  ubs_table_data()lib/table.c
  atoi(), getopt(), sub_help_cmd()

Global Function sub_dump_event()

sub_dump_event Returns OK for success

int sub_dump_event ( int event_num, int format )

int event_num
The event index in the ALLEVENTS array
int format
The output mode
Prototyped in: include/ubs-main.h
Calls: printf()
Called by: cmd_events()src/cmd_events.c