ROFL-pipeline  v0.6.0dev
logging.c
1 #include "logging.h"
2 
3 enum rofl_pipeline_debug_levels rofl_pipeline_debug_level[PIPELINE_MAX_DEBUG_CLASS] = ROFL_PIPELINE_DBG_DEFAULT;
4 int (*rofl_pipeline_debug_print)(FILE *stream, const char *format, ...) = &fprintf; // todo move to the driver side
5 
6 //API to set the logging function
7 void rofl_pipeline_set_logging_function(int (*logging_func)(FILE *stream, const char *format, ...)){
8  rofl_pipeline_debug_print = logging_func;
9 }
10 
11 void rofl_pipeline_set_logging_level(/*cn,*/ enum rofl_pipeline_debug_levels level){
12  rofl_pipeline_debug_level[PIPELINE_DEFAULT] = level;
13 }