aboutsummaryrefslogtreecommitdiff
path: root/sample-plugin/sampleplugin.hpp
blob: 7c981c1c441dda63dae015eab52e678795fd24b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SAMPLEPLUGIN_H
#define SAMPLEPLUGIN_H

#include "../include/qmpcorepublic.hpp"

class qmpSamplePlugin: public qmpPluginIntf
{
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;
    }
}

#endif // SAMPLEPLUGIN_H