From 5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 17 Oct 2019 15:47:32 +0200 Subject: Make jalv_update return int This avoids some warnings about conversion between incompatible function pointer types. --- src/jalv.c | 6 +++--- src/jalv_internal.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jalv.c b/src/jalv.c index 1477040..e697785 100644 --- a/src/jalv.c +++ b/src/jalv.c @@ -630,13 +630,13 @@ jalv_run(Jalv* jalv, uint32_t nframes) return send_ui_updates; } -bool +int jalv_update(Jalv* jalv) { /* Check quit flag and close if set. */ if (zix_sem_try_wait(&jalv->done)) { jalv_close_ui(jalv); - return false; + return 0; } /* Emit UI events. */ @@ -674,7 +674,7 @@ jalv_update(Jalv* jalv) } } - return true; + return 1; } static bool diff --git a/src/jalv_internal.h b/src/jalv_internal.h index d0b1875..0fa8bd0 100644 --- a/src/jalv_internal.h +++ b/src/jalv_internal.h @@ -438,7 +438,7 @@ jalv_send_to_ui(Jalv* jalv, bool jalv_run(Jalv* jalv, uint32_t nframes); -bool +int jalv_update(Jalv* jalv); typedef int (*PresetSink)(Jalv* jalv, -- cgit v1.2.1