Teonet library
0.4.7
|
Macros | |
#define | TTERM_VERSION VERSION |
Functions | |
int | cmd_user (struct cli_def *cli, const char *command, char *argv[], int argc) |
Show user command. More... | |
void | event_cb (ksnetEvMgrClass *ke, ksnetEvMgrEvents event, void *data, size_t data_len, void *user_data) |
Teonet Events callback. More... | |
int | main (int argc, char **argv) |
Main application function. More... | |
int cmd_user | ( | struct cli_def * | cli, |
const char * | command, | ||
char * | argv[], | ||
int | argc | ||
) |
Show user command.
cli | The handle of the cli structure |
command | The entire command which was entered. This is after command expansion |
argv | The list of arguments entered |
argc | The number of arguments entered |
References CLI_OK, and cli_print().
Referenced by event_cb().
void event_cb | ( | ksnetEvMgrClass * | ke, |
ksnetEvMgrEvents | event, | ||
void * | data, | ||
size_t | data_len, | ||
void * | user_data | ||
) |
Teonet Events callback.
ke | |
event | |
data | |
data_len | |
user_data |
References ksnetEvMgrClass::cli, cli_register_command(), cmd_user(), EV_K_TERM_STARTED, MODE_EXEC, and PRIVILEGE_UNPRIVILEGED.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Main application function.
argc | Number of parameters |
argv | Parameters array |
References event_cb(), ke, ksnetEvMgrInit(), ksnetEvMgrRun(), READ_CONFIGURATION, READ_OPTIONS, and TTERM_VERSION.