|
Teonet library
0.4.7
|
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <pthread.h>#include "fossa.h"#include "ev_mgr.h"Macros | |
| #define | TFOSSA_VERSION VERSION |
Functions | |
| void | event_cb (ksnetEvMgrClass *ke, ksnetEvMgrEvents ev, void *data, size_t data_len, void *user_data) |
| Teonet event handler. More... | |
| void * | fossa (void *ke) |
| Fossa main thread function. More... | |
| int | main (int argc, char **argv) |
| Main Teofossa application function. More... | |
Variables | |
| pthread_t | tid |
| #define TFOSSA_VERSION VERSION |
Referenced by main().
| void event_cb | ( | ksnetEvMgrClass * | ke, |
| ksnetEvMgrEvents | ev, | ||
| void * | data, | ||
| size_t | data_len, | ||
| void * | user_data | ||
| ) |
Teonet event handler.
| ke | |
| ev | |
| data | |
| data_len | |
| user_data |
References EV_K_ASYNC, and free().
Referenced by main().
| void* fossa | ( | void * | ke | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Main Teofossa application function.
| argc | Number of parameters |
| argv | Parameters array |
References err, event_cb(), fossa(), ke, ksnet_printf(), ksnetEvMgrInit(), ksnetEvMgrRun(), MESSAGE, READ_CONFIGURATION, READ_OPTIONS, ksnetEvMgrClass::teo_cfg, TFOSSA_VERSION, and tid.
| pthread_t tid |
Referenced by main().