terminal: allow external redraw-schedule
Allow UI subsystem to schedule redraws. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
1 parent
181d26f0e7
commit
e18e063d87
2 files changed
+9
No files matched your search
@@ -407,6 +407,14 @@ void kmscon_terminal_close(struct kmscon_terminal *term)
|
||||
term->opened = false;
|
||||
}
|
||||
|
||||
void kmscon_terminal_redraw(struct kmscon_terminal *term)
|
||||
{
|
||||
if (!term)
|
||||
return;
|
||||
|
||||
schedule_redraw(term);
|
||||
}
|
||||
|
||||
int kmscon_terminal_add_display(struct kmscon_terminal *term,
|
||||
struct uterm_display *disp)
|
||||
{
|
||||
|
||||
@@ -61,6 +61,7 @@ void kmscon_terminal_unref(struct kmscon_terminal *term);
|
||||
int kmscon_terminal_open(struct kmscon_terminal *term,
|
||||
kmscon_terminal_event_cb event_cb, void *data);
|
||||
void kmscon_terminal_close(struct kmscon_terminal *term);
|
||||
void kmscon_terminal_redraw(struct kmscon_terminal *term);
|
||||
|
||||
int kmscon_terminal_add_display(struct kmscon_terminal *term,
|
||||
struct uterm_display *disp);
|
||||
|
||||
Reference in new issue
Block a user