terminal: add API to remove displays

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>
This commit is contained in:
David Herrmann committed 2012-07-21 15:44:41 +02:00
1 parent e9019e42cb
commit 45c2284ece
2 files changed
+11

No files matched your search

+9
View File
@@ -417,3 +417,12 @@ int kmscon_terminal_add_display(struct kmscon_terminal *term,
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);
}
+2
View File
@@ -64,5 +64,7 @@ void kmscon_terminal_close(struct kmscon_terminal *term);
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 */