Teonet library
0.4.7
|
Go to the source code of this file.
Data Structures | |
struct | teoLogReaderClass |
struct | teoLogReaderWatcher |
Typedefs | |
typedef uint32_t | teoLogReaderFlag |
typedef enum _teoLogReaderFlag | _teoLogReaderFlag |
typedef struct teoLogReaderClass | teoLogReaderClass |
typedef struct teoLogReaderWatcher | teoLogReaderWatcher |
typedef void(* | teoLogReaderCallback )(void *data, size_t data_length, teoLogReaderWatcher *wd) |
Enumerations | |
enum | _teoLogReaderFlag { READ_FROM_BEGIN, READ_FROM_END = 0b001, SKIP_EMPTY = 0b010 } |
Functions | |
teoLogReaderClass * | teoLogReaderInit (void *ke) |
void | teoLogReaderDestroy (teoLogReaderClass *lr) |
teoLogReaderWatcher * | teoLogReaderOpen (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags) |
teoLogReaderWatcher * | teoLogReaderOpenCb (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags, teoLogReaderCallback cb) |
teoLogReaderWatcher * | teoLogReaderOpenCbPP (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags, teoLogReaderCallback cb, void *user_data) |
int | teoLogReaderClose (teoLogReaderWatcher *wd) |
typedef enum _teoLogReaderFlag _teoLogReaderFlag |
typedef void(* teoLogReaderCallback)(void *data, size_t data_length, teoLogReaderWatcher *wd) |
typedef struct teoLogReaderClass teoLogReaderClass |
typedef uint32_t teoLogReaderFlag |
typedef struct teoLogReaderWatcher teoLogReaderWatcher |
enum _teoLogReaderFlag |
int teoLogReaderClose | ( | teoLogReaderWatcher * | wd | ) |
void teoLogReaderDestroy | ( | teoLogReaderClass * | lr | ) |
References teoLogReaderClass::buffer, DEBUG_VV, free(), teoLogReaderClass::ke, ke, ksn_puts, teoLogReaderClass::line_buffer, and MODULE.
Referenced by modules_destroy().
teoLogReaderClass* teoLogReaderInit | ( | void * | ke | ) |
References teoLogReaderClass::buf_size, teoLogReaderClass::buffer, DEBUG_VV, teoLogReaderClass::ke, ke, kev, ksn_puts, teoLogReaderClass::line_buf_size, teoLogReaderClass::line_buffer, malloc(), and MODULE.
Referenced by modules_init().
|
inline |
References teoLogReaderOpenCbPP().
|
inline |
References teoLogReaderOpenCbPP().
teoLogReaderWatcher* teoLogReaderOpenCbPP | ( | teoLogReaderClass * | lr, |
const char * | name, | ||
const char * | file_name, | ||
teoLogReaderFlag | flags, | ||
teoLogReaderCallback | cb, | ||
void * | user_data | ||
) |
References teoLogReaderWatcher::cb, ERROR_M, fd, teoLogReaderWatcher::fd, teoLogReaderWatcher::file_name, teoLogReaderWatcher::flags, kev, ksn_printf, teoLogReaderWatcher::lr, malloc(), MODULE, teoLogReaderWatcher::name, READ_FROM_END, teoLogReaderWatcher::user_data, w, and teoLogReaderWatcher::w.
Referenced by teo::Teonet::LogReader::open(), teoLogReaderOpen(), and teoLogReaderOpenCb().