Skip to content

Commit

Permalink
[WRAPPER] Reworked libX11 with new wrapperhelper
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Sep 20, 2024
1 parent 5abdfd9 commit 6a415b5
Show file tree
Hide file tree
Showing 7 changed files with 563 additions and 432 deletions.
32 changes: 14 additions & 18 deletions src/wrapped/generated/functions_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
#() IFS
#() CFv
#() CFi
#() CFC
#() CFW
#() CFu
#() CFU
Expand Down Expand Up @@ -1231,6 +1230,7 @@
#() LFpLCL
#() LFpLLp
#() LFpLLS
#() LFpLpi
#() LFpLpL
#() LFpLpp
#() LFppii
Expand All @@ -1249,7 +1249,7 @@
#() pFEpii
#() pFEpip
#() pFEpiV
#() pFEpuL
#() pFEpCL
#() pFEppi
#() pFEppp
#() pFEppV
Expand Down Expand Up @@ -2162,7 +2162,6 @@
#() iFpppupu
#() iFpppupp
#() iFpppLpp
#() iFppppii
#() iFppppiu
#() iFppppip
#() iFppppui
Expand Down Expand Up @@ -2384,6 +2383,7 @@
#() vFppcuupp
#() vFppiiiii
#() vFppiiipi
#() vFppiipii
#() vFppiipuu
#() vFppiippp
#() vFppilppi
Expand Down Expand Up @@ -2489,7 +2489,6 @@
#() iFppLuuii
#() iFppLLLLu
#() iFppLpppp
#() iFpppiiuu
#() iFpppiiup
#() iFpppiuwu
#() iFpppippi
Expand Down Expand Up @@ -2719,7 +2718,6 @@
#() iFppiiipip
#() iFppillppp
#() iFppipiipi
#() iFppippppp
#() iFppIIIppp
#() iFppuiiuuu
#() iFppuuuuuu
Expand Down Expand Up @@ -2855,7 +2853,6 @@
#() vFpppiiiiii
#() vFpppffffff
#() vFppppipiip
#() vFpppppippp
#() iFEpiiiiipi
#() iFEppuppppp
#() iFEpppupppp
Expand Down Expand Up @@ -2888,7 +2885,6 @@
#() iFppupppupp
#() iFppLpiuppp
#() iFpppiiipip
#() iFpppiiuuii
#() iFpppiipiiu
#() iFpppippipi
#() iFpppLLLupp
Expand All @@ -2908,7 +2904,7 @@
#() lFpppippppp
#() LFEppppppii
#() LFpLiiuuuLL
#() pFEppiiuuLi
#() pFEpLiiuuLi
#() pFEppuippuu
#() pFEpppppiiV
#() pFEpppppppi
Expand Down Expand Up @@ -3038,9 +3034,9 @@
#() vFppupppuiiii
#() vFppppppppppp
#() iFEiipppppppp
#() iFEpLppiiiiuu
#() iFEppLpLpLLpp
#() iFEpppupppppp
#() iFEppppiiiiuu
#() iFEpppppppppp
#() iFuiiiiuuiiip
#() iFpiippiiipip
Expand Down Expand Up @@ -3091,10 +3087,10 @@
#() iFpLLlliLppppp
#() iFpppllipppppp
#() iFpppppppppppp
#() pFEppiiuuuipii
#() LFpLiiuuuiupLp
#() pFEpLiiuuLipii
#() pFEppppppppppp
#() pFWWiCCCCiipup
#() pFppiiuuuiupLp
#() pFppippLLLiLpp
#() pFppuuppppuppp
#() pFpppppppppppp
Expand Down Expand Up @@ -3163,6 +3159,7 @@
#() vFpiiiiiiiiiiiiiiiiii
#() uFbWWWCCCCCCCCWCCCCCC
#() pFiiiippppppppppppppp
#() pFppppppppppppppppppp
#() pFpupupppppppppppppppp
#() iFpppppppppppppppppppppp
#() uFippuuuuiiiiuuiiiiiiiipp
Expand Down Expand Up @@ -5030,15 +5027,16 @@ wrappedlibx11:
- XCreateIC
- XSetICValues
- XSetIMValues
- vFppp:
- XRemoveConnectionWatch
- iFppp:
- XAddConnectionWatch
- XRemoveConnectionWatch
- pFpip:
- XESetCloseDisplay
- XESetError
- XESetEventToWire
- XESetWireToEvent
- pFpuL:
- pFpCL:
- _XGetRequest
- iFpppp:
- XCheckIfEvent
Expand All @@ -5049,13 +5047,13 @@ wrappedlibx11:
- iFpppppp:
- XRegisterIMInstantiateCallback
- XUnregisterIMInstantiateCallback
- pFppiiuuLi:
- pFpLiiuuLi:
- XGetImage
- iFppppiiiiuu:
- iFpLppiiiiuu:
- XPutImage
- pFppuiipuuii:
- XCreateImage
- pFppiiuuuipii:
- pFpLiiuuLipii:
- XGetSubImage
wrappedlibx11xcb:
- pFp:
Expand Down Expand Up @@ -5105,8 +5103,6 @@ wrappedlibxfixes:
wrappedlibxft:
- pFpiV:
- XftFontOpen
- pFpipppppppppppppp:
- XftListFonts
wrappedlibxi:
wrappedlibxmu:
wrappedlibxpm:
Expand Down
19 changes: 10 additions & 9 deletions src/wrapped/generated/wrappedlibx11types.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ typedef void* (*pFiV_t)(int32_t, ...);
typedef void* (*pFpi_t)(void*, int32_t);
typedef void* (*pFpp_t)(void*, void*);
typedef void* (*pFpV_t)(void*, ...);
typedef void (*vFppp_t)(void*, void*, void*);
typedef int32_t (*iFppp_t)(void*, void*, void*);
typedef void* (*pFpip_t)(void*, int32_t, void*);
typedef void* (*pFpuL_t)(void*, uint32_t, uintptr_t);
typedef void* (*pFpCL_t)(void*, uint8_t, uintptr_t);
typedef int32_t (*iFpppp_t)(void*, void*, void*, void*);
typedef int32_t (*iFppppp_t)(void*, void*, void*, void*, void*);
typedef int32_t (*iFpppppp_t)(void*, void*, void*, void*, void*, void*);
typedef void* (*pFppiiuuLi_t)(void*, void*, int32_t, int32_t, uint32_t, uint32_t, uintptr_t, int32_t);
typedef int32_t (*iFppppiiiiuu_t)(void*, void*, void*, void*, int32_t, int32_t, int32_t, int32_t, uint32_t, uint32_t);
typedef void* (*pFpLiiuuLi_t)(void*, uintptr_t, int32_t, int32_t, uint32_t, uint32_t, uintptr_t, int32_t);
typedef int32_t (*iFpLppiiiiuu_t)(void*, uintptr_t, void*, void*, int32_t, int32_t, int32_t, int32_t, uint32_t, uint32_t);
typedef void* (*pFppuiipuuii_t)(void*, void*, uint32_t, int32_t, int32_t, void*, uint32_t, uint32_t, int32_t, int32_t);
typedef void* (*pFppiiuuuipii_t)(void*, void*, int32_t, int32_t, uint32_t, uint32_t, uint32_t, int32_t, void*, int32_t, int32_t);
typedef void* (*pFpLiiuuLipii_t)(void*, uintptr_t, int32_t, int32_t, uint32_t, uint32_t, uintptr_t, int32_t, void*, int32_t, int32_t);

#define SUPER() ADDED_FUNCTIONS() \
GO(XDestroyImage, iFp_t) \
Expand All @@ -43,22 +44,22 @@ typedef void* (*pFppiiuuuipii_t)(void*, void*, int32_t, int32_t, uint32_t, uint3
GO(XCreateIC, pFpV_t) \
GO(XSetICValues, pFpV_t) \
GO(XSetIMValues, pFpV_t) \
GO(XRemoveConnectionWatch, vFppp_t) \
GO(XAddConnectionWatch, iFppp_t) \
GO(XRemoveConnectionWatch, iFppp_t) \
GO(XESetCloseDisplay, pFpip_t) \
GO(XESetError, pFpip_t) \
GO(XESetEventToWire, pFpip_t) \
GO(XESetWireToEvent, pFpip_t) \
GO(_XGetRequest, pFpuL_t) \
GO(_XGetRequest, pFpCL_t) \
GO(XCheckIfEvent, iFpppp_t) \
GO(XIfEvent, iFpppp_t) \
GO(XPeekIfEvent, iFpppp_t) \
GO(XQueryExtension, iFppppp_t) \
GO(XRegisterIMInstantiateCallback, iFpppppp_t) \
GO(XUnregisterIMInstantiateCallback, iFpppppp_t) \
GO(XGetImage, pFppiiuuLi_t) \
GO(XPutImage, iFppppiiiiuu_t) \
GO(XGetImage, pFpLiiuuLi_t) \
GO(XPutImage, iFpLppiiiiuu_t) \
GO(XCreateImage, pFppuiipuuii_t) \
GO(XGetSubImage, pFppiiuuuipii_t)
GO(XGetSubImage, pFpLiiuuLipii_t)

#endif // __wrappedlibx11TYPES_H_
4 changes: 1 addition & 3 deletions src/wrapped/generated/wrappedlibxfttypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@
#endif

typedef void* (*pFpiV_t)(void*, int32_t, ...);
typedef void* (*pFpipppppppppppppp_t)(void*, int32_t, void*, void*, void*, void*, void*, void*, void*, void*, void*, void*, void*, void*, void*, void*);

#define SUPER() ADDED_FUNCTIONS() \
GO(XftFontOpen, pFpiV_t) \
GO(XftListFonts, pFpipppppppppppppp_t)
GO(XftFontOpen, pFpiV_t)

#endif // __wrappedlibxftTYPES_H_
Loading

0 comments on commit 6a415b5

Please sign in to comment.