From a7407edaf81c685d4a389785a405a53a5de4b148 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 12 May 2020 00:58:40 +0800 Subject: Format EVERYTHING. Hopefully this will make the source code less horrendous and actually readable. The command used was: ``` astyle --suffix=none --style=allman --attach-extern-c --attach-closing-while --indent-switches --indent-after-parens --pad-oper --pad-header --unpad-paren --align-pointer=name --recursive './*.cpp,*.hpp' ``` --- sample-plugin/sampleplugin.hpp | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'sample-plugin/sampleplugin.hpp') 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 -- cgit v1.2.3