aboutsummaryrefslogtreecommitdiff
path: root/sample-plugin/sampleplugin.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-19 23:54:42 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-19 23:54:42 +0800
commit78b384662f484e946a6a17c96e6c309df0c039da (patch)
tree70093f05f4e9d02bbc8ddfdd2ddc8bef1cca1751 /sample-plugin/sampleplugin.hpp
parent8ef9703ee2a4b22395935030606fcf69e3acad86 (diff)
downloadQMidiPlayer-78b384662f484e946a6a17c96e6c309df0c039da.tar.xz
Added a sample plugin as a template.
Implemented scanPlugin for Windows.
Diffstat (limited to 'sample-plugin/sampleplugin.hpp')
-rw-r--r--sample-plugin/sampleplugin.hpp24
1 files changed, 24 insertions, 0 deletions
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