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.hpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/sample-plugin/sampleplugin.hpp b/sample-plugin/sampleplugin.hpp
index ffb3d77..7c981c1 100644
--- a/sample-plugin/sampleplugin.hpp
+++ b/sample-plugin/sampleplugin.hpp
@@ -3,24 +3,28 @@
#include "../include/qmpcorepublic.hpp"
-class qmpSamplePlugin:public qmpPluginIntf
+class qmpSamplePlugin: public qmpPluginIntf
{
- private:
- qmpPluginAPI* api;
- public:
- qmpSamplePlugin(qmpPluginAPI* _api);
- ~qmpSamplePlugin();
- void init();
- void deinit();
- const char* pluginGetName();
- const char* pluginGetVersion();
+private:
+ qmpPluginAPI *api;
+public:
+ qmpSamplePlugin(qmpPluginAPI *_api);
+ ~qmpSamplePlugin();
+ void init();
+ void deinit();
+ const char *pluginGetName();
+ const char *pluginGetVersion();
};
-extern "C"{
- EXPORTSYM qmpPluginIntf* qmpPluginGetInterface(qmpPluginAPI* api)
- {return new qmpSamplePlugin(api);}
- EXPORTSYM const char* qmpPluginGetAPIRev()
- {return QMP_PLUGIN_API_REV;}
+extern "C" {
+ EXPORTSYM qmpPluginIntf *qmpPluginGetInterface(qmpPluginAPI *api)
+ {
+ return new qmpSamplePlugin(api);
+ }
+ EXPORTSYM const char *qmpPluginGetAPIRev()
+ {
+ return QMP_PLUGIN_API_REV;
+ }
}
#endif // SAMPLEPLUGIN_H