diff options
Diffstat (limited to 'src/query.h')
-rw-r--r-- | src/query.h | 30 |
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 |