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
|
2019-09-21 12:48:06 +02:00
|
|
|
// you can add \n to start an new line ^^
|
2019-09-20 13:22:16 +02:00
|
|
|
void ll_send(const char * txt);
|
2019-09-18 18:27:57 +02:00
|
|
|
|
2019-09-21 12:48:06 +02:00
|
|
|
// Put the 8 last lines of the stream
|
2019-09-20 13:22:16 +02:00
|
|
|
void ll_display();
|
2019-09-18 17:44:47 +02:00
|
|
|
|
2019-09-21 12:48:06 +02:00
|
|
|
// Enable log displaying on panic
|
2019-09-20 13:22:16 +02:00
|
|
|
void ll_set_panic();
|
2019-09-18 17:44:47 +02:00
|
|
|
|
2019-09-21 12:48:06 +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
|