summaryrefslogtreecommitdiff
path: root/apps/osc.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/osc.h')
-rw-r--r--apps/osc.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/osc.h b/apps/osc.h
index 7a03cb7..ddef73e 100644
--- a/apps/osc.h
+++ b/apps/osc.h
@@ -24,13 +24,15 @@
#define DOLMETSCHCTL_osc_h_INCLUDED
#include "lo/lo.h"
+#include <poll.h>
typedef struct {
- lo_server_thread st_;
+ lo_server server_;
} osc_t;
int osc_init(osc_t* o, const char* port);
-int osc_start(osc_t* o);
-int osc_stop(osc_t* o);
+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);
#endif