summaryrefslogtreecommitdiff
path: root/client/osc.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-13 00:52:54 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-13 00:52:54 +0200
commitfe2f19dcba0002d8eeaf8d05ce544a659308422c (patch)
tree6afd0b824e91b43bdadd7714f68b083a2c377510 /client/osc.h
parentadded inital osc support (diff)
sending switching commands over osc works now...ansers to be done.
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