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:
1 parent
e9019e42cb
commit
45c2284ece
2 files changed
+11
No files matched your search
@@ -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);
|
||||
}
|
||||
@@ -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 */
|
||||
Reference in new issue
Block a user