aboutsummaryrefslogblamecommitdiff
path: root/mpris-plugin/qmpmpris.hpp
blob: 85305624e5079b5f9581823b21163c2d1c96ffe8 (plain) (tree)
1
2
3
4


                    
                            



























                                                                     
#ifndef QMPMPRIS_HPP
#define QMPMPRIS_HPP

#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