liblog/liblog.h

30 lines
691 B
C
Raw Normal View History

2019-09-18 17:44:47 +02:00
#ifndef LLOG
#define LLOG
2019-09-28 14:28:05 +02:00
// Enables or disable the log state
// It increases performances and then you can choose to enable && disable logging during execution
// s==1 => enabled
// s==0 => disabled
void ll_set_state(int s);
// With this function you can copy the state somewhere, and restore it after modifications
int ll_get_state();
2019-09-18 18:27:57 +02:00
// Display a message in the log stream
// you can add \n to start an new line ^^
void ll_send(const char * txt);
2019-09-18 18:27:57 +02:00
// Put the 8 last lines of the stream
void ll_display();
2019-09-18 17:44:47 +02:00
// Enable log displaying on panic
void ll_set_panic();
2019-09-18 17:44:47 +02:00
// Display log, enable scrolling, and waits the user to press Exit
void ll_pause();
// Clear log
void ll_clear();
2019-09-18 17:44:47 +02:00
#endif