diff options
author | Kalle Wallin <kaw@linux.se> | 2004-04-21 19:06:18 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-04-21 19:06:18 +0000 |
commit | b1f77e2684e85fac5ef5d50fc1342d7d53e5a492 (patch) | |
tree | 7727ec3010c4368f59b19a3e246f8d62cc8944d5 /screen.h | |
parent | 41d5f057a8e0fa8ed4a0c8465ce8a1d0e7ab8e1a (diff) | |
download | mpd-b1f77e2684e85fac5ef5d50fc1342d7d53e5a492.tar.gz mpd-b1f77e2684e85fac5ef5d50fc1342d7d53e5a492.tar.xz mpd-b1f77e2684e85fac5ef5d50fc1342d7d53e5a492.zip |
Fixed resize handling (SIGWINCH).
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@871 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'screen.h')
-rw-r--r-- | screen.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -84,6 +84,7 @@ typedef void (*screen_init_fn_t) (WINDOW *w, int cols, int rows); typedef void (*screen_exit_fn_t) (void); typedef void (*screen_open_fn_t) (screen_t *screen, mpd_client_t *c); typedef void (*screen_close_fn_t) (void); +typedef void (*screen_resize_fn_t) (int cols, int rows); typedef void (*screen_paint_fn_t) (screen_t *screen, mpd_client_t *c); typedef void (*screen_update_fn_t) (screen_t *screen, mpd_client_t *c); typedef int (*screen_cmd_fn_t) (screen_t *scr, mpd_client_t *c, command_t cmd); @@ -96,6 +97,7 @@ typedef struct screen_exit_fn_t exit; screen_open_fn_t open; screen_close_fn_t close; + screen_resize_fn_t resize; screen_paint_fn_t paint; screen_update_fn_t update; screen_cmd_fn_t cmd; @@ -107,7 +109,7 @@ typedef struct int screen_init(void); int screen_exit(void); -void screen_resized(int sig); +void screen_resize(void); void screen_status_message(char *msg); void screen_status_printf(char *format, ...); char *screen_error(void); |