aboutsummaryrefslogtreecommitdiffstats
path: root/src/query.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-17 17:59:48 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:07:21 -0500
commit30ec5250ca9963ecbab37a6103fdbd2ea0fcdc90 (patch)
tree960648ac973fd6f96ab1d53518c0934eae112c4a /src/query.h
parente00df6c4764e2eb0fcef8bbe2b052680cd8fb02a (diff)
downloadjalv-30ec5250ca9963ecbab37a6103fdbd2ea0fcdc90.tar.gz
jalv-30ec5250ca9963ecbab37a6103fdbd2ea0fcdc90.tar.bz2
jalv-30ec5250ca9963ecbab37a6103fdbd2ea0fcdc90.zip
Move general model query functions to a separate file
Diffstat (limited to 'src/query.h')
-rw-r--r--src/query.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/query.h b/src/query.h
new file mode 100644
index 0000000..e39d12e
--- /dev/null
+++ b/src/query.h
@@ -0,0 +1,30 @@
+// Copyright 2012-2024 David Robillard <d@drobilla.net>
+// SPDX-License-Identifier: ISC
+
+#ifndef JALV_MODEL_H
+#define JALV_MODEL_H
+
+#include "attributes.h"
+#include "nodes.h"
+
+#include "lilv/lilv.h"
+
+#include <stdbool.h>
+
+// Lilv query utilities
+JALV_BEGIN_DECLS
+
+/// Return whether a port has a given designation
+bool
+jalv_port_has_designation(const JalvNodes* nodes,
+ const LilvPlugin* plugin,
+ const LilvPort* port,
+ const LilvNode* designation);
+
+/// Return whether a UI is described as resizable
+bool
+jalv_ui_is_resizable(LilvWorld* world, const LilvUI* ui);
+
+JALV_END_DECLS
+
+#endif // JALV_MODEL_H