diff options
author | David Robillard <d@drobilla.net> | 2019-10-17 15:47:32 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-10-17 15:47:32 +0200 |
commit | 5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c (patch) | |
tree | 88fadcfab577b534c7e07cb7a72ca318e5821150 | |
parent | b4a3042da84420b80db0c81b90cd2df40a18f1c9 (diff) | |
download | jalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.tar.gz jalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.tar.bz2 jalv-5ec4d8591c6a98c9a9a98fb0f884804a9d70fc1c.zip |
Make jalv_update return int
This avoids some warnings about conversion between incompatible function
pointer types.
-rw-r--r-- | src/jalv.c | 6 | ||||
-rw-r--r-- | src/jalv_internal.h | 2 |
2 files changed, 4 insertions, 4 deletions
@@ -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, |