From 39a339c813ee3bb7f8e1f65dcf325e7f0db110a2 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 26 May 2015 22:00:25 +0200 Subject: 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. --- input/input.h | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'input/input.h') 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); -- cgit v1.2.3