aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-07-06 21:03:52 +0200
committerdec05eba <dec05eba@protonmail.com>2021-07-06 21:03:52 +0200
commita9aec3a88e257794c319d3ee0b7155911bea1d8c (patch)
treed70d85f48a26803ab64cfc817b8fba72e1c24850 /include
parent590aa77583414ffd26e523a3cd1b045a401ad82a (diff)
Revert input-ipc-server->input-ipc-client because mpv version on ubuntu is too old
Diffstat (limited to 'include')
-rw-r--r--include/VideoPlayer.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/VideoPlayer.hpp b/include/VideoPlayer.hpp
index 97e4b61..bdf3344 100644
--- a/include/VideoPlayer.hpp
+++ b/include/VideoPlayer.hpp
@@ -5,6 +5,7 @@
#include <SFML/System/Clock.hpp>
#include <functional>
#include <json/value.h>
+#include <sys/un.h>
#include <X11/Xlib.h>
namespace QuickMedia {
@@ -16,6 +17,7 @@ namespace QuickMedia {
public:
enum class Error {
OK,
+ FAIL_TO_GENERATE_IPC_FILENAME,
FAIL_TO_LAUNCH_PROCESS,
FAIL_TO_CREATE_SOCKET,
FAIL_TO_CONNECT_TIMEOUT,
@@ -65,7 +67,9 @@ namespace QuickMedia {
int connect_tries;
int find_window_tries;
int monitor_height;
- int sockets[2];
+ int ipc_socket = -1;
+ struct sockaddr_un ipc_addr;
+ char ipc_server_path[L_tmpnam];
EventCallbackFunc event_callback;
VideoPlayerWindowCreateCallback window_create_callback;
sf::WindowHandle window_handle;