summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorJames Ross-Gowan <rossymiles@gmail.com>2014-11-18 13:18:22 +1100
committerwm4 <wm4@nowhere>2014-11-18 13:34:00 +0100
commit9e77ba8003240f69ac95f0cad16ea0d424c46c18 (patch)
tree51a751c1054b93865292e4b3408ff74514aad94e /stream/stream.h
parent67132750a65946a936b0f8fea2099d0a9f7ca889 (diff)
downloadmpv-9e77ba8003240f69ac95f0cad16ea0d424c46c18.tar.bz2
mpv-9e77ba8003240f69ac95f0cad16ea0d424c46c18.tar.xz
stream: signal a Windows event object on cancel
This will be used in the following commit to cancel subprocesses started by Lua.
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index 5cf3487462..e017eef1fd 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -264,7 +264,11 @@ struct mp_cancel *mp_cancel_new(void *talloc_ctx);
void mp_cancel_trigger(struct mp_cancel *c);
bool mp_cancel_test(struct mp_cancel *c);
void mp_cancel_reset(struct mp_cancel *c);
+#ifdef __MINGW32__
+void *mp_cancel_get_event(struct mp_cancel *c);
+#else
int mp_cancel_get_fd(struct mp_cancel *c);
+#endif
// stream_file.c
char *mp_file_url_to_filename(void *talloc_ctx, bstr url);