1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00
mpv/input
James Ross-Gowan 5bf473d5ca ipc: add Windows implementation with named pipes
This implements the JSON IPC protocol with named pipes, which are
probably the closest Windows equivalent to Unix domain sockets in terms
of functionality. Like with Unix sockets, this will allow mpv to listen
for IPC connections and handle multiple IPC clients at once. A few cross
platform libraries and frameworks (Qt, node.js) use named pipes for IPC
on Windows and Unix sockets on Linux and Unix, so hopefully this will
ease the creation of portable JSON IPC clients.

Unlike the Unix implementation, this doesn't share code with
--input-file, meaning --input-file on Windows won't understand JSON
commands (yet.) Sharing code and removing the separate implementation in
pipe-win32.c is definitely a possible future improvement.
2016-03-23 23:15:20 +11:00
..
cmd_list.c command: add af-command command 2016-01-22 20:36:54 +01:00
cmd_list.h command: add af-command command 2016-01-22 20:36:54 +01:00
cmd_parse.c input: add key name to script-binding command response 2015-12-23 19:10:48 +01:00
cmd_parse.h Update license headers 2015-04-13 12:10:01 +02:00
event.c input: accept plain text for drag&drop 2016-03-15 22:43:06 +01:00
event.h input/event.h: add include guard 2016-03-15 22:44:15 +01:00
input.c input: ignore --input-cursor for events injected by input commands 2016-02-04 23:01:15 +01:00
input.h ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
ipc-unix.c ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
ipc-win.c ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
ipc.c ipc: add Windows implementation with named pipes 2016-03-23 23:15:20 +11:00
keycodes.c input: add a catch-all "unmapped" command 2015-12-23 19:13:45 +01:00
keycodes.h input: add a catch-all "unmapped" command 2015-12-23 19:13:45 +01:00
pipe-win32.c win32: input: use Vista CancelIoEx 2015-12-20 21:06:02 +11:00