diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-24 23:47:04 +0800 |
commit | 800a0417e9ed175f220c472842a283202c77060b (patch) | |
tree | 6609fcccf55d176d8eb61aa69526a19ba1859487 /include | |
parent | aa8af83ff8889aa136e9152b2cca9a88d99c5f47 (diff) | |
download | QMidiPlayer-800a0417e9ed175f220c472842a283202c77060b.tar.xz |
Problematic commit...
Diffstat (limited to 'include')
-rw-r--r-- | include/qmpcorepublic.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index 7348beb..ad6a165 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -17,10 +17,11 @@ class IMidiCallBack class qmpPluginIntf { public: - virtual void init(); - virtual void deinit(); - virtual const char* pluginGetName(); - virtual const char* pluginGetVersion(); + virtual ~qmpPluginIntf(){} + virtual void init(){} + virtual void deinit(){} + virtual const char* pluginGetName(){return "";} + virtual const char* pluginGetVersion(){return "";} }; class qmpVisualizationIntf { @@ -28,6 +29,7 @@ class qmpVisualizationIntf virtual void show(); virtual void close(); }; +extern "C"{ class qmpPluginAPI { public: @@ -35,15 +37,15 @@ class qmpPluginAPI uint32_t getRawTempo(); double getRealTempo(); uint32_t getTimeSig(); - uint32_t getKeySig(); + int getKeySig(); uint32_t getNoteCount(); uint32_t getCurrentPolyphone(); uint32_t getMaxPolyphone(); uint32_t getCurrentTimeStamp(); int registerVisualizationIntf(qmpVisualizationIntf* i); void unregisterVisualizationIntf(int intfhandle); - int registerEventReadHandlerIntf(IMidiCallBack* cb,void* userdata); - void unregisterEventReadHandlerIntf(IMidiCallBack* cb,void* userdata); + int registerEventReaderIntf(IMidiCallBack* cb,void* userdata); + void unregisterEventReaderIntf(int intfhandle); int registerEventHandlerIntf(IMidiCallBack* cb,void* userdata); void unregisterEventHandlerIntf(int intfhandle); void registerOptionInt(std::string desc,std::string key,int defaultval); @@ -53,5 +55,6 @@ class qmpPluginAPI void registerOptionString(std::string desc,std::string key,std::string defaultval); std::string getOptionString(std::string key); }; +} typedef qmpPluginIntf*(*qmpPluginEntry)(qmpPluginAPI*); #endif // QMPCOREPUBLIC_H |