version 1.6 | | version 1.7 |
---|
| | |
#include <dlfcn.h> | | #include <dlfcn.h> |
#endif | | #endif |
| | |
| | #undef MODULEAPI |
| | #ifdef WIN32 |
| | #ifdef PYTHON_PLUGIN_EXPORTS |
| | #define MODULEAPI __declspec(dllexport) |
| | #else |
| | #define MODULEAPI __declspec(dllimport) |
| | #endif |
| | #else |
| | #define MODULEAPI |
| | #endif |
| | |
#include <version.h> | | #include <version.h> |
#include <global.h> | | #include <global.h> |
#include <object.h> | | #include <object.h> |
| | |
/* registerHook is used to transmit hook pointers from server to plugin.*/ | | /* registerHook is used to transmit hook pointers from server to plugin.*/ |
/* triggerEvent is called whenever an event occurs. */ | | /* triggerEvent is called whenever an event occurs. */ |
/*****************************************************************************/ | | /*****************************************************************************/ |
extern CFParm* initPlugin(CFParm* PParm); | | extern MODULEAPI CFParm* initPlugin(CFParm* PParm); |
extern CFParm* endPlugin(CFParm* PParm); | | extern MODULEAPI CFParm* endPlugin(CFParm* PParm); |
extern CFParm* getPluginProperty(CFParm* PParm); | | extern MODULEAPI CFParm* getPluginProperty(CFParm* PParm); |
extern CFParm* registerHook(CFParm* PParm); | | extern MODULEAPI CFParm* registerHook(CFParm* PParm); |
extern CFParm* triggerEvent(CFParm* PParm); | | extern MODULEAPI CFParm* triggerEvent(CFParm* PParm); |
| | |
| | |
/* Table of all loaded plugins */ | | /* Table of all loaded plugins */ |