summaryrefslogtreecommitdiff
path: root/desktop/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/server.h')
-rw-r--r--desktop/server.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/desktop/server.h b/desktop/server.h
index 1b7af3f..0437d8c 100644
--- a/desktop/server.h
+++ b/desktop/server.h
@@ -3,11 +3,17 @@
#ifndef SERVER_H__
#define SERVER_H__
-enum server_last_cmd_enum {
+typedef enum {
NONE = 0, PLAY, PAUSE, NEXT, PREV
-};
-extern enum server_last_cmd_enum server_last_cmd;
-extern pthread_mutex_t server_last_cmd_mutex;
+} server_command_t;
+
+typedef struct {
+ server_command_t next_command;
+ struct libwebsocket *wsi;
+} server_session_t;
+
+extern server_command_t server_command;
+extern pthread_mutex_t server_command_mutex;
void server_init();