Teonet library  0.4.7
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
log_reader.c File Reference
#include <fcntl.h>
#include <stdlib.h>
#include "ev_mgr.h"
#include "log_reader.h"

Macros

#define MODULE   "log_reader"
 
#define kev   ((ksnetEvMgrClass*)(lr->ke))
 
#define BUFINC   256
 
#define retstr   ((char*)lr->line_buffer)
 

Functions

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

Macro Definition Documentation

#define BUFINC   256
#define kev   ((ksnetEvMgrClass*)(lr->ke))
#define MODULE   "log_reader"
#define retstr   ((char*)lr->line_buffer)

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