2008-12-13 18:28:00 +00:00
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_INPUT_H
|
|
|
|
#define MPLAYER_INPUT_H
|
2008-01-01 21:35:58 +00:00
|
|
|
|
2012-03-21 00:23:35 +00:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
2003-09-14 17:52:59 +00:00
|
|
|
// All command IDs
|
2011-07-16 15:17:48 +00:00
|
|
|
enum mp_command_type {
|
2011-07-16 14:47:02 +00:00
|
|
|
MP_CMD_SEEK,
|
|
|
|
MP_CMD_QUIT,
|
mplayer: turn playtree into a list, and change per-file option handling
Summary:
- There is no playtree anymore. It's reduced to a simple list.
- Options are now always global. You can still have per-file options,
but these are optional and require special syntax.
- The slave command pt_step has been removed, and playlist_next
and playlist_prev added. (See etc/input.conf changes.)
This is a user visible incompatible change, and will break slave-mode
applications.
- The pt_clear slave command is renamed to playlist_clear.
- Playtree entries could have multiple files. This is not the case
anymore, and playlist entries have always exactly one entry. Whenever
something adds more than one file (like ASX playlists or dvd:// or
dvdnav:// on the command line), all files are added as separate
playlist entries.
Note that some of the changes are quite deep and violent. Expect
regressions.
The playlist parsing code in particular is of low quality. I didn't try
to improve it, and merely spent to least effort necessary to keep it
somehow working. (Especially ASX playlist handling.)
The playtree code was complicated and bloated. It was also barely used.
Most users don't even know that mplayer manages the playlist as tree,
or how to use it. The most obscure features was probably specifying a
tree on command line (with '{' and '}' to create/close tree nodes). It
filled the player code with complexity and confused users with weird
slave commands like pt_up.
Replace the playtree with a simple flat playlist. Playlist parsers that
actually return trees are changed to append all files to the playlist
pre-order.
It used to be the responsibility of the playtree code to change per-file
config options. Now this is done by the player core, and the playlist
code is free of such details.
Options are not per-file by default anymore. This was a very obscure and
complicated feature that confused even experienced users. Consider the
following command line:
mplayer file1.mkv file2.mkv --no-audio file3.mkv
This will disable the audio for file2.mkv only, because options are
per-file by default. To make the option affect all files, you're
supposed to put it before the first file.
This is bad, because normally you don't need per-file options. They are
very rarely needed, and the only reasonable use cases I can imagine are
use of the encode backend (mplayer encode branch), or for debugging. The
normal use case is made harder, and the feature is perceived as bug.
Even worse, correct usage is hard to explain for users.
Make all options global by default. The position of an option isn't
significant anymore (except for options that compensate each other,
consider --shuffle --no-shuffle).
One other important change is that no options are reset anymore if a
new file is started. If you change settings with slave mode commands,
they will not be changed by playing a new file. (Exceptions include
settings that are too file specific, like audio/subtitle stream
selection.)
There is still some need for per-file options. Debugging and encoding
are use cases that profit from per-file options. Per-file profiles (as
well as per-protocol and per-VO/AO options) need the implementation
related mechanisms to backup and restore options when the playback file
changes.
Simplify the save-slot stuff, which is possible because there is no
hierarchical play tree anymore. Now there's a simple backup field.
Add a way to specify per-file options on command line. Example:
mplayer f1.mkv -o0 --{ -o1 f2.mkv -o2 f3.mkv --} f4.mkv -o3
will have the following options per file set:
f1.mkv, f4.mkv: -o0 -o3
f2.mkv, f3.mkv: -o0 -o3 -o1 -o2
The options --{ and --} start and end per-file options. All files inside
the { } will be affected by the options equally (similar to how global
options and multiple files are handled). When playback of a file starts,
the per-file options are set according to the command line. When
playback ends, the per-file options are restored to the values when
playback started.
2012-07-31 19:33:26 +00:00
|
|
|
MP_CMD_PLAYLIST_NEXT,
|
|
|
|
MP_CMD_PLAYLIST_PREV,
|
2011-07-16 14:47:02 +00:00
|
|
|
MP_CMD_OSD,
|
|
|
|
MP_CMD_TV_STEP_CHANNEL,
|
|
|
|
MP_CMD_TV_STEP_NORM,
|
|
|
|
MP_CMD_TV_STEP_CHANNEL_LIST,
|
|
|
|
MP_CMD_SCREENSHOT,
|
|
|
|
MP_CMD_LOADFILE,
|
|
|
|
MP_CMD_LOADLIST,
|
mplayer: turn playtree into a list, and change per-file option handling
Summary:
- There is no playtree anymore. It's reduced to a simple list.
- Options are now always global. You can still have per-file options,
but these are optional and require special syntax.
- The slave command pt_step has been removed, and playlist_next
and playlist_prev added. (See etc/input.conf changes.)
This is a user visible incompatible change, and will break slave-mode
applications.
- The pt_clear slave command is renamed to playlist_clear.
- Playtree entries could have multiple files. This is not the case
anymore, and playlist entries have always exactly one entry. Whenever
something adds more than one file (like ASX playlists or dvd:// or
dvdnav:// on the command line), all files are added as separate
playlist entries.
Note that some of the changes are quite deep and violent. Expect
regressions.
The playlist parsing code in particular is of low quality. I didn't try
to improve it, and merely spent to least effort necessary to keep it
somehow working. (Especially ASX playlist handling.)
The playtree code was complicated and bloated. It was also barely used.
Most users don't even know that mplayer manages the playlist as tree,
or how to use it. The most obscure features was probably specifying a
tree on command line (with '{' and '}' to create/close tree nodes). It
filled the player code with complexity and confused users with weird
slave commands like pt_up.
Replace the playtree with a simple flat playlist. Playlist parsers that
actually return trees are changed to append all files to the playlist
pre-order.
It used to be the responsibility of the playtree code to change per-file
config options. Now this is done by the player core, and the playlist
code is free of such details.
Options are not per-file by default anymore. This was a very obscure and
complicated feature that confused even experienced users. Consider the
following command line:
mplayer file1.mkv file2.mkv --no-audio file3.mkv
This will disable the audio for file2.mkv only, because options are
per-file by default. To make the option affect all files, you're
supposed to put it before the first file.
This is bad, because normally you don't need per-file options. They are
very rarely needed, and the only reasonable use cases I can imagine are
use of the encode backend (mplayer encode branch), or for debugging. The
normal use case is made harder, and the feature is perceived as bug.
Even worse, correct usage is hard to explain for users.
Make all options global by default. The position of an option isn't
significant anymore (except for options that compensate each other,
consider --shuffle --no-shuffle).
One other important change is that no options are reset anymore if a
new file is started. If you change settings with slave mode commands,
they will not be changed by playing a new file. (Exceptions include
settings that are too file specific, like audio/subtitle stream
selection.)
There is still some need for per-file options. Debugging and encoding
are use cases that profit from per-file options. Per-file profiles (as
well as per-protocol and per-VO/AO options) need the implementation
related mechanisms to backup and restore options when the playback file
changes.
Simplify the save-slot stuff, which is possible because there is no
hierarchical play tree anymore. Now there's a simple backup field.
Add a way to specify per-file options on command line. Example:
mplayer f1.mkv -o0 --{ -o1 f2.mkv -o2 f3.mkv --} f4.mkv -o3
will have the following options per file set:
f1.mkv, f4.mkv: -o0 -o3
f2.mkv, f3.mkv: -o0 -o3 -o1 -o2
The options --{ and --} start and end per-file options. All files inside
the { } will be affected by the options equally (similar to how global
options and multiple files are handled). When playback of a file starts,
the per-file options are set according to the command line. When
playback ends, the per-file options are restored to the values when
playback started.
2012-07-31 19:33:26 +00:00
|
|
|
MP_CMD_PLAYLIST_CLEAR,
|
2011-07-16 14:47:02 +00:00
|
|
|
MP_CMD_SUB_STEP,
|
|
|
|
MP_CMD_TV_SET_CHANNEL,
|
|
|
|
MP_CMD_EDL_MARK,
|
|
|
|
MP_CMD_TV_LAST_CHANNEL,
|
|
|
|
MP_CMD_OSD_SHOW_TEXT,
|
|
|
|
MP_CMD_TV_SET_FREQ,
|
|
|
|
MP_CMD_TV_SET_NORM,
|
|
|
|
MP_CMD_SWITCH_RATIO,
|
|
|
|
MP_CMD_FRAME_STEP,
|
|
|
|
MP_CMD_SPEED_INCR,
|
|
|
|
MP_CMD_SPEED_MULT,
|
|
|
|
MP_CMD_SPEED_SET,
|
|
|
|
MP_CMD_RUN,
|
|
|
|
MP_CMD_SUB_LOAD,
|
|
|
|
MP_CMD_KEYDOWN_EVENTS,
|
2012-09-09 00:08:08 +00:00
|
|
|
MP_CMD_SET,
|
2011-07-16 14:47:02 +00:00
|
|
|
MP_CMD_GET_PROPERTY,
|
|
|
|
MP_CMD_OSD_SHOW_PROPERTY_TEXT,
|
|
|
|
MP_CMD_OSD_SHOW_PROGRESSION,
|
|
|
|
MP_CMD_RADIO_STEP_CHANNEL,
|
|
|
|
MP_CMD_RADIO_SET_CHANNEL,
|
|
|
|
MP_CMD_RADIO_SET_FREQ,
|
|
|
|
MP_CMD_SET_MOUSE_POS,
|
2012-09-09 00:08:08 +00:00
|
|
|
MP_CMD_SWITCH,
|
2011-07-16 14:47:02 +00:00
|
|
|
MP_CMD_RADIO_STEP_FREQ,
|
|
|
|
MP_CMD_TV_STEP_FREQ,
|
|
|
|
MP_CMD_TV_START_SCAN,
|
|
|
|
MP_CMD_STOP,
|
|
|
|
|
|
|
|
/// DVB commands
|
|
|
|
MP_CMD_DVB_SET_CHANNEL = 5101,
|
|
|
|
|
|
|
|
/// Audio Filter commands
|
|
|
|
MP_CMD_AF_SWITCH,
|
|
|
|
MP_CMD_AF_ADD,
|
|
|
|
MP_CMD_AF_DEL,
|
|
|
|
MP_CMD_AF_CLR,
|
|
|
|
MP_CMD_AF_CMDLINE,
|
2011-10-23 03:26:30 +00:00
|
|
|
|
|
|
|
MP_CMD_SHOW_CHAPTERS,
|
2011-10-24 00:41:17 +00:00
|
|
|
MP_CMD_SHOW_TRACKS,
|
2012-07-31 23:06:59 +00:00
|
|
|
|
|
|
|
/// Video output commands
|
|
|
|
MP_CMD_VO_CMDLINE,
|
2011-07-16 15:17:48 +00:00
|
|
|
};
|
2002-11-14 23:41:44 +00:00
|
|
|
|
2003-09-14 17:52:59 +00:00
|
|
|
// The arg types
|
2012-01-25 23:01:49 +00:00
|
|
|
#define MP_CMD_ARG_INT 1
|
|
|
|
#define MP_CMD_ARG_FLOAT 2
|
|
|
|
#define MP_CMD_ARG_STRING 3
|
2002-01-30 12:46:03 +00:00
|
|
|
|
|
|
|
#define MP_CMD_MAX_ARGS 10
|
2002-03-19 13:29:28 +00:00
|
|
|
|
|
|
|
// Error codes for the drivers
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2003-12-24 22:00:51 +00:00
|
|
|
// An error occurred but we can continue
|
2002-01-30 12:46:03 +00:00
|
|
|
#define MP_INPUT_ERROR -1
|
2003-12-24 22:00:51 +00:00
|
|
|
// A fatal error occurred, this driver should be removed
|
2002-01-30 12:46:03 +00:00
|
|
|
#define MP_INPUT_DEAD -2
|
2003-09-14 17:52:59 +00:00
|
|
|
// No input was available
|
2002-01-30 12:46:03 +00:00
|
|
|
#define MP_INPUT_NOTHING -3
|
2005-06-27 08:16:23 +00:00
|
|
|
//! Input will be available if you try again
|
|
|
|
#define MP_INPUT_RETRY -4
|
2011-05-01 12:57:39 +00:00
|
|
|
// Key FIFO was full - release events may be lost, zero button-down status
|
|
|
|
#define MP_INPUT_RELEASE_ALL -5
|
|
|
|
|
2012-09-09 00:08:08 +00:00
|
|
|
enum mp_on_osd {
|
|
|
|
MP_ON_OSD_NO = 0,
|
|
|
|
MP_ON_OSD_AUTO,
|
|
|
|
};
|
|
|
|
|
2012-08-24 11:29:28 +00:00
|
|
|
enum mp_input_section_flags {
|
|
|
|
// If a key binding is not defined in the current section, search the
|
|
|
|
// default section for it ("default" refers to bindings with no section
|
|
|
|
// specified, not to the default input.conf aka builtin key bindings)
|
|
|
|
MP_INPUT_NO_DEFAULT_SECTION = 1,
|
|
|
|
};
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2008-04-30 04:15:52 +00:00
|
|
|
struct input_ctx;
|
|
|
|
|
2011-07-16 15:17:48 +00:00
|
|
|
struct mp_cmd_arg {
|
2011-07-16 14:47:02 +00:00
|
|
|
int type;
|
2012-03-21 00:23:35 +00:00
|
|
|
bool optional;
|
2011-07-16 15:17:48 +00:00
|
|
|
union {
|
|
|
|
int i;
|
|
|
|
float f;
|
|
|
|
char *s;
|
|
|
|
} v;
|
|
|
|
};
|
2002-01-30 12:46:03 +00:00
|
|
|
|
|
|
|
typedef struct mp_cmd {
|
2011-07-16 14:47:02 +00:00
|
|
|
int id;
|
|
|
|
char *name;
|
2011-07-16 15:17:48 +00:00
|
|
|
struct mp_cmd_arg args[MP_CMD_MAX_ARGS];
|
2012-03-21 00:23:35 +00:00
|
|
|
int nargs;
|
2011-07-16 14:47:02 +00:00
|
|
|
int pausing;
|
2012-09-09 00:08:08 +00:00
|
|
|
enum mp_on_osd on_osd;
|
2011-07-17 01:47:50 +00:00
|
|
|
struct mp_cmd *queue_next;
|
2002-01-30 12:46:03 +00:00
|
|
|
} mp_cmd_t;
|
|
|
|
|
|
|
|
|
mplayer: turn playtree into a list, and change per-file option handling
Summary:
- There is no playtree anymore. It's reduced to a simple list.
- Options are now always global. You can still have per-file options,
but these are optional and require special syntax.
- The slave command pt_step has been removed, and playlist_next
and playlist_prev added. (See etc/input.conf changes.)
This is a user visible incompatible change, and will break slave-mode
applications.
- The pt_clear slave command is renamed to playlist_clear.
- Playtree entries could have multiple files. This is not the case
anymore, and playlist entries have always exactly one entry. Whenever
something adds more than one file (like ASX playlists or dvd:// or
dvdnav:// on the command line), all files are added as separate
playlist entries.
Note that some of the changes are quite deep and violent. Expect
regressions.
The playlist parsing code in particular is of low quality. I didn't try
to improve it, and merely spent to least effort necessary to keep it
somehow working. (Especially ASX playlist handling.)
The playtree code was complicated and bloated. It was also barely used.
Most users don't even know that mplayer manages the playlist as tree,
or how to use it. The most obscure features was probably specifying a
tree on command line (with '{' and '}' to create/close tree nodes). It
filled the player code with complexity and confused users with weird
slave commands like pt_up.
Replace the playtree with a simple flat playlist. Playlist parsers that
actually return trees are changed to append all files to the playlist
pre-order.
It used to be the responsibility of the playtree code to change per-file
config options. Now this is done by the player core, and the playlist
code is free of such details.
Options are not per-file by default anymore. This was a very obscure and
complicated feature that confused even experienced users. Consider the
following command line:
mplayer file1.mkv file2.mkv --no-audio file3.mkv
This will disable the audio for file2.mkv only, because options are
per-file by default. To make the option affect all files, you're
supposed to put it before the first file.
This is bad, because normally you don't need per-file options. They are
very rarely needed, and the only reasonable use cases I can imagine are
use of the encode backend (mplayer encode branch), or for debugging. The
normal use case is made harder, and the feature is perceived as bug.
Even worse, correct usage is hard to explain for users.
Make all options global by default. The position of an option isn't
significant anymore (except for options that compensate each other,
consider --shuffle --no-shuffle).
One other important change is that no options are reset anymore if a
new file is started. If you change settings with slave mode commands,
they will not be changed by playing a new file. (Exceptions include
settings that are too file specific, like audio/subtitle stream
selection.)
There is still some need for per-file options. Debugging and encoding
are use cases that profit from per-file options. Per-file profiles (as
well as per-protocol and per-VO/AO options) need the implementation
related mechanisms to backup and restore options when the playback file
changes.
Simplify the save-slot stuff, which is possible because there is no
hierarchical play tree anymore. Now there's a simple backup field.
Add a way to specify per-file options on command line. Example:
mplayer f1.mkv -o0 --{ -o1 f2.mkv -o2 f3.mkv --} f4.mkv -o3
will have the following options per file set:
f1.mkv, f4.mkv: -o0 -o3
f2.mkv, f3.mkv: -o0 -o3 -o1 -o2
The options --{ and --} start and end per-file options. All files inside
the { } will be affected by the options equally (similar to how global
options and multiple files are handled). When playback of a file starts,
the per-file options are set according to the command line. When
playback ends, the per-file options are restored to the values when
playback started.
2012-07-31 19:33:26 +00:00
|
|
|
// Executing this command will abort playback (play something else, or quit).
|
|
|
|
bool mp_input_is_abort_cmd(int cmd_id);
|
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
/* Add a new command input source.
|
|
|
|
* "fd" is a file descriptor (use a negative value if you don't use any fd)
|
|
|
|
* "select" tells whether to use select() on the fd to determine when to
|
|
|
|
* try reading.
|
|
|
|
* "read_func" is optional. If NULL a default function which reads data
|
2011-07-16 15:17:48 +00:00
|
|
|
* directly from the fd will be used. It must return either text data
|
|
|
|
* or one of the MP_INPUT error codes above.
|
|
|
|
* "close_func" will be called when closing. Can be NULL. Its return value
|
|
|
|
* is ignored (it's only there to allow using standard close() as the func).
|
2011-07-16 14:47:02 +00:00
|
|
|
*/
|
2008-04-30 10:14:03 +00:00
|
|
|
int mp_input_add_cmd_fd(struct input_ctx *ictx, int fd, int select,
|
2011-07-16 15:17:48 +00:00
|
|
|
int read_func(int fd, char *dest, int size),
|
|
|
|
int close_func(int fd));
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2003-09-14 17:52:59 +00:00
|
|
|
// This removes a cmd driver, you usually don't need to use it.
|
2008-04-30 10:14:03 +00:00
|
|
|
void mp_input_rm_cmd_fd(struct input_ctx *ictx, int fd);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
/* The args are similar to the cmd version above, except you must give
|
2011-07-16 15:17:48 +00:00
|
|
|
* a read_func, and it should return key codes (ASCII plus keycodes.h).
|
2011-07-16 14:47:02 +00:00
|
|
|
*/
|
2008-04-30 08:06:55 +00:00
|
|
|
int mp_input_add_key_fd(struct input_ctx *ictx, int fd, int select,
|
2011-07-16 15:17:48 +00:00
|
|
|
int read_func(void *ctx, int fd),
|
|
|
|
int close_func(int fd), void *ctx);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2011-07-17 01:47:50 +00:00
|
|
|
// Feed a keypress (alternative to being returned from read_func above)
|
|
|
|
void mp_input_feed_key(struct input_ctx *ictx, int code);
|
|
|
|
|
2003-09-14 17:52:59 +00:00
|
|
|
// As for the cmd one you usually don't need this function.
|
2008-04-30 08:06:55 +00:00
|
|
|
void mp_input_rm_key_fd(struct input_ctx *ictx, int fd);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
// Get input key from its name.
|
2007-12-04 10:42:59 +00:00
|
|
|
int mp_input_get_key_from_name(const char *name);
|
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
// Add a command to the command queue.
|
|
|
|
int mp_input_queue_cmd(struct input_ctx *ictx, struct mp_cmd *cmd);
|
2002-02-23 21:13:35 +00:00
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
/* Return next available command, or sleep up to "time" ms if none is
|
|
|
|
* available. If "peek_only" is true return a reference to the command
|
|
|
|
* but leave it queued.
|
|
|
|
*/
|
|
|
|
struct mp_cmd *mp_input_get_cmd(struct input_ctx *ictx, int time,
|
|
|
|
int peek_only);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
/* Parse text and return corresponding struct mp_cmd. */
|
|
|
|
struct mp_cmd *mp_input_parse_cmd(char *str);
|
2002-11-14 23:41:44 +00:00
|
|
|
|
2002-03-19 13:29:28 +00:00
|
|
|
// After getting a command from mp_input_get_cmd you need to free it using this
|
|
|
|
// function
|
2011-07-16 14:47:02 +00:00
|
|
|
void mp_cmd_free(struct mp_cmd *cmd);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2003-09-14 17:52:59 +00:00
|
|
|
// This creates a copy of a command (used by the auto repeat stuff).
|
2011-07-16 14:47:02 +00:00
|
|
|
struct mp_cmd *mp_cmd_clone(struct mp_cmd *cmd);
|
2002-02-11 11:42:08 +00:00
|
|
|
|
2007-06-07 18:06:53 +00:00
|
|
|
// Set current input section
|
2012-08-24 11:29:28 +00:00
|
|
|
// flags is a bitfield of enum mp_input_section_flags values
|
|
|
|
void mp_input_set_section(struct input_ctx *ictx, char *name, int flags);
|
2007-06-07 18:06:53 +00:00
|
|
|
|
|
|
|
// Get current input section
|
2008-04-30 05:56:45 +00:00
|
|
|
char *mp_input_get_section(struct input_ctx *ictx);
|
2007-06-07 18:06:53 +00:00
|
|
|
|
2011-07-16 14:47:02 +00:00
|
|
|
// Initialize the input system
|
2008-04-30 15:57:02 +00:00
|
|
|
struct input_conf;
|
2009-07-07 17:35:54 +00:00
|
|
|
struct input_ctx *mp_input_init(struct input_conf *input_conf);
|
2002-01-30 12:46:03 +00:00
|
|
|
|
2008-04-30 04:15:52 +00:00
|
|
|
void mp_input_uninit(struct input_ctx *ictx);
|
2002-10-23 14:46:20 +00:00
|
|
|
|
2008-08-12 11:22:26 +00:00
|
|
|
struct m_config;
|
|
|
|
void mp_input_register_options(struct m_config *cfg);
|
|
|
|
|
2012-03-25 19:58:48 +00:00
|
|
|
// Wake up sleeping input loop from another thread.
|
|
|
|
void mp_input_wakeup(struct input_ctx *ictx);
|
|
|
|
|
2002-10-23 14:46:20 +00:00
|
|
|
// Interruptible usleep: (used by libmpdemux)
|
2011-07-16 14:47:02 +00:00
|
|
|
int mp_input_check_interrupt(struct input_ctx *ictx, int time);
|
2002-10-23 14:46:20 +00:00
|
|
|
|
2008-01-08 21:40:44 +00:00
|
|
|
extern int async_quit_request;
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_INPUT_H */
|