aboutsummaryrefslogblamecommitdiff
path: root/sample-plugin/sampleplugin.cpp
blob: 6ca9b3e07d5d20af52b59e1122503298dd37aac7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                           







                                                    
                            


                                                     
                              










                                               
#include <cstdio>
#include "sampleplugin.hpp"

qmpSamplePlugin::qmpSamplePlugin(qmpPluginAPI *_api)
{
    api = _api;
}
qmpSamplePlugin::~qmpSamplePlugin()
{
    api = nullptr;
}
void qmpSamplePlugin::init()
{
    fputs("Hello world from plugin init!\n", stderr);
}
void qmpSamplePlugin::deinit()
{
    fputs("Bye!\n", stderr);
}
const char *qmpSamplePlugin::pluginGetName()
{
    return "QMidiPlayer Sample Plugin";
}
const char *qmpSamplePlugin::pluginGetVersion()
{
    return "0.0.0";
}