diff options
author | cbdev <cb@cbcdn.com> | 2017-06-04 18:13:29 +0200 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2017-06-04 18:13:29 +0200 |
commit | 11e9dec049e64989c5f3656415d00c6c69851e8e (patch) | |
tree | f087aa41ead18a8b09657fd400bd8b20df80b13f /midimonster.h | |
parent | bae15293ddc859a1ea426f15e7fa476f71ece020 (diff) | |
download | midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.gz midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.tar.bz2 midimonster-11e9dec049e64989c5f3656415d00c6c69851e8e.zip |
Move instance allocator to backend object, introduce backend start function
Diffstat (limited to 'midimonster.h')
-rw-r--r-- | midimonster.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/midimonster.h b/midimonster.h index f15d39c..9026222 100644 --- a/midimonster.h +++ b/midimonster.h @@ -34,19 +34,20 @@ typedef struct /*_mm_backend*/ { mmbackend_parse_channel channel; mmbackend_handle_event handle; mmbackend_process_fd process; + mmbackend_start start; mmbackend_shutdown shutdown; } backend; typedef struct _backend_instance { backend* backend; - size_t ident; + uint64_t ident; /*FIXME needed? identification provided by name*/ void* impl; char* name; } instance; typedef struct _backend_channel { instance* instance; - size_t ident; + uint64_t ident; void* impl; } channel; |