aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2020-01-13 22:49:33 +0100
committercbdev <cb@cbcdn.com>2020-01-13 22:49:33 +0100
commit8c32598449895e506b4d0eab71be0abf219a62da (patch)
tree67c7ce141f8f8fc64d4c4d279d53c7c5eb16a553
parent78b21a9ac3f975f35ec7b61108531e1495eb91c0 (diff)
downloadmidimonster-8c32598449895e506b4d0eab71be0abf219a62da.tar.gz
midimonster-8c32598449895e506b4d0eab71be0abf219a62da.tar.bz2
midimonster-8c32598449895e506b4d0eab71be0abf219a62da.zip
Hide core-internal structures
-rw-r--r--midimonster.c7
-rw-r--r--midimonster.h9
2 files changed, 8 insertions, 8 deletions
diff --git a/midimonster.c b/midimonster.c
index b6f7758..d9a99d9 100644
--- a/midimonster.c
+++ b/midimonster.c
@@ -14,6 +14,7 @@
#include "backend.h"
#include "plugin.h"
+/* Core-internal structures */
typedef struct /*_event_collection*/ {
size_t alloc;
size_t n;
@@ -21,6 +22,12 @@ typedef struct /*_event_collection*/ {
channel_value* value;
} event_collection;
+typedef struct /*_mm_channel_mapping*/ {
+ channel* from;
+ size_t destinations;
+ channel** to;
+} channel_mapping;
+
static size_t mappings = 0;
static channel_mapping* map = NULL;
static size_t fds = 0;
diff --git a/midimonster.h b/midimonster.h
index bb1eb24..2c29956 100644
--- a/midimonster.h
+++ b/midimonster.h
@@ -202,7 +202,7 @@ typedef struct _backend_channel {
} channel;
/*
- * File descriptor management structure
+ * File descriptor structure passed for backend handling
* Register for the core event loop using mm_manage_fd()
*/
typedef struct _managed_fd {
@@ -211,13 +211,6 @@ typedef struct _managed_fd {
void* impl;
} managed_fd;
-/* Internal channel mapping structure - Core use only */
-typedef struct /*_mm_channel_mapping*/ {
- channel* from;
- size_t destinations;
- channel** to;
-} channel_mapping;
-
/*
* Register a new backend.
*/