Browse Source

Pass plugin-bridge process Id to window transient matching

tags/1.9.6
falkTX 10 years ago
parent
commit
47475d66d6
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      source/backend/plugin/CarlaPluginBridge.cpp

+ 14
- 0
source/backend/plugin/CarlaPluginBridge.cpp View File

@@ -496,6 +496,13 @@ public:
fLabel = "\"\""; fLabel = "\"\"";
} }


uintptr_t getProcessPID() const noexcept
{
CARLA_SAFE_ASSERT_RETURN(fProcess != nullptr, 0);

return (uintptr_t)fProcess->getPID();
}

protected: protected:
void run() void run()
{ {
@@ -2262,11 +2269,18 @@ public:


// ------------------------------------------------------------------- // -------------------------------------------------------------------


uintptr_t getUiBridgeProcessId() const noexcept override
{
return fBridgeThread.getProcessPID();
}

const void* getExtraStuff() const noexcept override const void* getExtraStuff() const noexcept override
{ {
return fBridgeBinary.isNotEmpty() ? fBridgeBinary.buffer() : nullptr; return fBridgeBinary.isNotEmpty() ? fBridgeBinary.buffer() : nullptr;
} }


// -------------------------------------------------------------------

bool init(const char* const filename, const char* const name, const char* const label, const char* const bridgeBinary) bool init(const char* const filename, const char* const name, const char* const label, const char* const bridgeBinary)
{ {
CARLA_SAFE_ASSERT_RETURN(pData->engine != nullptr, false); CARLA_SAFE_ASSERT_RETURN(pData->engine != nullptr, false);


Loading…
Cancel
Save