aboutsummaryrefslogtreecommitdiff
path: root/include/VideoPlayer.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/VideoPlayer.hpp')
-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;