diff options
Diffstat (limited to 'src/port.h')
-rw-r--r-- | src/port.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/port.h b/src/port.h new file mode 100644 index 0000000..3737001 --- /dev/null +++ b/src/port.h @@ -0,0 +1,27 @@ +// Copyright 2007-2022 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +#ifndef JALV_PORT_H +#define JALV_PORT_H + +#include "attributes.h" +#include "types.h" + +#include <lilv/lilv.h> + +#include <stdint.h> + +// Application port state +JALV_BEGIN_DECLS + +typedef struct { + const LilvPort* lilv_port; ///< LV2 port + PortType type; ///< Data type + PortFlow flow; ///< Data flow direction + void* widget; ///< Control widget, if applicable + uint32_t index; ///< Port index +} JalvPort; + +JALV_END_DECLS + +#endif // JALV_PORT_H |