@@ -25,59 +25,59 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
2525#include " PythonProcessor.h"
2626#include < string>
2727
28- #ifdef WIN32
28+ #ifdef _WIN32
2929#include < Windows.h>
30- #define EXPORT __declspec (dllexport)
30+ #define EXPORT __declspec (dllexport)
3131#else
32- #define EXPORT __attribute__ ((visibility(" default" )))
32+ #define EXPORT __attribute__ ((visibility (" default" )))
3333#endif
3434
3535using namespace Plugin ;
3636
3737#define NUM_PLUGINS 1
3838
39- extern " C" EXPORT void getLibInfo (Plugin::LibraryInfo* info)
39+ extern " C" EXPORT void getLibInfo (Plugin::LibraryInfo* info)
4040{
41- /* API version, defined by the GUI source.
41+ /* API version, defined by the GUI source.
4242 Should not be changed to ensure it is always equal to the one used in the latest codebase.
4343 The GUI refueses to load plugins with mismatched API versions */
44- info->apiVersion = PLUGIN_API_VER;
45- info->name = " Python Processor" ; // <---- update
46- info->libVersion = " 0.1.0" ; // <---- update
47- info->numPlugins = NUM_PLUGINS;
44+ info->apiVersion = PLUGIN_API_VER;
45+ info->name = " Python Processor" ; // <---- update
46+ info->libVersion = " 0.1.0" ; // <---- update
47+ info->numPlugins = NUM_PLUGINS;
4848}
4949
50- extern " C" EXPORT int getPluginInfo (int index, Plugin::PluginInfo* info)
50+ extern " C" EXPORT int getPluginInfo (int index, Plugin::PluginInfo* info)
5151{
52- switch (index)
53- {
54- // one case per plugin. This example is for a processor which connects directly to the signal chain
55- case 0 :
56- // Type of plugin. See "Source/Processors/PluginManager/OpenEphysPlugin.h" for complete info about the different type structures
57- info->type = Plugin::Type::PROCESSOR;
58-
59- // Processor name
60- info->processor .name = " Python Processor" ; // Processor name shown in the GUI
61-
62- // Type of processor. Can be FILTER, SOURCE, SINK or UTILITY. Specifies where on the processor list will appear
63- info->processor .type = Processor::Type::FILTER;
64-
65- // Class factory pointer. Replace "ProcessorPluginSpace::ProcessorPlugin" with the namespace and class name.
66- info->processor .creator = &(Plugin::createProcessor<PythonProcessor>);
67- break ;
68- default :
69- return -1 ;
70- break ;
71- }
72- return 0 ;
52+ switch (index)
53+ {
54+ // one case per plugin. This example is for a processor which connects directly to the signal chain
55+ case 0 :
56+ // Type of plugin. See "Source/Processors/PluginManager/OpenEphysPlugin.h" for complete info about the different type structures
57+ info->type = Plugin::Type::PROCESSOR;
58+
59+ // Processor name
60+ info->processor .name = " Python Processor" ; // Processor name shown in the GUI
61+
62+ // Type of processor. Can be FILTER, SOURCE, SINK or UTILITY. Specifies where on the processor list will appear
63+ info->processor .type = Processor::Type::FILTER;
64+
65+ // Class factory pointer. Replace "ProcessorPluginSpace::ProcessorPlugin" with the namespace and class name.
66+ info->processor .creator = &(Plugin::createProcessor<PythonProcessor>);
67+ break ;
68+ default :
69+ return -1 ;
70+ break ;
71+ }
72+ return 0 ;
7373}
7474
7575#ifdef WIN32
76- BOOL WINAPI DllMain (IN HINSTANCE hDllHandle,
77- IN DWORD nReason,
78- IN LPVOID Reserved)
76+ BOOL WINAPI DllMain (IN HINSTANCE hDllHandle,
77+ IN DWORD nReason,
78+ IN LPVOID Reserved)
7979{
80- return TRUE ;
80+ return TRUE ;
8181}
8282
8383#endif
0 commit comments