aboutsummaryrefslogtreecommitdiffstats
path: root/src/frontend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend.h')
-rw-r--r--src/frontend.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/frontend.h b/src/frontend.h
index 774796d..d0c4a76 100644
--- a/src/frontend.h
+++ b/src/frontend.h
@@ -16,9 +16,15 @@ JALV_BEGIN_DECLS
// Interface that must be implemented by UIs
-/// Read command-line arguments and set `opts` accordingly
+/// Command-line arguments passed to an executable
+typedef struct {
+ int* argc; ///< Pointer to `argc` like in `main`
+ char*** argv; ///< Pointer to `argv` like in `main`
+} JalvFrontendArgs;
+
+/// Consume command-line arguments and set `opts` accordingly
int
-jalv_frontend_init(int* argc, char*** argv, JalvOptions* opts);
+jalv_frontend_init(JalvFrontendArgs* args, JalvOptions* opts);
/// Return the URI of the "native" LV2 UI type
const char*