summaryrefslogtreecommitdiff
path: root/client/osc.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/osc.h')
-rw-r--r--client/osc.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/osc.h b/client/osc.h
index f6ac83d..a5b6454 100644
--- a/client/osc.h
+++ b/client/osc.h
@@ -27,7 +27,6 @@
#include <poll.h>
#include "slist.h"
-//#include "midi.h"
typedef struct {
lo_server server_;
@@ -36,17 +35,16 @@ typedef struct {
} osc_t;
typedef struct {
- osc_t* self_;
int state_;
char* lang_;
- lo_address addr_;
- lo_message msg_;
-} osc_task_t;
+ 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_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, midi_t* m);
int osc_handle_revents(osc_t* o, struct pollfd *pfds, int npfds);
#endif