Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
log_reader.h File Reference

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

teoLogReaderClassteoLogReaderInit (void *ke)
 
void teoLogReaderDestroy (teoLogReaderClass *lr)
 
teoLogReaderWatcherteoLogReaderOpen (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags)
 
teoLogReaderWatcherteoLogReaderOpenCb (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags, teoLogReaderCallback cb)
 
teoLogReaderWatcherteoLogReaderOpenCbPP (teoLogReaderClass *lr, const char *name, const char *file_name, teoLogReaderFlag flags, teoLogReaderCallback cb, void *user_data)
 
int teoLogReaderClose (teoLogReaderWatcher *wd)
 

Typedef Documentation

typedef void(* teoLogReaderCallback)(void *data, size_t data_length, teoLogReaderWatcher *wd)
typedef uint32_t teoLogReaderFlag

Enumeration Type Documentation

Enumerator
READ_FROM_BEGIN 
READ_FROM_END 
SKIP_EMPTY 

Function Documentation

teoLogReaderWatcher* teoLogReaderOpen ( teoLogReaderClass lr,
const char *  name,
const char *  file_name,
teoLogReaderFlag  flags 
)
inline
teoLogReaderWatcher* teoLogReaderOpenCb ( teoLogReaderClass lr,
const char *  name,
const char *  file_name,
teoLogReaderFlag  flags,
teoLogReaderCallback  cb 
)
inline