This new function allows external subsystems to remove displays from the
terminal objects. It is required to make the terminal subsystem
independent of the uterm-video subsystem to allow different displays from
different video-objects to be part of a terminal.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
return add_display(term, disp);
}
+
+void kmscon_terminal_remove_display(struct kmscon_terminal *term,
+ struct uterm_display *disp)
+{
+ if (!term || !disp)
+ return;
+
+ rm_display(term, disp);
+}
int kmscon_terminal_add_display(struct kmscon_terminal *term,
struct uterm_display *disp);
+void kmscon_terminal_remove_display(struct kmscon_terminal *term,
+ struct uterm_display *disp);
#endif /* KMSCON_TERMINAL_H */