Mercurial > hg > vampy
comparison 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 |
comparison
equal
deleted
inserted
replaced
91:c4510e5f7a17 | 92:a6718f9fe942 |
---|---|
1 /* -*- c-basic-offset: 8 indent-tabs-mode: t -*- */ | |
1 /* | 2 /* |
2 | 3 |
3 * Vampy : This plugin is a wrapper around the Vamp plugin API. | 4 * Vampy : This plugin is a wrapper around the Vamp plugin API. |
4 * It allows for writing Vamp plugins in Python. | 5 * It allows for writing Vamp plugins in Python. |
5 | 6 |
62 ~PyExtensionManager(); | 63 ~PyExtensionManager(); |
63 bool initExtension(); | 64 bool initExtension(); |
64 void setPlugModuleNames(vector<string> pyPlugs); | 65 void setPlugModuleNames(vector<string> pyPlugs); |
65 void deleteModuleName(string plugKey); | 66 void deleteModuleName(string plugKey); |
66 | 67 |
68 static const char* m_exposedNames[]; | |
69 | |
67 private: | 70 private: |
68 static const char* m_exposedNames[]; | |
69 | |
70 vector<string> m_plugModuleNames; | 71 vector<string> m_plugModuleNames; |
71 PyObject* m_pyGlobalNamespace; | 72 PyObject* m_pyGlobalNamespace; |
72 PyObject* m_pyVampyNamespace; | 73 PyObject* m_pyVampyNamespace; |
73 | 74 |
74 void cleanAllLocals() const; | 75 void cleanAllLocals() const; |