summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-05-26 22:00:25 +0200
committerwm4 <wm4@nowhere>2015-05-26 22:00:25 +0200
commit39a339c813ee3bb7f8e1f65dcf325e7f0db110a2 (patch)
tree29019398afa88404be4919bfc7917e9007999611 /input/input.h
parent51654d2ad54712599bc6c0b1141e0d0b7a9f6959 (diff)
downloadmpv-39a339c813ee3bb7f8e1f65dcf325e7f0db110a2.tar.bz2
mpv-39a339c813ee3bb7f8e1f65dcf325e7f0db110a2.tar.xz
input: remove some unneeded things
Wakeup FDs are not needed anymore (this code exists only for libwaio usage by now), and 2 other functions can be made private.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/input/input.h b/input/input.h
index d51492d4c7..2b2299d5cc 100644
--- a/input/input.h
+++ b/input/input.h
@@ -106,11 +106,6 @@ struct mp_input_src {
void *priv;
};
-// Add a new input source. The input code can create a new thread, which feeds
-// keys or commands to input_ctx. mp_input_src.uninit must be set.
-// mp_input_src_kill() must not be called by anything after init.
-struct mp_input_src *mp_input_add_src(struct input_ctx *ictx);
-
// Add an input source that runs on a thread. The source is automatically
// removed if the thread loop exits.
// ctx: this is passed to loop_fn.
@@ -129,14 +124,6 @@ int mp_input_add_thread_src(struct input_ctx *ictx, void *ctx,
// Set src->cancel and src->uninit (if needed) before calling this.
void mp_input_src_init_done(struct mp_input_src *src);
-// Currently only with mp_input_add_thread_src().
-int mp_input_src_get_wakeup_fd(struct mp_input_src *src);
-
-// Remove and free the source. You can call this only while the input_ctx
-// exists; otherwise there would be a race condition when another thread
-// destroys input_ctx.
-void mp_input_src_kill(struct mp_input_src *src);
-
// Feed text data, which will be split into lines of commands.
void mp_input_src_feed_cmd_text(struct mp_input_src *src, char *buf, size_t len);