diff options
author | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-20 07:36:34 +0300 |
---|---|---|
committer | Uoti Urpala <uau@symbol.nonexistent.invalid> | 2008-04-23 13:41:07 +0300 |
commit | acf319b3edea4d8dd0fe338778e08e0d99dc49bb (patch) | |
tree | 8beb60e04061fd392637dfa9859a379e2c96f5c8 /libvo/x11_common.h | |
parent | d283d5236ab36bc55c73de4e152dabea7098f850 (diff) | |
download | mpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.bz2 mpv-acf319b3edea4d8dd0fe338778e08e0d99dc49bb.tar.xz |
Create a struct for X11 state
Will be used for common data between X11 VOs. The main reasons for
making it a separate struct rather than extra fields in the main VO
struct are that some field definitions need X headers and that the code
keeps basic X state such as the display connection over opening and
closing of individual VOs.
Diffstat (limited to 'libvo/x11_common.h')
-rw-r--r-- | libvo/x11_common.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libvo/x11_common.h b/libvo/x11_common.h index fa9d7d0444..4585bc6bd5 100644 --- a/libvo/x11_common.h +++ b/libvo/x11_common.h @@ -6,6 +6,10 @@ struct vo; +struct vo_x11_state { + int unused; // placeholder to avoid empty struct +}; + #ifdef X11_FULLSCREEN #define vo_wm_LAYER 1 @@ -36,6 +40,7 @@ extern int mLocalDisplay; extern int vo_mouse_autohide; +void vo_x11_init_state(struct vo_x11_state *s); extern int vo_init( void ); extern void vo_uninit( void ); extern void vo_x11_decoration( Display * vo_Display,Window w,int d ); |