aboutsummaryrefslogtreecommitdiff
path: root/sample-plugin/sampleplugin.hpp
diff options
context:
space:
mode:
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