wintab32/winex11.drv: Add CDECL to imported functions.

This commit is contained in:
Maarten Lankhorst 2008-12-16 14:30:37 +01:00 committed by Alexandre Julliard
parent bb33b0a21d
commit 569de388fa
3 changed files with 16 additions and 16 deletions

View File

@ -484,7 +484,7 @@ static void disable_system_cursors(void)
/***********************************************************************
* X11DRV_LoadTabletInfo (X11DRV.@)
*/
void X11DRV_LoadTabletInfo(HWND hwnddefault)
void CDECL X11DRV_LoadTabletInfo(HWND hwnddefault)
{
const WCHAR SZ_CONTEXT_NAME[] = {'W','i','n','e',' ','T','a','b','l','e','t',' ','C','o','n','t','e','x','t',0};
const WCHAR SZ_DEVICE_NAME[] = {'W','i','n','e',' ','T','a','b','l','e','t',' ','D','e','v','i','c','e',0};
@ -959,7 +959,7 @@ static void proximity_event( HWND hwnd, XEvent *event )
/***********************************************************************
* X11DRV_AttachEventQueueToTablet (X11DRV.@)
*/
int X11DRV_AttachEventQueueToTablet(HWND hOwner)
int CDECL X11DRV_AttachEventQueueToTablet(HWND hOwner)
{
struct x11drv_thread_data *data = x11drv_init_thread_data();
int num_devices;
@ -1041,7 +1041,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
/***********************************************************************
* X11DRV_GetCurrentPacket (X11DRV.@)
*/
int X11DRV_GetCurrentPacket(LPWTPACKET packet)
int CDECL X11DRV_GetCurrentPacket(LPWTPACKET packet)
{
*packet = gMsgPacket;
return 1;
@ -1062,7 +1062,7 @@ static inline int CopyTabletData(LPVOID target, LPCVOID src, INT size)
/***********************************************************************
* X11DRV_WTInfoW (X11DRV.@)
*/
UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
UINT CDECL X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
{
/*
* It is valid to call WTInfoA with lpOutput == NULL, as per standard.
@ -1488,7 +1488,7 @@ UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
/***********************************************************************
* AttachEventQueueToTablet (X11DRV.@)
*/
int X11DRV_AttachEventQueueToTablet(HWND hOwner)
int CDECL X11DRV_AttachEventQueueToTablet(HWND hOwner)
{
return 0;
}
@ -1496,7 +1496,7 @@ int X11DRV_AttachEventQueueToTablet(HWND hOwner)
/***********************************************************************
* GetCurrentPacket (X11DRV.@)
*/
int X11DRV_GetCurrentPacket(LPWTPACKET packet)
int CDECL X11DRV_GetCurrentPacket(LPWTPACKET packet)
{
return 0;
}
@ -1504,14 +1504,14 @@ int X11DRV_GetCurrentPacket(LPWTPACKET packet)
/***********************************************************************
* LoadTabletInfo (X11DRV.@)
*/
void X11DRV_LoadTabletInfo(HWND hwnddefault)
void CDECL X11DRV_LoadTabletInfo(HWND hwnddefault)
{
}
/***********************************************************************
* WTInfoW (X11DRV.@)
*/
UINT X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
UINT CDECL X11DRV_WTInfoW(UINT wCategory, UINT nIndex, LPVOID lpOutput)
{
return 0;
}

View File

@ -36,10 +36,10 @@ static const WCHAR
WC_TABLETCLASSNAME[] = {'W','i','n','e','T','a','b','l','e','t','C','l','a','s','s',0};
CRITICAL_SECTION csTablet;
int (*pLoadTabletInfo)(HWND hwnddefault) = NULL;
int (*pGetCurrentPacket)(LPWTPACKET packet) = NULL;
int (*pAttachEventQueueToTablet)(HWND hOwner) = NULL;
UINT (*pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput) = NULL;
int (CDECL *pLoadTabletInfo)(HWND hwnddefault) = NULL;
int (CDECL *pGetCurrentPacket)(LPWTPACKET packet) = NULL;
int (CDECL *pAttachEventQueueToTablet)(HWND hOwner) = NULL;
UINT (CDECL *pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput) = NULL;
static LRESULT WINAPI TABLET_WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam,
LPARAM lParam);

View File

@ -151,10 +151,10 @@ int TABLET_PostTabletMessage(LPOPENCONTEXT newcontext, UINT msg, WPARAM wParam,
LPOPENCONTEXT AddPacketToContextQueue(LPWTPACKET packet, HWND hwnd);
/* X11drv functions */
extern int (*pLoadTabletInfo)(HWND hwnddefault);
extern int (*pGetCurrentPacket)(LPWTPACKET packet);
extern int (*pAttachEventQueueToTablet)(HWND hOwner);
extern UINT (*pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput);
extern int (CDECL *pLoadTabletInfo)(HWND hwnddefault);
extern int (CDECL *pGetCurrentPacket)(LPWTPACKET packet);
extern int (CDECL *pAttachEventQueueToTablet)(HWND hOwner);
extern UINT (CDECL *pWTInfoW)(UINT wCategory, UINT nIndex, LPVOID lpOutput);
extern HWND hwndDefault;
extern CRITICAL_SECTION csTablet;