display.h: Move get_FrameBuffer() up in the interface file

replace/589804f28fcdb261fffb98ab64eee09372c31897
Federico Amedeo Izzo 2020-10-04 18:30:36 +02:00 zatwierdzone przez Niccolò Izzo
rodzic f5fbe40b96
commit 810586aa5b
1 zmienionych plików z 15 dodań i 15 usunięć

Wyświetl plik

@ -54,6 +54,21 @@
*/
void display_init();
/**
* Get pointer to framebuffer. Being this a standard interface for all the
* low-level display drivers, this function returns a pointer to void: it's up
* to the caller performing the correct cast to one of the standard types used
* for color coding.
* Changes to the framebuffer will not be reflected on the display until
* display_render() or display_renderRows() are called.
*
*
* WARNING: no bound check is performed! Do not call free() on the pointer
* returned, doing so will destroy the framebuffer!
* @return pointer to framebuffer.
*/
void *display_getFrameBuffer();
/**
* When called, this function turns off backlight, shuts down backlight control
* and deallocates the framebuffer.
@ -100,19 +115,4 @@ void display_render();
*/
bool display_renderingInProgress();
/**
* Get pointer to framebuffer. Being this a standard interface for all the
* low-level display drivers, this function returns a pointer to void: it's up
* to the caller performing the correct cast to one of the standard types used
* for color coding.
* Changes to the framebuffer will not be reflected on the display until
* display_render() or display_renderRows() are called.
*
*
* WARNING: no bound check is performed! Do not call free() on the pointer
* returned, doing so will destroy the framebuffer!
* @return pointer to framebuffer.
*/
void *display_getFrameBuffer();
#endif /* DISPLAY_H */