diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 08:17:23 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-04-25 08:17:23 +0000 |
commit | 7c2bef4bb5a3275dc2e3fb75dfeb03ac1f1b5755 (patch) | |
tree | dea919127f2f4ee922b845fcea315ff80cdce8a1 /libvo/sdl_common.h | |
parent | 5cdca550058a667f8f5aa643dc0ef9f1099605db (diff) | |
download | mpv-7c2bef4bb5a3275dc2e3fb75dfeb03ac1f1b5755.tar.bz2 mpv-7c2bef4bb5a3275dc2e3fb75dfeb03ac1f1b5755.tar.xz |
Add sdl_common file and use it to share the input handling between -vo gl
with SDL backend and -vo sdl.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31074 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/sdl_common.h')
-rw-r--r-- | libvo/sdl_common.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libvo/sdl_common.h b/libvo/sdl_common.h new file mode 100644 index 0000000000..b83161bfc1 --- /dev/null +++ b/libvo/sdl_common.h @@ -0,0 +1,32 @@ +/* + * common SDL routines + * + * This file is part of MPlayer. + * + * MPlayer is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * MPlayer is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with MPlayer; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef MPLAYER_SDL_COMMON_H +#define MPLAYER_SDL_COMMON_H + +#include "config.h" +#ifdef CONFIG_SDL_SDL_H +#include <SDL/SDL.h> +#else +#include <SDL.h> +#endif +int sdl_default_handle_event(SDL_Event *event); + +#endif |