Mercurial > hg > vampy
diff PyExtensionManager.h @ 92:a6718f9fe942
If a module appears to redefine one of our own types, refuse to load it. Also clear out the class dict for all refused modules now, so that we don't get stale names on the next scan due to not having cleared the module on unload
author | Chris Cannam |
---|---|
date | Mon, 14 Jan 2019 16:19:44 +0000 |
parents | 5664fe298af2 |
children |
line wrap: on
line diff
--- a/PyExtensionManager.h Mon Jan 14 16:16:43 2019 +0000 +++ b/PyExtensionManager.h Mon Jan 14 16:19:44 2019 +0000 @@ -1,3 +1,4 @@ +/* -*- c-basic-offset: 8 indent-tabs-mode: t -*- */ /* * Vampy : This plugin is a wrapper around the Vamp plugin API. @@ -64,9 +65,9 @@ void setPlugModuleNames(vector<string> pyPlugs); void deleteModuleName(string plugKey); + static const char* m_exposedNames[]; + private: - static const char* m_exposedNames[]; - vector<string> m_plugModuleNames; PyObject* m_pyGlobalNamespace; PyObject* m_pyVampyNamespace;