aboutsummaryrefslogtreecommitdiff
path: root/sample-plugin/sampleplugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sample-plugin/sampleplugin.cpp')
-rw-r--r--sample-plugin/sampleplugin.cpp11
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";}