mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 20:40:11 +02:00
Implement yabridge_version for all plugin bridges
The host can use this to query the yabridge version in use.
This commit is contained in:
@@ -54,7 +54,7 @@ const void* (*yabridge_module_get_factory)(ClapPluginBridge* instance,
|
||||
// This bridges the `yabridge_version()` call from the plugin library. This
|
||||
// function was added later, so through weird version mixing it may be missing
|
||||
// on the yabridge library.
|
||||
char* (*remote_yabridge_version)() = nullptr;
|
||||
const char* (*remote_yabridge_version)() = nullptr;
|
||||
|
||||
/**
|
||||
* The bridge instance for this chainloader. This is initialized when
|
||||
@@ -181,7 +181,7 @@ CLAP_EXPORT const clap_plugin_entry_t clap_entry = {
|
||||
* wouldn't be very useful, and that would also cause the chainloader to be
|
||||
* rebuilt on every git commit in development.
|
||||
*/
|
||||
extern "C" YABRIDGE_EXPORT char* yabridge_version() {
|
||||
extern "C" YABRIDGE_EXPORT const char* yabridge_version() {
|
||||
if (!initialize_library() || !remote_yabridge_version) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ AEffect* (*yabridge_plugin_init)(audioMasterCallback host_callback,
|
||||
// This bridges the `yabridge_version()` call from the plugin library. This
|
||||
// function was added later, so through weird version mixing it may be missing
|
||||
// on the yabridge library.
|
||||
char* (*remote_yabridge_version)() = nullptr;
|
||||
const char* (*remote_yabridge_version)() = nullptr;
|
||||
|
||||
/**
|
||||
* The first time one of the exported functions from this library gets called,
|
||||
@@ -127,7 +127,7 @@ YABRIDGE_EXPORT AEffect* deprecated_main(audioMasterCallback audioMaster) {
|
||||
* wouldn't be very useful, and that would also cause the chainloader to be
|
||||
* rebuilt on every git commit in development.
|
||||
*/
|
||||
extern "C" YABRIDGE_EXPORT char* yabridge_version() {
|
||||
extern "C" YABRIDGE_EXPORT const char* yabridge_version() {
|
||||
if (!initialize_library() || !remote_yabridge_version) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ PluginFactory* (*yabridge_module_get_plugin_factory)(
|
||||
// This bridges the `yabridge_version()` call from the plugin library. This
|
||||
// function was added later, so through weird version mixing it may be missing
|
||||
// on the yabridge library.
|
||||
char* (*remote_yabridge_version)() = nullptr;
|
||||
const char* (*remote_yabridge_version)() = nullptr;
|
||||
|
||||
/**
|
||||
* The bridge instance for this chainloader. This is initialized when
|
||||
@@ -164,7 +164,7 @@ extern "C" YABRIDGE_EXPORT PluginFactory* GetPluginFactory() {
|
||||
* wouldn't be very useful, and that would also cause the chainloader to be
|
||||
* rebuilt on every git commit in development.
|
||||
*/
|
||||
extern "C" YABRIDGE_EXPORT char* yabridge_version() {
|
||||
extern "C" YABRIDGE_EXPORT const char* yabridge_version() {
|
||||
if (!initialize_library() || !remote_yabridge_version) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user