logger.h 1.65 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
#ifndef _LOGGER_H_
#define _LOGGER_H_

typedef void logger;

logger *new_framelog(void *event_handler, void *database,
    char *event_name, char *subframe_varname, char *buffer_varname);
logger *new_textlog(void *event_handler, void *database,
    char *event_name, char *format);
logger *new_ttilog(void *event_handler, void *database,
    char *event_name, char *frame_varname, char *subframe_varname,
    char *data_varname, int convert_to_dB);
Cedric Roux's avatar
Cedric Roux committed
13
logger *new_ticked_ttilog(void *event_handler, void *database,
14 15 16
    char *tick_event_name, char *frame_varname, char *subframe_varname,
    char *event_name, char *data_varname,
    int convert_to_dB, float empty_value);
Cedric Roux's avatar
Cedric Roux committed
17 18 19
logger *new_throughputlog(void *event_handler, void *database,
    char *tick_event_name, char *frame_varname, char *subframe_varname,
    char *event_name, char *data_varname);
Cedric Roux's avatar
Cedric Roux committed
20
logger *new_timelog(void *event_handler, void *database, char *event_name);
Cedric Roux's avatar
Cedric Roux committed
21 22
logger *new_ticklog(void *event_handler, void *database,
    char *event_name, char *frame_name, char *subframe_name);
Cedric Roux's avatar
Cedric Roux committed
23 24 25
logger *new_iqlog(void *event_handler, void *database,
    char *event_name, char *nb_rb, char *N_RB_UL, char *symbols_per_tti,
    char *buffer_varname);
Cedric Roux's avatar
Cedric Roux committed
26 27
logger *new_iqdotlog(void *event_handler, void *database,
    char *event_name, char *I, char *Q);
28

29
void framelog_set_skip(logger *_this, int skip_delay);
30
void framelog_set_update_only_at_sf9(logger *_this, int update_only_at_sf9);
31

32 33
void textlog_dump_buffer(logger *_this, int dump_buffer);

34 35 36
#include "view/view.h"

void logger_add_view(logger *l, view *v);
Cedric Roux's avatar
Cedric Roux committed
37
void logger_set_filter(logger *l, void *filter);
Cedric Roux's avatar
Cedric Roux committed
38
void ticked_ttilog_set_tick_filter(logger *l, void *filter);
39 40

#endif /* _LOGGER_H_ */