1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 06:42:03 +00:00

input: remove useless joystick.h/lirc.h include files

These really just waste space.
This commit is contained in:
wm4 2014-09-10 00:51:36 +02:00
parent e2a093df02
commit ae63702a2c
6 changed files with 6 additions and 67 deletions

View File

@ -53,12 +53,6 @@
#include "stream/stream.h"
#include "common/common.h"
#include "joystick.h"
#if HAVE_LIRC
#include "lirc.h"
#endif
#if HAVE_COCOA
#include "osdep/macosx_events.h"
#endif
@ -230,13 +224,13 @@ const struct m_sub_options input_config = {
OPT_FLAG("right-alt-gr", use_alt_gr, CONF_GLOBAL),
OPT_INTRANGE("key-fifo-size", key_fifo_size, CONF_GLOBAL, 2, 65000),
OPT_FLAG("cursor", enable_mouse_movements, CONF_GLOBAL),
#if HAVE_LIRC
#if HAVE_LIRC
OPT_STRING("lirc-conf", lirc_configfile, CONF_GLOBAL),
#endif
#if HAVE_COCOA
#endif
#if HAVE_COCOA
OPT_FLAG("appleremote", use_appleremote, CONF_GLOBAL),
OPT_FLAG("media-keys", use_media_keys, CONF_GLOBAL),
#endif
#endif
{0}
},
.size = sizeof(struct input_opts),

View File

@ -275,6 +275,8 @@ void mp_input_run_cmd(struct input_ctx *ictx, int def_flags, const char **cmd,
const char *location);
void mp_input_add_pipe(struct input_ctx *ictx, const char *filename);
void mp_input_joystick_add(struct input_ctx *ictx, char *dev);
void mp_input_lirc_add(struct input_ctx *ictx, char *lirc_configfile);
void mp_input_set_main_thread(struct input_ctx *ictx);

View File

@ -16,9 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include "joystick.h"
#include "input.h"
#include <stdlib.h>

View File

@ -1,26 +0,0 @@
/*
* 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_JOYSTICK_H
#define MPLAYER_JOYSTICK_H
struct input_ctx;
struct mp_log;
void mp_input_joystick_add(struct input_ctx *ictx, char *dev);
#endif /* MPLAYER_JOYSTICK_H */

View File

@ -16,8 +16,6 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#include "config.h"
#include <lirc/lirc_client.h>
#include <errno.h>
#include <fcntl.h>
@ -29,7 +27,6 @@
#include "common/msg.h"
#include "input.h"
#include "lirc.h"
struct ctx {
struct mp_log *log;

View File

@ -1,25 +0,0 @@
/*
* 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_LIRC_H
#define MPLAYER_LIRC_H
struct input_ctx;
void mp_input_lirc_add(struct input_ctx *ictx, char *lirc_configfile);
#endif /* MPLAYER_LIRC_H */