mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-02 13:35:33 +00:00
Added a C-style interface header and wrapper for projectM.
This will make it easier to integrate projectM into C applications and also removes potential issues of STL/C++ version differences between host and library. Changed visibility of all symbols except the C API to "hidden". This effectively prevents the C++ API from being used in the shared library. Added an option "ENABLE_CXX_INTERFACE" to re-enable the old export behaviour, displaying a prominent author warning after configuring the build if enabled.
This commit is contained in:
@ -157,7 +157,7 @@ const std::vector<std::string> &PresetLoader::getPresetNames() const
|
||||
}
|
||||
|
||||
// Get the preset index given a name
|
||||
const unsigned int PresetLoader::getPresetIndex(std::string &name) const
|
||||
unsigned int PresetLoader::getPresetIndex(const std::string& name) const
|
||||
{
|
||||
return find(_presetNames.begin(), _presetNames.end(), name) - _presetNames.begin();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user