From 8c32598449895e506b4d0eab71be0abf219a62da Mon Sep 17 00:00:00 2001 From: cbdev Date: Mon, 13 Jan 2020 22:49:33 +0100 Subject: Hide core-internal structures --- midimonster.c | 7 +++++++ midimonster.h | 9 +-------- 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. */ -- cgit v1.2.3