diff options
Diffstat (limited to 'mpris-plugin/qmpmpris.hpp')
-rw-r--r-- | mpris-plugin/qmpmpris.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
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 |