summaryrefslogtreecommitdiff
path: root/apps/mixer.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-10-12 00:46:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-10-12 00:46:05 +0200
commitbd693e60ddbaadde95bbc430c837e2632622868c (patch)
treea9a606a6b4e98b10824a0b2d8b1147346d0d81cf /apps/mixer.h
parentreading of mixer commands works now (diff)
refactored mixer variable name
Diffstat (limited to 'apps/mixer.h')
-rw-r--r--apps/mixer.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/apps/mixer.h b/apps/mixer.h
index 1e22391..f041da5 100644
--- a/apps/mixer.h
+++ b/apps/mixer.h
@@ -28,25 +28,30 @@
#include "slist.h"
-typedef struct {
- u_int8_t code_[3];
-} midi_cmd_t;
+typedef u_int8_t midi_cmd_t[3];
typedef struct {
char* name_;
slist_t cmds_;
} lang_t;
+// typedef struct {
+// u_int8_t* buf_;
+// (*done_cb)(void*);
+// void* done_data;
+// } task_t;
+
typedef struct {
const char* name_;
snd_rawmidi_t* output_;
slist_t langs_;
+// slist_t tasks_;
} mixer_t;
-int mixer_init(mixer_t* m, const char* name, const char* device);
-void mixer_print_langs(mixer_t* m);
-int mixer_get_poll_fd_count(mixer_t* m);
-int mixer_get_poll_fds(mixer_t* m, struct pollfd *pfds, int npfds);
-int mixer_handle_revents(mixer_t* m, struct pollfd *pfds, int npfds);
+int mixer_init(mixer_t* x, const char* name, const char* device);
+void mixer_print_langs(mixer_t* x);
+int mixer_get_poll_fd_count(mixer_t* x);
+int mixer_get_poll_fds(mixer_t* x, struct pollfd *pfds, int npfds);
+int mixer_handle_revents(mixer_t* x, struct pollfd *pfds, int npfds);
#endif