diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-19 23:54:42 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-19 23:54:42 +0800 |
commit | 78b384662f484e946a6a17c96e6c309df0c039da (patch) | |
tree | 70093f05f4e9d02bbc8ddfdd2ddc8bef1cca1751 /sample-plugin/sampleplugin.cpp | |
parent | 8ef9703ee2a4b22395935030606fcf69e3acad86 (diff) | |
download | QMidiPlayer-78b384662f484e946a6a17c96e6c309df0c039da.tar.xz |
Added a sample plugin as a template.
Implemented scanPlugin for Windows.
Diffstat (limited to 'sample-plugin/sampleplugin.cpp')
-rw-r--r-- | sample-plugin/sampleplugin.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sample-plugin/sampleplugin.cpp b/sample-plugin/sampleplugin.cpp new file mode 100644 index 0000000..64e5584 --- /dev/null +++ b/sample-plugin/sampleplugin.cpp @@ -0,0 +1,11 @@ +#include <cstdio> +#include "sampleplugin.hpp" + +qmpSamplePlugin::qmpSamplePlugin(qmpPluginAPI* _api){api=_api;} +qmpSamplePlugin::~qmpSamplePlugin(){api=NULL;} +void qmpSamplePlugin::init() +{fputs("Hello world from plugin init!\n",stderr);} +void qmpSamplePlugin::deinit() +{fputs("Bye!\n",stderr);} +const char* qmpSamplePlugin::pluginGetName(){return "QMidiPlayer Sample Plugin";} +const char* qmpSamplePlugin::pluginGetVersion(){return "0.0.0";} |