aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend.h')
-rw-r--r--src/frontend.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/frontend.h b/src/frontend.h
index c0aa505..e95fa6d 100644
--- a/src/frontend.h
+++ b/src/frontend.h
@@ -8,13 +8,16 @@
#include "options.h"
#include "types.h"
-#include "lilv/lilv.h"
+#include <lilv/lilv.h>
#include <stdbool.h>
+#include <stdint.h>
+// Interface that must be implemented by UIs
JALV_BEGIN_DECLS
-// Interface that must be implemented by UIs
+/// Arbitrary return code for successful early exit (for --help and so on)
+#define JALV_EARLY_EXIT_STATUS (-431)
/// Command-line arguments passed to an executable
typedef struct {
@@ -54,6 +57,14 @@ jalv_frontend_open(Jalv* jalv);
int
jalv_frontend_close(Jalv* jalv);
+/// Called when a port event (control change or other message) is sent to the UI
+void
+jalv_frontend_port_event(Jalv* jalv,
+ uint32_t port_index,
+ uint32_t buffer_size,
+ uint32_t protocol,
+ const void* buffer);
+
JALV_END_DECLS
#endif // JALV_UI_H