#include <commands.h>
Data Fields | |
| char * | command |
| int | need_session |
| char * | accesslvl |
| char * | arghint |
| char * | helpinfo |
| void(* | helpfunc )(void) |
| int(* | function )(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *, int argc, char **argv) |
struct used for definition of commands, help info and function pointers to the command
Definition at line 41 of file commands.h.
String containing the access level the user need to use this command
Definition at line 44 of file commands.h.
Simple help hints string, used in the main help screen mainly
Definition at line 45 of file commands.h.
Command name, which is used by the end user
Definition at line 42 of file commands.h.
| int(* eurephiadm_functions::function)(eurephiaCTX *, eurephiaSESSION *, eurephiaVALUES *, int argc, char **argv) |
Commands main entry function. This function will be called when a valid function is found
| eurephiaCTX* | The current eurephiaCTX will be received here. | |
| eurephiaSESSION* | The current eurephiaSESSION for the logged in user. | |
| argc | argument counter of all following arguments. | |
| argv | argument vector, char * array of all arguments. arg[0] is the command itself. |
Definition at line 57 of file commands.h.
| void(* eurephiadm_functions::helpfunc)(void) |
Function pointer to the help function. Takes no arguments
Definition at line 47 of file commands.h.
Simple one-line help string describing the command
Definition at line 46 of file commands.h.
Set this flag to 1, if the user must log in to use this command
Definition at line 43 of file commands.h.
1.7.1