Ignore:
Timestamp:
Mar 18, 2011, 4:53:58 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

xsystray: Provide function pointer declarations to simplify importing API from the DLL at runtime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/util/qsystemtrayicon_pm.cpp

    r835 r838  
    5151#include "qt_os2.h"
    5252
    53 // for dynamic linking to xsystray DLL
    54 #define xstQuerySysTrayVersion (*_xstQuerySysTrayVersion)
    55 #define xstAddSysTrayIcon (*_xstAddSysTrayIcon)
    56 #define xstReplaceSysTrayIcon (*_xstReplaceSysTrayIcon)
    57 #define xstRemoveSysTrayIcon (*_xstRemoveSysTrayIcon)
    58 #define xstSetSysTrayIconToolTip (*_xstSetSysTrayIconToolTip)
    59 #define xstQuerySysTrayIconRect (*_xstQuerySysTrayIconRect)
    60 #define xstGetSysTrayCreatedMsgId (*_xstGetSysTrayCreatedMsgId)
    61 #define xstGetSysTrayMaxTextLen (*_xstGetSysTrayMaxTextLen)
    62 
     53// declare function pointers for dynamic linking to xsystray DLL
     54#define XSTAPI_FPTRS_STATIC
    6355#include "xsystray.h"
    6456
     
    325317        QLibrary xsystray(QLatin1String("xsystray"));
    326318
    327         #define R(f) if ((*((void **)&_##f) = xsystray.resolve(#f)) == NULL) return false
     319        #define R(f) if ((*((void **)&f) = xsystray.resolve(#f)) == NULL) return false
    328320
    329321        R(xstQuerySysTrayVersion);
     
    333325        R(xstSetSysTrayIconToolTip);
    334326        R(xstQuerySysTrayIconRect);
     327
     328
    335329        R(xstGetSysTrayCreatedMsgId);
    336330        R(xstGetSysTrayMaxTextLen);
Note: See TracChangeset for help on using the changeset viewer.