From 1ec23952dd7c022e11afbb93d93be1bac5c94081 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 20 May 2016 23:51:15 +0800 Subject: Scale GUI correctly on a high DPI device. Fix building for Windows. RC-bugs still exist. --- include/qmpcorepublic.hpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'include/qmpcorepublic.hpp') 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 //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 -- cgit v1.2.3