forked from bmsousa91/RippleDetector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOpenEphysLib.cpp
45 lines (40 loc) · 941 Bytes
/
OpenEphysLib.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#include <PluginInfo.h>
#include <string>
#include "RippleDetector.h"
#ifdef WIN32
#include <Windows.h>
#define EXPORT __declspec(dllexport)
#else
#define EXPORT __attribute__((visibility("default")))
#endif
extern "C" EXPORT void getLibInfo(Plugin::LibraryInfo *info)
{
info->apiVersion = PLUGIN_API_VER;
info->name = "Ripple Detector";
info->libVersion = 1;
info->numPlugins = 1;
}
extern "C" EXPORT int getPluginInfo(int index, Plugin::PluginInfo *info)
{
switch (index)
{
case 0:
info->type = Plugin::PLUGIN_TYPE_PROCESSOR;
info->processor.name = "Ripple Detector";
info->processor.type = Plugin::FilterProcessor;
info->processor.creator = &(Plugin::createProcessor<RippleDetector>);
break;
default:
return -1;
break;
}
return 0;
}
#ifdef WIN32
BOOL WINAPI DllMain(IN HINSTANCE hDllHandle,
IN DWORD nReason,
IN LPVOID Reserved)
{
return TRUE;
}
#endif