From 60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 26 Nov 2023 01:10:36 -0500 Subject: The 2 year constipation. (mpris plugin) Probably buggy as hell. --- mpris-plugin/qmpmpris.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 mpris-plugin/qmpmpris.hpp (limited to 'mpris-plugin/qmpmpris.hpp') diff --git a/mpris-plugin/qmpmpris.hpp b/mpris-plugin/qmpmpris.hpp new file mode 100644 index 0000000..fbc8bfa --- /dev/null +++ b/mpris-plugin/qmpmpris.hpp @@ -0,0 +1,32 @@ +#ifndef QMPMPRIS_HPP +#define QMPMPRIS_HPP + +#include "../include/qmpcorepublic.hpp" + +class QMPrisWrapper; +class qmpMPrisPlugin: public qmpPluginIntf +{ +private: + qmpPluginAPI *api; + QMPrisWrapper *mw = nullptr; +public: + qmpMPrisPlugin(qmpPluginAPI *_api); + ~qmpMPrisPlugin(); + void init(); + void deinit(); + const char *pluginGetName(); + const char *pluginGetVersion(); +}; + +extern "C" { + EXPORTSYM qmpPluginIntf *qmpPluginGetInterface(qmpPluginAPI *api) + { + return new qmpMPrisPlugin(api); + } + EXPORTSYM const char *qmpPluginGetAPIRev() + { + return QMP_PLUGIN_API_REV; + } +} + +#endif -- cgit v1.2.3