diff options
author | Robin Gareus <robin@gareus.org> | 2017-09-08 19:26:08 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-09-08 23:35:00 +0200 |
commit | e452ba0fe1f6087c5145625be5a55c2fb60c1f67 (patch) | |
tree | dff29b67067885bcef6f7629b793e1bc8baa89ae /libs/ardour/ardour/lv2_extensions.h | |
parent | 8bc2bf0155740b6f77bbe917285cd13610bdcb81 (diff) |
Add LV2 extension to notify host about midi-bank/pgm state.
Diffstat (limited to 'libs/ardour/ardour/lv2_extensions.h')
-rw-r--r-- | libs/ardour/ardour/lv2_extensions.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/libs/ardour/ardour/lv2_extensions.h b/libs/ardour/ardour/lv2_extensions.h index 26432b54d7..027eb0391b 100644 --- a/libs/ardour/ardour/lv2_extensions.h +++ b/libs/ardour/ardour/lv2_extensions.h @@ -228,4 +228,29 @@ typedef struct { /** @} */ + +/** + @defgroup bankpatch + + @{ +*/ + + +#define LV2_BANKPATCH_URI "http://ardour.org/lv2/bankpatch" +#define LV2_BANKPATCH_PREFIX LV2_BANKPATCH_URI "#" +#define LV2_BANKPATCH__notify LV2_BANKPATCH_PREFIX "notify" + +typedef void* LV2_BankPatch_Handle; + +/** a LV2 Feature provided by the Host to the plugin */ +typedef struct { + /** Opaque host data */ + LV2_BankPatch_Handle handle; + /** Info from plugin's run(), notify host that bank/program changed */ + void (*notify)(LV2_BankPatch_Handle handle, uint8_t channel, uint32_t bank, uint8_t pgm); +} LV2_BankPatch; + +/** + @} +*/ #endif |