diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-20 23:51:15 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-20 23:51:15 +0800 |
commit | 1ec23952dd7c022e11afbb93d93be1bac5c94081 (patch) | |
tree | c38c321d2374c72f4f607bd3742a59188dae1e60 /include | |
parent | 78b384662f484e946a6a17c96e6c309df0c039da (diff) | |
download | QMidiPlayer-1ec23952dd7c022e11afbb93d93be1bac5c94081.tar.xz |
Scale GUI correctly on a high DPI device.
Fix building for Windows. RC-bugs still exist.
Diffstat (limited to 'include')
-rw-r--r-- | include/qmpcorepublic.hpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index 98b8936..17a3910 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -5,6 +5,11 @@ #include <string> //This struct is used by event reader callbacks and event handler callbacks //as caller data struct +#ifdef _WIN32 +#define EXPORTSYM __declspec(dllexport) +#else +#define EXPORTSYM __attribute__ ((visibility ("default"))) +#endif struct SEventCallBackData { uint32_t time,type,p1,p2; @@ -19,7 +24,7 @@ class IMidiCallBack virtual void callBack(void* callerdata,void* userdata)=0; virtual ~IMidiCallBack(){} }; -//Main plugin interface. +//Main plugin pinterface. class qmpPluginIntf { public: @@ -30,8 +35,8 @@ class qmpPluginIntf virtual const char* pluginGetName(){return "";} virtual const char* pluginGetVersion(){return "";} }; -//Visualization plugin interface. If your plugin implements a visualization, -//you should implement this interface. +//Visualization plugin pinterface. If your plugin implements a visualization, +//you should implement this pinterface. class qmpVisualizationIntf { public: @@ -103,6 +108,6 @@ class qmpPluginAPI //qmpPluginIntf* qmpPluginGetInterface(qmpPluginAPI* api) //as its entry point. A pointer to the core API is also passed to the plugin //through the parameter. This function should return a pointer to a class -//that implementes the plugin interface (qmpPluginIntf). +//that implementes the plugin pinterface (qmpPluginIntf). typedef qmpPluginIntf*(*qmpPluginEntry)(qmpPluginAPI*); #endif // QMPCOREPUBLIC_H |