diff options
author | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 07:56:56 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2015-10-10 07:56:56 +0200 |
commit | 57fc2e284684aab5b6bb3b56d0035fda4b1e63b3 (patch) | |
tree | 7b42397793ca55ccbcac47ee7188d5d9a6ccd396 /apps/osc.h | |
parent | midi is back from threded to async io (diff) |
got rid of threads entirely
Diffstat (limited to 'apps/osc.h')
-rw-r--r-- | apps/osc.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |