Make internal plugin context use const; Fix host time

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-14 15:45:36 +00:00
parent ec2f455826
commit 1a2c64309b
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
8 changed files with 63 additions and 39 deletions

View file

@ -91,13 +91,13 @@ struct CardinalPluginContext : rack::Context {
}
#ifndef HEADLESS
bool addIdleCallback(IdleCallback* cb);
void removeIdleCallback(IdleCallback* cb);
bool addIdleCallback(IdleCallback* cb) const;
void removeIdleCallback(IdleCallback* cb) const;
#endif
};
#ifndef HEADLESS
void handleHostParameterDrag(CardinalPluginContext* pcontext, uint index, bool started);
void handleHostParameterDrag(const CardinalPluginContext* pcontext, uint index, bool started);
#endif
// -----------------------------------------------------------------------------------------------------------