From 78b384662f484e946a6a17c96e6c309df0c039da Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 19 May 2016 23:54:42 +0800 Subject: Added a sample plugin as a template. Implemented scanPlugin for Windows. --- sample-plugin/sampleplugin.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sample-plugin/sampleplugin.hpp (limited to 'sample-plugin/sampleplugin.hpp') diff --git a/sample-plugin/sampleplugin.hpp b/sample-plugin/sampleplugin.hpp new file mode 100644 index 0000000..75a5dcf --- /dev/null +++ b/sample-plugin/sampleplugin.hpp @@ -0,0 +1,24 @@ +#ifndef SAMPLEPLUGIN_H +#define SAMPLEPLUGIN_H + +#include "../include/qmpcorepublic.hpp" + +class qmpSamplePlugin:public qmpPluginIntf +{ + private: + qmpPluginAPI* api; + public: + qmpSamplePlugin(qmpPluginAPI* _api); + ~qmpSamplePlugin(); + void init(); + void deinit(); + const char* pluginGetName(); + const char* pluginGetVersion(); +}; + +extern "C"{ + qmpPluginIntf* qmpPluginGetInterface(qmpPluginAPI* api) + {return new qmpSamplePlugin(api);} +} + +#endif // SAMPLEPLUGIN_H -- cgit v1.2.3