From 2920fd5f170179e4e1a880856068d3d8b5f0f420 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 May 2022 19:47:52 -0400 Subject: Move JalvWorker definition to worker.h --- src/jalv_internal.h | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/jalv_internal.h') diff --git a/src/jalv_internal.h b/src/jalv_internal.h index 11bf05e..f07241b 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -10,10 +10,10 @@ #include "options.h" #include "symap.h" #include "urids.h" +#include "worker.h" #include "zix/ring.h" #include "zix/sem.h" -#include "zix/thread.h" #include "lilv/lilv.h" #include "serd/serd.h" @@ -54,19 +54,6 @@ typedef struct Jalv Jalv; typedef enum { JALV_RUNNING, JALV_PAUSE_REQUESTED, JALV_PAUSED } JalvPlayState; -typedef struct { - ZixRing* requests; ///< Requests to the worker - ZixRing* responses; ///< Responses from the worker - void* response; ///< Worker response buffer - ZixSem* lock; ///< Lock for plugin work() method - bool* exit; ///< Pointer to exit flag - ZixSem sem; ///< Worker semaphore - ZixThread thread; ///< Worker thread - LV2_Handle handle; ///< Plugin handle - const LV2_Worker_Interface* iface; ///< Plugin worker interface - bool threaded; ///< Run work in another thread -} JalvWorker; - typedef struct { LV2_Feature map_feature; LV2_Feature unmap_feature; -- cgit v1.2.1