Browse Source

Add bridge opcode for reloading plugin info

Signed-off-by: falkTX <falktx@falktx.com>
pull/1780/head
falkTX 1 year ago
parent
commit
e7b49ee3d0
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 9 additions and 1 deletions
  1. +5
    -1
      source/backend/engine/CarlaEngineBridge.cpp
  2. +2
    -0
      source/utils/CarlaBridgeDefines.hpp
  3. +2
    -0
      source/utils/CarlaBridgeUtils.hpp

+ 5
- 1
source/backend/engine/CarlaEngineBridge.cpp View File

@@ -377,7 +377,7 @@ public:
return;
}

const bool wasFirstIdle(fFirstIdle);
const bool wasFirstIdle = fFirstIdle;

if (wasFirstIdle)
{
@@ -1267,6 +1267,10 @@ public:
signalThreadShouldExit();
callback(true, true, ENGINE_CALLBACK_QUIT, 0, 0, 0, 0, 0.0f, nullptr);
break;

case kPluginBridgeNonRtClientReload:
fFirstIdle = true;
break;
}
}
}


+ 2
- 0
source/utils/CarlaBridgeDefines.hpp View File

@@ -89,6 +89,8 @@ enum PluginBridgeNonRtClientOpcode {
kPluginBridgeNonRtClientSetWindowTitle, // uint/size, str[]
// stuff added in API 9
kPluginBridgeNonRtClientEmbedUI, // ulong
// stuff added in API 10
kPluginBridgeNonRtClientReload,
};

// Client sends these to server during non-RT


+ 2
- 0
source/utils/CarlaBridgeUtils.hpp View File

@@ -129,6 +129,8 @@ const char* PluginBridgeNonRtClientOpcode2str(const PluginBridgeNonRtClientOpcod
return "kPluginBridgeNonRtClientSetWindowTitle";
case kPluginBridgeNonRtClientEmbedUI:
return "kPluginBridgeNonRtClientEmbedUI";
case kPluginBridgeNonRtClientReload:
return "kPluginBridgeNonRtClientReload";
}

carla_stderr("CarlaBackend::PluginBridgeNonRtClientOpcode2str(%i) - invalid opcode", opcode);


Loading…
Cancel
Save