summaryrefslogtreecommitdiff
path: root/client/osc.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/osc.h')
-rw-r--r--client/osc.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/client/osc.h b/client/osc.h
index a5b6454..9d1ad94 100644
--- a/client/osc.h
+++ b/client/osc.h
@@ -26,23 +26,14 @@
#include "lo/lo.h"
#include <poll.h>
-#include "slist.h"
-
typedef struct {
lo_server server_;
lo_address target_;
- slist_t tasks_;
+ void* m_; // forward declarations of typedes are not possible -- this is a HACK! FIXME!!!
} osc_t;
-typedef struct {
- int state_;
- char* lang_;
- void (*done_cb_)(void*);
- void* done_data_;
-} task_t;
-
-int osc_init(osc_t* o, const char* host, const char* port);
-int osc_switch_lang(osc_t* o, const char* lang, void (*done_cb)(void*), void* done_data);
+int osc_init(osc_t* o, void* m, const char* host, const char* port);
+int osc_switch_lang(osc_t* o, const char* lang);
int osc_get_poll_fd_count(osc_t* o);
int osc_get_poll_fds(osc_t* o, struct pollfd *pfds, int npfds);
int osc_handle_revents(osc_t* o, struct pollfd *pfds, int npfds);