From 11e9dec049e64989c5f3656415d00c6c69851e8e Mon Sep 17 00:00:00 2001 From: cbdev Date: Sun, 4 Jun 2017 18:13:29 +0200 Subject: Move instance allocator to backend object, introduce backend start function --- midimonster.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'midimonster.h') 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; -- cgit v1.2.3