osd: refactor to not write server->osd_state outside osd.c

This commit is contained in:
tokyo4j 2024-12-30 01:05:17 +09:00 committed by Hiroaki Yamamoto
parent 8f8e734405
commit 6fe688b3e4
4 changed files with 47 additions and 33 deletions

View file

@ -36,6 +36,13 @@ struct window_switcher_field {
struct buf;
struct view;
struct server;
enum lab_cycle_dir;
/* Begin window switcher */
void osd_begin(struct server *server, enum lab_cycle_dir direction);
/* Cycle the selected view in the window switcher */
void osd_cycle(struct server *server, enum lab_cycle_dir direction);
/* Updates onscreen display 'alt-tab' buffer */
void osd_update(struct server *server);