summaryrefslogtreecommitdiffstats
path: root/platform
diff options
context:
space:
mode:
Diffstat (limited to 'platform')
-rw-r--r--platform/android/doc_classes/EditorExportPlatformAndroid.xml15
-rw-r--r--platform/android/export/export_plugin.cpp15
-rw-r--r--platform/android/export/gradle_export_util.cpp16
-rw-r--r--platform/android/export/gradle_export_util.h1
-rw-r--r--platform/android/java/app/res/values/themes.xml4
-rw-r--r--platform/android/java/editor/src/main/res/values/themes.xml3
-rw-r--r--platform/android/java/lib/build.gradle2
-rw-r--r--platform/android/net_socket_android.h2
-rw-r--r--platform/ios/export/export_plugin.cpp2
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c126
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h126
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c34
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h35
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c16
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h16
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c76
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h76
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c1238
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h1225
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c148
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h148
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c96
-rw-r--r--platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h96
-rw-r--r--platform/macos/SCsub4
-rw-r--r--platform/macos/os_macos.h2
-rw-r--r--platform/macos/os_macos.mm9
-rw-r--r--platform/web/doc_classes/EditorExportPlatformWeb.xml8
-rw-r--r--platform/web/export/export_plugin.cpp1
-rw-r--r--platform/web/js/libs/library_godot_input.js104
-rw-r--r--platform/windows/SCsub3
-rw-r--r--platform/windows/godot.natvis171
-rw-r--r--platform/windows/os_windows.cpp276
-rw-r--r--platform/windows/os_windows.h13
-rw-r--r--platform/windows/windows_terminal_logger.cpp4
34 files changed, 2244 insertions, 1867 deletions
diff --git a/platform/android/doc_classes/EditorExportPlatformAndroid.xml b/platform/android/doc_classes/EditorExportPlatformAndroid.xml
index 8c8bca2b7c..983683fd78 100644
--- a/platform/android/doc_classes/EditorExportPlatformAndroid.xml
+++ b/platform/android/doc_classes/EditorExportPlatformAndroid.xml
@@ -151,6 +151,9 @@
<member name="permissions/access_location_extra_commands" type="bool" setter="" getter="">
Allows access to the extra location provider commands. See [url=https://developer.android.com/reference/android/Manifest.permission#ACCESS_LOCATION_EXTRA_COMMANDS]ACCESS_LOCATION_EXTRA_COMMANDS[/url].
</member>
+ <member name="permissions/access_media_location" type="bool" setter="" getter="">
+ Allows an application to access any geographic locations persisted in the user's shared collection. See [url=https://developer.android.com/reference/android/Manifest.permission#ACCESS_MEDIA_LOCATION]ACCESS_MEDIA_LOCATION[/url].
+ </member>
<member name="permissions/access_mock_location" type="bool" setter="" getter="">
Allows an application to create mock location providers for testing.
</member>
@@ -412,6 +415,18 @@
<member name="permissions/read_logs" type="bool" setter="" getter="">
Allows an application to read the low-level system log files. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_LOGS]READ_LOGS[/url].
</member>
+ <member name="permissions/read_media_audio" type="bool" setter="" getter="">
+ Allows an application to read audio files from external storage. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_AUDIO]READ_MEDIA_AUDIO[/url].
+ </member>
+ <member name="permissions/read_media_images" type="bool" setter="" getter="">
+ Allows an application to read image files from external storage. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_IMAGES]READ_MEDIA_IMAGES[/url].
+ </member>
+ <member name="permissions/read_media_video" type="bool" setter="" getter="">
+ Allows an application to read video files from external storage. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_VIDEO]READ_MEDIA_VIDEO[/url].
+ </member>
+ <member name="permissions/read_media_visual_user_selected" type="bool" setter="" getter="">
+ Allows an application to read image or video files from external storage that a user has selected via the permission prompt photo picker. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_VISUAL_USER_SELECTED]READ_MEDIA_VISUAL_USER_SELECTED[/url].
+ </member>
<member name="permissions/read_phone_state" type="bool" setter="" getter="">
Allows read only access to phone state. See [url=https://developer.android.com/reference/android/Manifest.permission#READ_PHONE_STATE]READ_PHONE_STATE[/url].
</member>
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 05c83512f2..6449b6ab6e 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -70,6 +70,7 @@ static const char *android_perms[] = {
"ACCESS_COARSE_LOCATION",
"ACCESS_FINE_LOCATION",
"ACCESS_LOCATION_EXTRA_COMMANDS",
+ "ACCESS_MEDIA_LOCATION",
"ACCESS_MOCK_LOCATION",
"ACCESS_NETWORK_STATE",
"ACCESS_SURFACE_FLINGER",
@@ -157,6 +158,10 @@ static const char *android_perms[] = {
"READ_HISTORY_BOOKMARKS",
"READ_INPUT_STATE",
"READ_LOGS",
+ "READ_MEDIA_AUDIO",
+ "READ_MEDIA_IMAGES",
+ "READ_MEDIA_VIDEO",
+ "READ_MEDIA_VISUAL_USER_SELECTED",
"READ_PHONE_STATE",
"READ_PROFILE",
"READ_SMS",
@@ -1900,7 +1905,7 @@ void EditorExportPlatformAndroid::get_export_options(List<ExportOption> *r_optio
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "package/unique_name", PROPERTY_HINT_PLACEHOLDER_TEXT, "ext.domain.name"), "com.example.$genname", false, true));
r_options->push_back(ExportOption(PropertyInfo(Variant::STRING, "package/name", PROPERTY_HINT_PLACEHOLDER_TEXT, "Game Name [default if blank]"), ""));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "package/signed"), true));
- r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "package/app_category", PROPERTY_HINT_ENUM, "Accessibility,Audio,Game,Image,Maps,News,Productivity,Social,Video"), APP_CATEGORY_GAME));
+ r_options->push_back(ExportOption(PropertyInfo(Variant::INT, "package/app_category", PROPERTY_HINT_ENUM, "Accessibility,Audio,Game,Image,Maps,News,Productivity,Social,Video,Undefined"), APP_CATEGORY_GAME));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "package/retain_data_on_uninstall"), false));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "package/exclude_from_recents"), false));
r_options->push_back(ExportOption(PropertyInfo(Variant::BOOL, "package/show_in_android_tv"), false));
@@ -3167,9 +3172,9 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
user_data.libs_directory = gradle_build_directory.path_join("libs");
user_data.debug = p_debug;
if (p_flags.has_flag(DEBUG_FLAG_DUMB_CLIENT)) {
- err = export_project_files(p_preset, p_debug, ignore_apk_file, &user_data, copy_gradle_so);
+ err = export_project_files(p_preset, p_debug, ignore_apk_file, nullptr, &user_data, copy_gradle_so);
} else {
- err = export_project_files(p_preset, p_debug, rename_and_store_file_in_gradle_project, &user_data, copy_gradle_so);
+ err = export_project_files(p_preset, p_debug, rename_and_store_file_in_gradle_project, nullptr, &user_data, copy_gradle_so);
}
if (err != OK) {
add_message(EXPORT_MESSAGE_ERROR, TTR("Export"), TTR("Could not export project files to gradle project."));
@@ -3560,7 +3565,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
APKExportData ed;
ed.ep = &ep;
ed.apk = unaligned_apk;
- err = export_project_files(p_preset, p_debug, ignore_apk_file, &ed, save_apk_so);
+ err = export_project_files(p_preset, p_debug, ignore_apk_file, nullptr, &ed, save_apk_so);
} else {
if (apk_expansion) {
err = save_apk_expansion_file(p_preset, p_debug, p_path);
@@ -3572,7 +3577,7 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
APKExportData ed;
ed.ep = &ep;
ed.apk = unaligned_apk;
- err = export_project_files(p_preset, p_debug, save_apk_file, &ed, save_apk_so);
+ err = export_project_files(p_preset, p_debug, save_apk_file, nullptr, &ed, save_apk_so);
}
}
diff --git a/platform/android/export/gradle_export_util.cpp b/platform/android/export/gradle_export_util.cpp
index 01ac937606..5091a514b3 100644
--- a/platform/android/export/gradle_export_util.cpp
+++ b/platform/android/export/gradle_export_util.cpp
@@ -90,6 +90,8 @@ int _get_app_category_value(int category_index) {
return 7;
case APP_CATEGORY_SOCIAL:
return 4;
+ case APP_CATEGORY_UNDEFINED:
+ return -1;
case APP_CATEGORY_VIDEO:
return 2;
case APP_CATEGORY_GAME:
@@ -313,17 +315,21 @@ String _get_application_tag(const Ref<EditorExportPlatform> &p_export_platform,
" <application android:label=\"@string/godot_project_name_string\"\n"
" android:allowBackup=\"%s\"\n"
" android:icon=\"@mipmap/icon\"\n"
- " android:appCategory=\"%s\"\n"
" android:isGame=\"%s\"\n"
" android:hasFragileUserData=\"%s\"\n"
- " android:requestLegacyExternalStorage=\"%s\"\n"
- " tools:replace=\"android:allowBackup,android:appCategory,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n"
- " tools:ignore=\"GoogleAppIndexingWarning\">\n\n",
+ " android:requestLegacyExternalStorage=\"%s\"\n",
bool_to_string(p_preset->get("user_data_backup/allow")),
- _get_app_category_label(app_category_index),
bool_to_string(is_game),
bool_to_string(p_preset->get("package/retain_data_on_uninstall")),
bool_to_string(p_has_read_write_storage_permission));
+ if (app_category_index != APP_CATEGORY_UNDEFINED) {
+ manifest_application_text += vformat(" android:appCategory=\"%s\"\n", _get_app_category_label(app_category_index));
+ manifest_application_text += " tools:replace=\"android:allowBackup,android:appCategory,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n";
+ } else {
+ manifest_application_text += " tools:remove=\"android:appCategory\"\n";
+ manifest_application_text += " tools:replace=\"android:allowBackup,android:isGame,android:hasFragileUserData,android:requestLegacyExternalStorage\"\n";
+ }
+ manifest_application_text += " tools:ignore=\"GoogleAppIndexingWarning\">\n\n";
Vector<Ref<EditorExportPlugin>> export_plugins = EditorExport::get_singleton()->get_export_plugins();
for (int i = 0; i < export_plugins.size(); i++) {
diff --git a/platform/android/export/gradle_export_util.h b/platform/android/export/gradle_export_util.h
index aa272e2b4e..d56365e1b7 100644
--- a/platform/android/export/gradle_export_util.h
+++ b/platform/android/export/gradle_export_util.h
@@ -57,6 +57,7 @@ static const int APP_CATEGORY_NEWS = 5;
static const int APP_CATEGORY_PRODUCTIVITY = 6;
static const int APP_CATEGORY_SOCIAL = 7;
static const int APP_CATEGORY_VIDEO = 8;
+static const int APP_CATEGORY_UNDEFINED = 9;
// Supported XR modes.
// This should match the entries in 'platform/android/java/lib/src/org/godotengine/godot/xr/XRMode.java'
diff --git a/platform/android/java/app/res/values/themes.xml b/platform/android/java/app/res/values/themes.xml
index 3ab8401928..3c86e54df5 100644
--- a/platform/android/java/app/res/values/themes.xml
+++ b/platform/android/java/app/res/values/themes.xml
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <style name="GodotAppMainTheme" parent="@android:style/Theme.Black.NoTitleBar"/>
+ <style name="GodotAppMainTheme" parent="@android:style/Theme.DeviceDefault.NoActionBar">
+ <item name ="android:windowDrawsSystemBarBackgrounds">false</item>
+ </style>
<style name="GodotAppSplashTheme" parent="Theme.SplashScreen">
<!-- Set the splash screen background, animated icon, and animation
diff --git a/platform/android/java/editor/src/main/res/values/themes.xml b/platform/android/java/editor/src/main/res/values/themes.xml
index 2b352247db..8de2c6e288 100644
--- a/platform/android/java/editor/src/main/res/values/themes.xml
+++ b/platform/android/java/editor/src/main/res/values/themes.xml
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <style name="GodotEditorTheme" parent="@android:style/Theme.Black.NoTitleBar.Fullscreen">
+ <style name="GodotEditorTheme" parent="@android:style/Theme.DeviceDefault.NoActionBar.Fullscreen">
+ <item name ="android:windowDrawsSystemBarBackgrounds">false</item>
</style>
<style name="GodotEditorSplashScreenTheme" parent="Theme.SplashScreen.IconBackground">
diff --git a/platform/android/java/lib/build.gradle b/platform/android/java/lib/build.gradle
index f6aee434e5..f273105efc 100644
--- a/platform/android/java/lib/build.gradle
+++ b/platform/android/java/lib/build.gradle
@@ -106,8 +106,8 @@ android {
boolean devBuild = buildType == "dev"
boolean debugSymbols = devBuild
boolean runTests = devBuild
- boolean productionBuild = !devBuild
boolean storeRelease = buildType == "release"
+ boolean productionBuild = storeRelease
def sconsTarget = flavorName
if (sconsTarget == "template") {
diff --git a/platform/android/net_socket_android.h b/platform/android/net_socket_android.h
index 9dcf7c11da..8f0e64ea44 100644
--- a/platform/android/net_socket_android.h
+++ b/platform/android/net_socket_android.h
@@ -33,7 +33,7 @@
#ifndef NET_SOCKET_ANDROID_H
#define NET_SOCKET_ANDROID_H
-#include "drivers/unix/net_socket_posix.h"
+#include "drivers/unix/net_socket_unix.h"
#include <jni.h>
diff --git a/platform/ios/export/export_plugin.cpp b/platform/ios/export/export_plugin.cpp
index 569d9d67d4..4c5abc6b91 100644
--- a/platform/ios/export/export_plugin.cpp
+++ b/platform/ios/export/export_plugin.cpp
@@ -1084,7 +1084,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Ref<EditorExpor
}
if (splash.is_null()) {
- splash = Ref<Image>(memnew(Image(boot_splash_png)));
+ splash.instantiate(boot_splash_png);
}
// Using same image for both @2x and @3x
diff --git a/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
index bba21b9cb7..7e1f3b8072 100644
--- a/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
@@ -1,12 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:09:53
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --sys-include "thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h" --soname libXcursor.so.1 --init-name xcursor --output-header ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --sys-include thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --soname libXcursor.so.1 --init-name xcursor --output-header ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xcursor 1.2.0.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXcursor.so.1, were removed.
#include <stdint.h>
#define XcursorImageCreate XcursorImageCreate_dylibloader_orig_xcursor
@@ -130,65 +126,65 @@
#undef XcursorSetThemeCore
#include <dlfcn.h>
#include <stdio.h>
-XcursorImage* (*XcursorImageCreate_dylibloader_wrapper_xcursor)( int, int);
-void (*XcursorImageDestroy_dylibloader_wrapper_xcursor)( XcursorImage*);
-XcursorImages* (*XcursorImagesCreate_dylibloader_wrapper_xcursor)( int);
-void (*XcursorImagesDestroy_dylibloader_wrapper_xcursor)( XcursorImages*);
-void (*XcursorImagesSetName_dylibloader_wrapper_xcursor)( XcursorImages*,const char*);
-XcursorCursors* (*XcursorCursorsCreate_dylibloader_wrapper_xcursor)( Display*, int);
-void (*XcursorCursorsDestroy_dylibloader_wrapper_xcursor)( XcursorCursors*);
-XcursorAnimate* (*XcursorAnimateCreate_dylibloader_wrapper_xcursor)( XcursorCursors*);
-void (*XcursorAnimateDestroy_dylibloader_wrapper_xcursor)( XcursorAnimate*);
-Cursor (*XcursorAnimateNext_dylibloader_wrapper_xcursor)( XcursorAnimate*);
-XcursorComment* (*XcursorCommentCreate_dylibloader_wrapper_xcursor)( XcursorUInt, int);
-void (*XcursorCommentDestroy_dylibloader_wrapper_xcursor)( XcursorComment*);
-XcursorComments* (*XcursorCommentsCreate_dylibloader_wrapper_xcursor)( int);
-void (*XcursorCommentsDestroy_dylibloader_wrapper_xcursor)( XcursorComments*);
-XcursorImage* (*XcursorXcFileLoadImage_dylibloader_wrapper_xcursor)( XcursorFile*, int);
-XcursorImages* (*XcursorXcFileLoadImages_dylibloader_wrapper_xcursor)( XcursorFile*, int);
-XcursorImages* (*XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor)( XcursorFile*);
-XcursorBool (*XcursorXcFileLoad_dylibloader_wrapper_xcursor)( XcursorFile*, XcursorComments**, XcursorImages**);
-XcursorBool (*XcursorXcFileSave_dylibloader_wrapper_xcursor)( XcursorFile*,const XcursorComments*,const XcursorImages*);
-XcursorImage* (*XcursorFileLoadImage_dylibloader_wrapper_xcursor)( FILE*, int);
-XcursorImages* (*XcursorFileLoadImages_dylibloader_wrapper_xcursor)( FILE*, int);
-XcursorImages* (*XcursorFileLoadAllImages_dylibloader_wrapper_xcursor)( FILE*);
-XcursorBool (*XcursorFileLoad_dylibloader_wrapper_xcursor)( FILE*, XcursorComments**, XcursorImages**);
-XcursorBool (*XcursorFileSaveImages_dylibloader_wrapper_xcursor)( FILE*,const XcursorImages*);
-XcursorBool (*XcursorFileSave_dylibloader_wrapper_xcursor)( FILE*,const XcursorComments*,const XcursorImages*);
-XcursorImage* (*XcursorFilenameLoadImage_dylibloader_wrapper_xcursor)(const char*, int);
-XcursorImages* (*XcursorFilenameLoadImages_dylibloader_wrapper_xcursor)(const char*, int);
-XcursorImages* (*XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor)(const char*);
-XcursorBool (*XcursorFilenameLoad_dylibloader_wrapper_xcursor)(const char*, XcursorComments**, XcursorImages**);
-XcursorBool (*XcursorFilenameSaveImages_dylibloader_wrapper_xcursor)(const char*,const XcursorImages*);
-XcursorBool (*XcursorFilenameSave_dylibloader_wrapper_xcursor)(const char*,const XcursorComments*,const XcursorImages*);
-XcursorImage* (*XcursorLibraryLoadImage_dylibloader_wrapper_xcursor)(const char*,const char*, int);
-XcursorImages* (*XcursorLibraryLoadImages_dylibloader_wrapper_xcursor)(const char*,const char*, int);
-const char* (*XcursorLibraryPath_dylibloader_wrapper_xcursor)( void);
-int (*XcursorLibraryShape_dylibloader_wrapper_xcursor)(const char*);
-Cursor (*XcursorImageLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImage*);
-XcursorCursors* (*XcursorImagesLoadCursors_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
-Cursor (*XcursorImagesLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
-Cursor (*XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
-XcursorCursors* (*XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
-Cursor (*XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
-XcursorCursors* (*XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
-XcursorImage* (*XcursorShapeLoadImage_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
-XcursorImages* (*XcursorShapeLoadImages_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
-Cursor (*XcursorShapeLoadCursor_dylibloader_wrapper_xcursor)( Display*, unsigned int);
-XcursorCursors* (*XcursorShapeLoadCursors_dylibloader_wrapper_xcursor)( Display*, unsigned int);
-Cursor (*XcursorTryShapeCursor_dylibloader_wrapper_xcursor)( Display*, Font, Font, unsigned int, unsigned int,const XColor*,const XColor*);
-void (*XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor)( Display*, Pixmap, unsigned int, unsigned int);
-void (*XcursorNoticePutBitmap_dylibloader_wrapper_xcursor)( Display*, Drawable, XImage*);
-Cursor (*XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor)( Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
-void (*XcursorImageHash_dylibloader_wrapper_xcursor)( XImage*, unsigned char [16]);
-XcursorBool (*XcursorSupportsARGB_dylibloader_wrapper_xcursor)( Display*);
-XcursorBool (*XcursorSupportsAnim_dylibloader_wrapper_xcursor)( Display*);
-XcursorBool (*XcursorSetDefaultSize_dylibloader_wrapper_xcursor)( Display*, int);
-int (*XcursorGetDefaultSize_dylibloader_wrapper_xcursor)( Display*);
-XcursorBool (*XcursorSetTheme_dylibloader_wrapper_xcursor)( Display*,const char*);
-char* (*XcursorGetTheme_dylibloader_wrapper_xcursor)( Display*);
-XcursorBool (*XcursorGetThemeCore_dylibloader_wrapper_xcursor)( Display*);
-XcursorBool (*XcursorSetThemeCore_dylibloader_wrapper_xcursor)( Display*, XcursorBool);
+XcursorImage *(*XcursorImageCreate_dylibloader_wrapper_xcursor)(int, int);
+void (*XcursorImageDestroy_dylibloader_wrapper_xcursor)(XcursorImage *);
+XcursorImages *(*XcursorImagesCreate_dylibloader_wrapper_xcursor)(int);
+void (*XcursorImagesDestroy_dylibloader_wrapper_xcursor)(XcursorImages *);
+void (*XcursorImagesSetName_dylibloader_wrapper_xcursor)(XcursorImages *, const char *);
+XcursorCursors *(*XcursorCursorsCreate_dylibloader_wrapper_xcursor)(Display *, int);
+void (*XcursorCursorsDestroy_dylibloader_wrapper_xcursor)(XcursorCursors *);
+XcursorAnimate *(*XcursorAnimateCreate_dylibloader_wrapper_xcursor)(XcursorCursors *);
+void (*XcursorAnimateDestroy_dylibloader_wrapper_xcursor)(XcursorAnimate *);
+Cursor (*XcursorAnimateNext_dylibloader_wrapper_xcursor)(XcursorAnimate *);
+XcursorComment *(*XcursorCommentCreate_dylibloader_wrapper_xcursor)(XcursorUInt, int);
+void (*XcursorCommentDestroy_dylibloader_wrapper_xcursor)(XcursorComment *);
+XcursorComments *(*XcursorCommentsCreate_dylibloader_wrapper_xcursor)(int);
+void (*XcursorCommentsDestroy_dylibloader_wrapper_xcursor)(XcursorComments *);
+XcursorImage *(*XcursorXcFileLoadImage_dylibloader_wrapper_xcursor)(XcursorFile *, int);
+XcursorImages *(*XcursorXcFileLoadImages_dylibloader_wrapper_xcursor)(XcursorFile *, int);
+XcursorImages *(*XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor)(XcursorFile *);
+XcursorBool (*XcursorXcFileLoad_dylibloader_wrapper_xcursor)(XcursorFile *, XcursorComments **, XcursorImages **);
+XcursorBool (*XcursorXcFileSave_dylibloader_wrapper_xcursor)(XcursorFile *, const XcursorComments *, const XcursorImages *);
+XcursorImage *(*XcursorFileLoadImage_dylibloader_wrapper_xcursor)(FILE *, int);
+XcursorImages *(*XcursorFileLoadImages_dylibloader_wrapper_xcursor)(FILE *, int);
+XcursorImages *(*XcursorFileLoadAllImages_dylibloader_wrapper_xcursor)(FILE *);
+XcursorBool (*XcursorFileLoad_dylibloader_wrapper_xcursor)(FILE *, XcursorComments **, XcursorImages **);
+XcursorBool (*XcursorFileSaveImages_dylibloader_wrapper_xcursor)(FILE *, const XcursorImages *);
+XcursorBool (*XcursorFileSave_dylibloader_wrapper_xcursor)(FILE *, const XcursorComments *, const XcursorImages *);
+XcursorImage *(*XcursorFilenameLoadImage_dylibloader_wrapper_xcursor)(const char *, int);
+XcursorImages *(*XcursorFilenameLoadImages_dylibloader_wrapper_xcursor)(const char *, int);
+XcursorImages *(*XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor)(const char *);
+XcursorBool (*XcursorFilenameLoad_dylibloader_wrapper_xcursor)(const char *, XcursorComments **, XcursorImages **);
+XcursorBool (*XcursorFilenameSaveImages_dylibloader_wrapper_xcursor)(const char *, const XcursorImages *);
+XcursorBool (*XcursorFilenameSave_dylibloader_wrapper_xcursor)(const char *, const XcursorComments *, const XcursorImages *);
+XcursorImage *(*XcursorLibraryLoadImage_dylibloader_wrapper_xcursor)(const char *, const char *, int);
+XcursorImages *(*XcursorLibraryLoadImages_dylibloader_wrapper_xcursor)(const char *, const char *, int);
+const char *(*XcursorLibraryPath_dylibloader_wrapper_xcursor)(void);
+int (*XcursorLibraryShape_dylibloader_wrapper_xcursor)(const char *);
+Cursor (*XcursorImageLoadCursor_dylibloader_wrapper_xcursor)(Display *, const XcursorImage *);
+XcursorCursors *(*XcursorImagesLoadCursors_dylibloader_wrapper_xcursor)(Display *, const XcursorImages *);
+Cursor (*XcursorImagesLoadCursor_dylibloader_wrapper_xcursor)(Display *, const XcursorImages *);
+Cursor (*XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor)(Display *, const char *);
+XcursorCursors *(*XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor)(Display *, const char *);
+Cursor (*XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor)(Display *, const char *);
+XcursorCursors *(*XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor)(Display *, const char *);
+XcursorImage *(*XcursorShapeLoadImage_dylibloader_wrapper_xcursor)(unsigned int, const char *, int);
+XcursorImages *(*XcursorShapeLoadImages_dylibloader_wrapper_xcursor)(unsigned int, const char *, int);
+Cursor (*XcursorShapeLoadCursor_dylibloader_wrapper_xcursor)(Display *, unsigned int);
+XcursorCursors *(*XcursorShapeLoadCursors_dylibloader_wrapper_xcursor)(Display *, unsigned int);
+Cursor (*XcursorTryShapeCursor_dylibloader_wrapper_xcursor)(Display *, Font, Font, unsigned int, unsigned int, const XColor *, const XColor *);
+void (*XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor)(Display *, Pixmap, unsigned int, unsigned int);
+void (*XcursorNoticePutBitmap_dylibloader_wrapper_xcursor)(Display *, Drawable, XImage *);
+Cursor (*XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor)(Display *, Pixmap, Pixmap, XColor *, XColor *, unsigned int, unsigned int);
+void (*XcursorImageHash_dylibloader_wrapper_xcursor)(XImage *, unsigned char [16]);
+XcursorBool (*XcursorSupportsARGB_dylibloader_wrapper_xcursor)(Display *);
+XcursorBool (*XcursorSupportsAnim_dylibloader_wrapper_xcursor)(Display *);
+XcursorBool (*XcursorSetDefaultSize_dylibloader_wrapper_xcursor)(Display *, int);
+int (*XcursorGetDefaultSize_dylibloader_wrapper_xcursor)(Display *);
+XcursorBool (*XcursorSetTheme_dylibloader_wrapper_xcursor)(Display *, const char *);
+char *(*XcursorGetTheme_dylibloader_wrapper_xcursor)(Display *);
+XcursorBool (*XcursorGetThemeCore_dylibloader_wrapper_xcursor)(Display *);
+XcursorBool (*XcursorSetThemeCore_dylibloader_wrapper_xcursor)(Display *, XcursorBool);
int initialize_xcursor(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h
index 9f8d8bbca2..7266cfe609 100644
--- a/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h
@@ -2,13 +2,9 @@
#define DYLIBLOAD_WRAPPER_XCURSOR
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:09:53
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --sys-include "thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h" --soname libXcursor.so.1 --init-name xcursor --output-header ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --sys-include thirdparty/linuxbsd_headers/X11/Xcursor/Xcursor.h --soname libXcursor.so.1 --init-name xcursor --output-header ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xcursor-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xcursor 1.2.0.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXcursor.so.1, were removed.
#include <stdint.h>
#define XcursorImageCreate XcursorImageCreate_dylibloader_orig_xcursor
@@ -192,65 +188,65 @@ extern "C" {
#define XcursorGetTheme XcursorGetTheme_dylibloader_wrapper_xcursor
#define XcursorGetThemeCore XcursorGetThemeCore_dylibloader_wrapper_xcursor
#define XcursorSetThemeCore XcursorSetThemeCore_dylibloader_wrapper_xcursor
-extern XcursorImage* (*XcursorImageCreate_dylibloader_wrapper_xcursor)( int, int);
-extern void (*XcursorImageDestroy_dylibloader_wrapper_xcursor)( XcursorImage*);
-extern XcursorImages* (*XcursorImagesCreate_dylibloader_wrapper_xcursor)( int);
-extern void (*XcursorImagesDestroy_dylibloader_wrapper_xcursor)( XcursorImages*);
-extern void (*XcursorImagesSetName_dylibloader_wrapper_xcursor)( XcursorImages*,const char*);
-extern XcursorCursors* (*XcursorCursorsCreate_dylibloader_wrapper_xcursor)( Display*, int);
-extern void (*XcursorCursorsDestroy_dylibloader_wrapper_xcursor)( XcursorCursors*);
-extern XcursorAnimate* (*XcursorAnimateCreate_dylibloader_wrapper_xcursor)( XcursorCursors*);
-extern void (*XcursorAnimateDestroy_dylibloader_wrapper_xcursor)( XcursorAnimate*);
-extern Cursor (*XcursorAnimateNext_dylibloader_wrapper_xcursor)( XcursorAnimate*);
-extern XcursorComment* (*XcursorCommentCreate_dylibloader_wrapper_xcursor)( XcursorUInt, int);
-extern void (*XcursorCommentDestroy_dylibloader_wrapper_xcursor)( XcursorComment*);
-extern XcursorComments* (*XcursorCommentsCreate_dylibloader_wrapper_xcursor)( int);
-extern void (*XcursorCommentsDestroy_dylibloader_wrapper_xcursor)( XcursorComments*);
-extern XcursorImage* (*XcursorXcFileLoadImage_dylibloader_wrapper_xcursor)( XcursorFile*, int);
-extern XcursorImages* (*XcursorXcFileLoadImages_dylibloader_wrapper_xcursor)( XcursorFile*, int);
-extern XcursorImages* (*XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor)( XcursorFile*);
-extern XcursorBool (*XcursorXcFileLoad_dylibloader_wrapper_xcursor)( XcursorFile*, XcursorComments**, XcursorImages**);
-extern XcursorBool (*XcursorXcFileSave_dylibloader_wrapper_xcursor)( XcursorFile*,const XcursorComments*,const XcursorImages*);
-extern XcursorImage* (*XcursorFileLoadImage_dylibloader_wrapper_xcursor)( FILE*, int);
-extern XcursorImages* (*XcursorFileLoadImages_dylibloader_wrapper_xcursor)( FILE*, int);
-extern XcursorImages* (*XcursorFileLoadAllImages_dylibloader_wrapper_xcursor)( FILE*);
-extern XcursorBool (*XcursorFileLoad_dylibloader_wrapper_xcursor)( FILE*, XcursorComments**, XcursorImages**);
-extern XcursorBool (*XcursorFileSaveImages_dylibloader_wrapper_xcursor)( FILE*,const XcursorImages*);
-extern XcursorBool (*XcursorFileSave_dylibloader_wrapper_xcursor)( FILE*,const XcursorComments*,const XcursorImages*);
-extern XcursorImage* (*XcursorFilenameLoadImage_dylibloader_wrapper_xcursor)(const char*, int);
-extern XcursorImages* (*XcursorFilenameLoadImages_dylibloader_wrapper_xcursor)(const char*, int);
-extern XcursorImages* (*XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor)(const char*);
-extern XcursorBool (*XcursorFilenameLoad_dylibloader_wrapper_xcursor)(const char*, XcursorComments**, XcursorImages**);
-extern XcursorBool (*XcursorFilenameSaveImages_dylibloader_wrapper_xcursor)(const char*,const XcursorImages*);
-extern XcursorBool (*XcursorFilenameSave_dylibloader_wrapper_xcursor)(const char*,const XcursorComments*,const XcursorImages*);
-extern XcursorImage* (*XcursorLibraryLoadImage_dylibloader_wrapper_xcursor)(const char*,const char*, int);
-extern XcursorImages* (*XcursorLibraryLoadImages_dylibloader_wrapper_xcursor)(const char*,const char*, int);
-extern const char* (*XcursorLibraryPath_dylibloader_wrapper_xcursor)( void);
-extern int (*XcursorLibraryShape_dylibloader_wrapper_xcursor)(const char*);
-extern Cursor (*XcursorImageLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImage*);
-extern XcursorCursors* (*XcursorImagesLoadCursors_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
-extern Cursor (*XcursorImagesLoadCursor_dylibloader_wrapper_xcursor)( Display*,const XcursorImages*);
-extern Cursor (*XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
-extern XcursorCursors* (*XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
-extern Cursor (*XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor)( Display*,const char*);
-extern XcursorCursors* (*XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor)( Display*,const char*);
-extern XcursorImage* (*XcursorShapeLoadImage_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
-extern XcursorImages* (*XcursorShapeLoadImages_dylibloader_wrapper_xcursor)( unsigned int,const char*, int);
-extern Cursor (*XcursorShapeLoadCursor_dylibloader_wrapper_xcursor)( Display*, unsigned int);
-extern XcursorCursors* (*XcursorShapeLoadCursors_dylibloader_wrapper_xcursor)( Display*, unsigned int);
-extern Cursor (*XcursorTryShapeCursor_dylibloader_wrapper_xcursor)( Display*, Font, Font, unsigned int, unsigned int,const XColor*,const XColor*);
-extern void (*XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor)( Display*, Pixmap, unsigned int, unsigned int);
-extern void (*XcursorNoticePutBitmap_dylibloader_wrapper_xcursor)( Display*, Drawable, XImage*);
-extern Cursor (*XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor)( Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
-extern void (*XcursorImageHash_dylibloader_wrapper_xcursor)( XImage*, unsigned char [16]);
-extern XcursorBool (*XcursorSupportsARGB_dylibloader_wrapper_xcursor)( Display*);
-extern XcursorBool (*XcursorSupportsAnim_dylibloader_wrapper_xcursor)( Display*);
-extern XcursorBool (*XcursorSetDefaultSize_dylibloader_wrapper_xcursor)( Display*, int);
-extern int (*XcursorGetDefaultSize_dylibloader_wrapper_xcursor)( Display*);
-extern XcursorBool (*XcursorSetTheme_dylibloader_wrapper_xcursor)( Display*,const char*);
-extern char* (*XcursorGetTheme_dylibloader_wrapper_xcursor)( Display*);
-extern XcursorBool (*XcursorGetThemeCore_dylibloader_wrapper_xcursor)( Display*);
-extern XcursorBool (*XcursorSetThemeCore_dylibloader_wrapper_xcursor)( Display*, XcursorBool);
+extern XcursorImage *(*XcursorImageCreate_dylibloader_wrapper_xcursor)(int, int);
+extern void (*XcursorImageDestroy_dylibloader_wrapper_xcursor)(XcursorImage *);
+extern XcursorImages *(*XcursorImagesCreate_dylibloader_wrapper_xcursor)(int);
+extern void (*XcursorImagesDestroy_dylibloader_wrapper_xcursor)(XcursorImages *);
+extern void (*XcursorImagesSetName_dylibloader_wrapper_xcursor)(XcursorImages *, const char *);
+extern XcursorCursors *(*XcursorCursorsCreate_dylibloader_wrapper_xcursor)(Display *, int);
+extern void (*XcursorCursorsDestroy_dylibloader_wrapper_xcursor)(XcursorCursors *);
+extern XcursorAnimate *(*XcursorAnimateCreate_dylibloader_wrapper_xcursor)(XcursorCursors *);
+extern void (*XcursorAnimateDestroy_dylibloader_wrapper_xcursor)(XcursorAnimate *);
+extern Cursor (*XcursorAnimateNext_dylibloader_wrapper_xcursor)(XcursorAnimate *);
+extern XcursorComment *(*XcursorCommentCreate_dylibloader_wrapper_xcursor)(XcursorUInt, int);
+extern void (*XcursorCommentDestroy_dylibloader_wrapper_xcursor)(XcursorComment *);
+extern XcursorComments *(*XcursorCommentsCreate_dylibloader_wrapper_xcursor)(int);
+extern void (*XcursorCommentsDestroy_dylibloader_wrapper_xcursor)(XcursorComments *);
+extern XcursorImage *(*XcursorXcFileLoadImage_dylibloader_wrapper_xcursor)(XcursorFile *, int);
+extern XcursorImages *(*XcursorXcFileLoadImages_dylibloader_wrapper_xcursor)(XcursorFile *, int);
+extern XcursorImages *(*XcursorXcFileLoadAllImages_dylibloader_wrapper_xcursor)(XcursorFile *);
+extern XcursorBool (*XcursorXcFileLoad_dylibloader_wrapper_xcursor)(XcursorFile *, XcursorComments **, XcursorImages **);
+extern XcursorBool (*XcursorXcFileSave_dylibloader_wrapper_xcursor)(XcursorFile *, const XcursorComments *, const XcursorImages *);
+extern XcursorImage *(*XcursorFileLoadImage_dylibloader_wrapper_xcursor)(FILE *, int);
+extern XcursorImages *(*XcursorFileLoadImages_dylibloader_wrapper_xcursor)(FILE *, int);
+extern XcursorImages *(*XcursorFileLoadAllImages_dylibloader_wrapper_xcursor)(FILE *);
+extern XcursorBool (*XcursorFileLoad_dylibloader_wrapper_xcursor)(FILE *, XcursorComments **, XcursorImages **);
+extern XcursorBool (*XcursorFileSaveImages_dylibloader_wrapper_xcursor)(FILE *, const XcursorImages *);
+extern XcursorBool (*XcursorFileSave_dylibloader_wrapper_xcursor)(FILE *, const XcursorComments *, const XcursorImages *);
+extern XcursorImage *(*XcursorFilenameLoadImage_dylibloader_wrapper_xcursor)(const char *, int);
+extern XcursorImages *(*XcursorFilenameLoadImages_dylibloader_wrapper_xcursor)(const char *, int);
+extern XcursorImages *(*XcursorFilenameLoadAllImages_dylibloader_wrapper_xcursor)(const char *);
+extern XcursorBool (*XcursorFilenameLoad_dylibloader_wrapper_xcursor)(const char *, XcursorComments **, XcursorImages **);
+extern XcursorBool (*XcursorFilenameSaveImages_dylibloader_wrapper_xcursor)(const char *, const XcursorImages *);
+extern XcursorBool (*XcursorFilenameSave_dylibloader_wrapper_xcursor)(const char *, const XcursorComments *, const XcursorImages *);
+extern XcursorImage *(*XcursorLibraryLoadImage_dylibloader_wrapper_xcursor)(const char *, const char *, int);
+extern XcursorImages *(*XcursorLibraryLoadImages_dylibloader_wrapper_xcursor)(const char *, const char *, int);
+extern const char *(*XcursorLibraryPath_dylibloader_wrapper_xcursor)(void);
+extern int (*XcursorLibraryShape_dylibloader_wrapper_xcursor)(const char *);
+extern Cursor (*XcursorImageLoadCursor_dylibloader_wrapper_xcursor)(Display *, const XcursorImage *);
+extern XcursorCursors *(*XcursorImagesLoadCursors_dylibloader_wrapper_xcursor)(Display *, const XcursorImages *);
+extern Cursor (*XcursorImagesLoadCursor_dylibloader_wrapper_xcursor)(Display *, const XcursorImages *);
+extern Cursor (*XcursorFilenameLoadCursor_dylibloader_wrapper_xcursor)(Display *, const char *);
+extern XcursorCursors *(*XcursorFilenameLoadCursors_dylibloader_wrapper_xcursor)(Display *, const char *);
+extern Cursor (*XcursorLibraryLoadCursor_dylibloader_wrapper_xcursor)(Display *, const char *);
+extern XcursorCursors *(*XcursorLibraryLoadCursors_dylibloader_wrapper_xcursor)(Display *, const char *);
+extern XcursorImage *(*XcursorShapeLoadImage_dylibloader_wrapper_xcursor)(unsigned int, const char *, int);
+extern XcursorImages *(*XcursorShapeLoadImages_dylibloader_wrapper_xcursor)(unsigned int, const char *, int);
+extern Cursor (*XcursorShapeLoadCursor_dylibloader_wrapper_xcursor)(Display *, unsigned int);
+extern XcursorCursors *(*XcursorShapeLoadCursors_dylibloader_wrapper_xcursor)(Display *, unsigned int);
+extern Cursor (*XcursorTryShapeCursor_dylibloader_wrapper_xcursor)(Display *, Font, Font, unsigned int, unsigned int, const XColor *, const XColor *);
+extern void (*XcursorNoticeCreateBitmap_dylibloader_wrapper_xcursor)(Display *, Pixmap, unsigned int, unsigned int);
+extern void (*XcursorNoticePutBitmap_dylibloader_wrapper_xcursor)(Display *, Drawable, XImage *);
+extern Cursor (*XcursorTryShapeBitmapCursor_dylibloader_wrapper_xcursor)(Display *, Pixmap, Pixmap, XColor *, XColor *, unsigned int, unsigned int);
+extern void (*XcursorImageHash_dylibloader_wrapper_xcursor)(XImage *, unsigned char [16]);
+extern XcursorBool (*XcursorSupportsARGB_dylibloader_wrapper_xcursor)(Display *);
+extern XcursorBool (*XcursorSupportsAnim_dylibloader_wrapper_xcursor)(Display *);
+extern XcursorBool (*XcursorSetDefaultSize_dylibloader_wrapper_xcursor)(Display *, int);
+extern int (*XcursorGetDefaultSize_dylibloader_wrapper_xcursor)(Display *);
+extern XcursorBool (*XcursorSetTheme_dylibloader_wrapper_xcursor)(Display *, const char *);
+extern char *(*XcursorGetTheme_dylibloader_wrapper_xcursor)(Display *);
+extern XcursorBool (*XcursorGetThemeCore_dylibloader_wrapper_xcursor)(Display *);
+extern XcursorBool (*XcursorSetThemeCore_dylibloader_wrapper_xcursor)(Display *, XcursorBool);
int initialize_xcursor(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
index 4e3349c574..56ae854686 100644
--- a/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
@@ -1,19 +1,11 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:11:29
-// flags: generate-wrapper.py --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xext.h" --include ./thirdparty/linuxbsd_headers/X11/extensions/shape.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/shape.h" --soname libXext.so.6 --init-name xext --output-header ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xext.h --include ./thirdparty/linuxbsd_headers/X11/extensions/shape.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/shape.h --soname libXext.so.6 --init-name xext --output-header ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c --ignore-other --implementation-header thirdparty/linuxbsd_headers/X11/Xlib.h
//
-// NOTE: Generated from Xext 1.3.5.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXext.so.6, were removed and an include needed for
-// proper parsing was added (this had also to be temporarily added to the
-// original header, as dynload-wrapper would complain otherwise)
#include <stdint.h>
-// HANDPATCH: Needed for a successful compilation.
#include "thirdparty/linuxbsd_headers/X11/Xlib.h"
-
#define XShapeQueryExtension XShapeQueryExtension_dylibloader_orig_xext
#define XShapeQueryVersion XShapeQueryVersion_dylibloader_orig_xext
#define XShapeCombineRegion XShapeCombineRegion_dylibloader_orig_xext
@@ -40,17 +32,17 @@
#undef XShapeGetRectangles
#include <dlfcn.h>
#include <stdio.h>
-int (*XShapeQueryExtension_dylibloader_wrapper_xext)( Display*, int*, int*);
-int (*XShapeQueryVersion_dylibloader_wrapper_xext)( Display*, int*, int*);
-void (*XShapeCombineRegion_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Region, int);
-void (*XShapeCombineRectangles_dylibloader_wrapper_xext)( Display*, Window, int, int, int, XRectangle*, int, int, int);
-void (*XShapeCombineMask_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Pixmap, int);
-void (*XShapeCombineShape_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Window, int, int);
-void (*XShapeOffsetShape_dylibloader_wrapper_xext)( Display*, Window, int, int, int);
-int (*XShapeQueryExtents_dylibloader_wrapper_xext)( Display*, Window, int*, int*, int*, unsigned int*, unsigned int*, int*, int*, int*, unsigned int*, unsigned int*);
-void (*XShapeSelectInput_dylibloader_wrapper_xext)( Display*, Window, unsigned long);
-unsigned long (*XShapeInputSelected_dylibloader_wrapper_xext)( Display*, Window);
-XRectangle* (*XShapeGetRectangles_dylibloader_wrapper_xext)( Display*, Window, int, int*, int*);
+int (*XShapeQueryExtension_dylibloader_wrapper_xext)(Display *, int *, int *);
+int (*XShapeQueryVersion_dylibloader_wrapper_xext)(Display *, int *, int *);
+void (*XShapeCombineRegion_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Region, int);
+void (*XShapeCombineRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int, int, XRectangle *, int, int, int);
+void (*XShapeCombineMask_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Pixmap, int);
+void (*XShapeCombineShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Window, int, int);
+void (*XShapeOffsetShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int);
+int (*XShapeQueryExtents_dylibloader_wrapper_xext)(Display *, Window, int *, int *, int *, unsigned int *, unsigned int *, int *, int *, int *, unsigned int *, unsigned int *);
+void (*XShapeSelectInput_dylibloader_wrapper_xext)(Display *, Window, unsigned long);
+unsigned long (*XShapeInputSelected_dylibloader_wrapper_xext)(Display *, Window);
+XRectangle *(*XShapeGetRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int *, int *);
int initialize_xext(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h
index e535756d82..ecce399d09 100644
--- a/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h
@@ -2,20 +2,11 @@
#define DYLIBLOAD_WRAPPER_XEXT
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:11:29
-// flags: generate-wrapper.py --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xext.h" --include ./thirdparty/linuxbsd_headers/X11/extensions/shape.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/shape.h" --soname libXext.so.6 --init-name xext --output-header ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xext.h --include ./thirdparty/linuxbsd_headers/X11/extensions/shape.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/shape.h --soname libXext.so.6 --init-name xext --output-header ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xext-so_wrap.c --ignore-other --implementation-header thirdparty/linuxbsd_headers/X11/Xlib.h
//
-// NOTE: Generated from Xext 1.3.5.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXext.so.6, were removed and an include needed for
-// proper parsing was added (this had also to be temporarily added to the
-// original header, as dynload-wrapper would complain otherwise)
#include <stdint.h>
-// HANDPATCH: Needed for a successful compilation.
-#include "thirdparty/linuxbsd_headers/X11/Xlib.h"
-
#define XShapeQueryExtension XShapeQueryExtension_dylibloader_orig_xext
#define XShapeQueryVersion XShapeQueryVersion_dylibloader_orig_xext
#define XShapeCombineRegion XShapeCombineRegion_dylibloader_orig_xext
@@ -54,17 +45,17 @@ extern "C" {
#define XShapeSelectInput XShapeSelectInput_dylibloader_wrapper_xext
#define XShapeInputSelected XShapeInputSelected_dylibloader_wrapper_xext
#define XShapeGetRectangles XShapeGetRectangles_dylibloader_wrapper_xext
-extern int (*XShapeQueryExtension_dylibloader_wrapper_xext)( Display*, int*, int*);
-extern int (*XShapeQueryVersion_dylibloader_wrapper_xext)( Display*, int*, int*);
-extern void (*XShapeCombineRegion_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Region, int);
-extern void (*XShapeCombineRectangles_dylibloader_wrapper_xext)( Display*, Window, int, int, int, XRectangle*, int, int, int);
-extern void (*XShapeCombineMask_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Pixmap, int);
-extern void (*XShapeCombineShape_dylibloader_wrapper_xext)( Display*, Window, int, int, int, Window, int, int);
-extern void (*XShapeOffsetShape_dylibloader_wrapper_xext)( Display*, Window, int, int, int);
-extern int (*XShapeQueryExtents_dylibloader_wrapper_xext)( Display*, Window, int*, int*, int*, unsigned int*, unsigned int*, int*, int*, int*, unsigned int*, unsigned int*);
-extern void (*XShapeSelectInput_dylibloader_wrapper_xext)( Display*, Window, unsigned long);
-extern unsigned long (*XShapeInputSelected_dylibloader_wrapper_xext)( Display*, Window);
-extern XRectangle* (*XShapeGetRectangles_dylibloader_wrapper_xext)( Display*, Window, int, int*, int*);
+extern int (*XShapeQueryExtension_dylibloader_wrapper_xext)(Display *, int *, int *);
+extern int (*XShapeQueryVersion_dylibloader_wrapper_xext)(Display *, int *, int *);
+extern void (*XShapeCombineRegion_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Region, int);
+extern void (*XShapeCombineRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int, int, XRectangle *, int, int, int);
+extern void (*XShapeCombineMask_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Pixmap, int);
+extern void (*XShapeCombineShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int, Window, int, int);
+extern void (*XShapeOffsetShape_dylibloader_wrapper_xext)(Display *, Window, int, int, int);
+extern int (*XShapeQueryExtents_dylibloader_wrapper_xext)(Display *, Window, int *, int *, int *, unsigned int *, unsigned int *, int *, int *, int *, unsigned int *, unsigned int *);
+extern void (*XShapeSelectInput_dylibloader_wrapper_xext)(Display *, Window, unsigned long);
+extern unsigned long (*XShapeInputSelected_dylibloader_wrapper_xext)(Display *, Window);
+extern XRectangle *(*XShapeGetRectangles_dylibloader_wrapper_xext)(Display *, Window, int, int *, int *);
int initialize_xext(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c
index 850ed1fc6b..eeb6bf7a8f 100644
--- a/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c
@@ -1,12 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:11:35
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h" --soname libXinerama.so.1 --init-name xinerama --output-header ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --soname libXinerama.so.1 --init-name xinerama --output-header ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xinerama 1.1.4.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXinerama.so.1, were removed.
#include <stdint.h>
#define XineramaQueryExtension XineramaQueryExtension_dylibloader_orig_xinerama
@@ -20,10 +16,10 @@
#undef XineramaQueryScreens
#include <dlfcn.h>
#include <stdio.h>
-int (*XineramaQueryExtension_dylibloader_wrapper_xinerama)( Display*, int*, int*);
-int (*XineramaQueryVersion_dylibloader_wrapper_xinerama)( Display*, int*, int*);
-int (*XineramaIsActive_dylibloader_wrapper_xinerama)( Display*);
-XineramaScreenInfo* (*XineramaQueryScreens_dylibloader_wrapper_xinerama)( Display*, int*);
+int (*XineramaQueryExtension_dylibloader_wrapper_xinerama)(Display *, int *, int *);
+int (*XineramaQueryVersion_dylibloader_wrapper_xinerama)(Display *, int *, int *);
+int (*XineramaIsActive_dylibloader_wrapper_xinerama)(Display *);
+XineramaScreenInfo *(*XineramaQueryScreens_dylibloader_wrapper_xinerama)(Display *, int *);
int initialize_xinerama(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h
index e3cedfc8ad..b421a0ecf5 100644
--- a/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h
@@ -2,13 +2,9 @@
#define DYLIBLOAD_WRAPPER_XINERAMA
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:11:35
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h" --soname libXinerama.so.1 --init-name xinerama --output-header ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xinerama.h --soname libXinerama.so.1 --init-name xinerama --output-header ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinerama-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xinerama 1.1.4.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXinerama.so.1, were removed.
#include <stdint.h>
#define XineramaQueryExtension XineramaQueryExtension_dylibloader_orig_xinerama
@@ -27,10 +23,10 @@ extern "C" {
#define XineramaQueryVersion XineramaQueryVersion_dylibloader_wrapper_xinerama
#define XineramaIsActive XineramaIsActive_dylibloader_wrapper_xinerama
#define XineramaQueryScreens XineramaQueryScreens_dylibloader_wrapper_xinerama
-extern int (*XineramaQueryExtension_dylibloader_wrapper_xinerama)( Display*, int*, int*);
-extern int (*XineramaQueryVersion_dylibloader_wrapper_xinerama)( Display*, int*, int*);
-extern int (*XineramaIsActive_dylibloader_wrapper_xinerama)( Display*);
-extern XineramaScreenInfo* (*XineramaQueryScreens_dylibloader_wrapper_xinerama)( Display*, int*);
+extern int (*XineramaQueryExtension_dylibloader_wrapper_xinerama)(Display *, int *, int *);
+extern int (*XineramaQueryVersion_dylibloader_wrapper_xinerama)(Display *, int *, int *);
+extern int (*XineramaIsActive_dylibloader_wrapper_xinerama)(Display *);
+extern XineramaScreenInfo *(*XineramaQueryScreens_dylibloader_wrapper_xinerama)(Display *, int *);
int initialize_xinerama(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c
index fc08b97e3c..8f031acb20 100644
--- a/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c
@@ -1,12 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:12:16
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/XInput2.h" --soname libXi.so.6 --init-name xinput2 --output-header ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --soname libXi.so.6 --init-name xinput2 --output-header ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xi 1.7.10.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, liXext and libXfixes, but absent in libXi.so.6, were removed.
#include <stdint.h>
#define XIQueryPointer XIQueryPointer_dylibloader_orig_xinput2
@@ -80,40 +76,40 @@
#undef XIFreeDeviceInfo
#include <dlfcn.h>
#include <stdio.h>
-int (*XIQueryPointer_dylibloader_wrapper_xinput2)( Display*, int, Window, Window*, Window*, double*, double*, double*, double*, XIButtonState*, XIModifierState*, XIGroupState*);
-int (*XIWarpPointer_dylibloader_wrapper_xinput2)( Display*, int, Window, Window, double, double, unsigned int, unsigned int, double, double);
-int (*XIDefineCursor_dylibloader_wrapper_xinput2)( Display*, int, Window, Cursor);
-int (*XIUndefineCursor_dylibloader_wrapper_xinput2)( Display*, int, Window);
-int (*XIChangeHierarchy_dylibloader_wrapper_xinput2)( Display*, XIAnyHierarchyChangeInfo*, int);
-int (*XISetClientPointer_dylibloader_wrapper_xinput2)( Display*, Window, int);
-int (*XIGetClientPointer_dylibloader_wrapper_xinput2)( Display*, Window, int*);
-int (*XISelectEvents_dylibloader_wrapper_xinput2)( Display*, Window, XIEventMask*, int);
-XIEventMask* (*XIGetSelectedEvents_dylibloader_wrapper_xinput2)( Display*, Window, int*);
-int (*XIQueryVersion_dylibloader_wrapper_xinput2)( Display*, int*, int*);
-XIDeviceInfo* (*XIQueryDevice_dylibloader_wrapper_xinput2)( Display*, int, int*);
-int (*XISetFocus_dylibloader_wrapper_xinput2)( Display*, int, Window, Time);
-int (*XIGetFocus_dylibloader_wrapper_xinput2)( Display*, int, Window*);
-int (*XIGrabDevice_dylibloader_wrapper_xinput2)( Display*, int, Window, Time, Cursor, int, int, int, XIEventMask*);
-int (*XIUngrabDevice_dylibloader_wrapper_xinput2)( Display*, int, Time);
-int (*XIAllowEvents_dylibloader_wrapper_xinput2)( Display*, int, int, Time);
-int (*XIAllowTouchEvents_dylibloader_wrapper_xinput2)( Display*, int, unsigned int, Window, int);
-int (*XIGrabButton_dylibloader_wrapper_xinput2)( Display*, int, int, Window, Cursor, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-int (*XIGrabKeycode_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-int (*XIGrabEnter_dylibloader_wrapper_xinput2)( Display*, int, Window, Cursor, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-int (*XIGrabFocusIn_dylibloader_wrapper_xinput2)( Display*, int, Window, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-int (*XIGrabTouchBegin_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIEventMask*, int, XIGrabModifiers*);
-int (*XIUngrabButton_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, XIGrabModifiers*);
-int (*XIUngrabKeycode_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, XIGrabModifiers*);
-int (*XIUngrabEnter_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-int (*XIUngrabFocusIn_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-int (*XIUngrabTouchBegin_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-Atom* (*XIListProperties_dylibloader_wrapper_xinput2)( Display*, int, int*);
-void (*XIChangeProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom, Atom, int, int, unsigned char*, int);
-void (*XIDeleteProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom);
-int (*XIGetProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-void (*XIBarrierReleasePointers_dylibloader_wrapper_xinput2)( Display*, XIBarrierReleasePointerInfo*, int);
-void (*XIBarrierReleasePointer_dylibloader_wrapper_xinput2)( Display*, int, PointerBarrier, BarrierEventID);
-void (*XIFreeDeviceInfo_dylibloader_wrapper_xinput2)( XIDeviceInfo*);
+int (*XIQueryPointer_dylibloader_wrapper_xinput2)(Display *, int, Window, Window *, Window *, double *, double *, double *, double *, XIButtonState *, XIModifierState *, XIGroupState *);
+int (*XIWarpPointer_dylibloader_wrapper_xinput2)(Display *, int, Window, Window, double, double, unsigned int, unsigned int, double, double);
+int (*XIDefineCursor_dylibloader_wrapper_xinput2)(Display *, int, Window, Cursor);
+int (*XIUndefineCursor_dylibloader_wrapper_xinput2)(Display *, int, Window);
+int (*XIChangeHierarchy_dylibloader_wrapper_xinput2)(Display *, XIAnyHierarchyChangeInfo *, int);
+int (*XISetClientPointer_dylibloader_wrapper_xinput2)(Display *, Window, int);
+int (*XIGetClientPointer_dylibloader_wrapper_xinput2)(Display *, Window, int *);
+int (*XISelectEvents_dylibloader_wrapper_xinput2)(Display *, Window, XIEventMask *, int);
+XIEventMask *(*XIGetSelectedEvents_dylibloader_wrapper_xinput2)(Display *, Window, int *);
+int (*XIQueryVersion_dylibloader_wrapper_xinput2)(Display *, int *, int *);
+XIDeviceInfo *(*XIQueryDevice_dylibloader_wrapper_xinput2)(Display *, int, int *);
+int (*XISetFocus_dylibloader_wrapper_xinput2)(Display *, int, Window, Time);
+int (*XIGetFocus_dylibloader_wrapper_xinput2)(Display *, int, Window *);
+int (*XIGrabDevice_dylibloader_wrapper_xinput2)(Display *, int, Window, Time, Cursor, int, int, int, XIEventMask *);
+int (*XIUngrabDevice_dylibloader_wrapper_xinput2)(Display *, int, Time);
+int (*XIAllowEvents_dylibloader_wrapper_xinput2)(Display *, int, int, Time);
+int (*XIAllowTouchEvents_dylibloader_wrapper_xinput2)(Display *, int, unsigned int, Window, int);
+int (*XIGrabButton_dylibloader_wrapper_xinput2)(Display *, int, int, Window, Cursor, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+int (*XIGrabKeycode_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+int (*XIGrabEnter_dylibloader_wrapper_xinput2)(Display *, int, Window, Cursor, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+int (*XIGrabFocusIn_dylibloader_wrapper_xinput2)(Display *, int, Window, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+int (*XIGrabTouchBegin_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIEventMask *, int, XIGrabModifiers *);
+int (*XIUngrabButton_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, XIGrabModifiers *);
+int (*XIUngrabKeycode_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, XIGrabModifiers *);
+int (*XIUngrabEnter_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+int (*XIUngrabFocusIn_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+int (*XIUngrabTouchBegin_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+Atom *(*XIListProperties_dylibloader_wrapper_xinput2)(Display *, int, int *);
+void (*XIChangeProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom, Atom, int, int, unsigned char *, int);
+void (*XIDeleteProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom);
+int (*XIGetProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom, long, long, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+void (*XIBarrierReleasePointers_dylibloader_wrapper_xinput2)(Display *, XIBarrierReleasePointerInfo *, int);
+void (*XIBarrierReleasePointer_dylibloader_wrapper_xinput2)(Display *, int, PointerBarrier, BarrierEventID);
+void (*XIFreeDeviceInfo_dylibloader_wrapper_xinput2)(XIDeviceInfo *);
int initialize_xinput2(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h
index 571072c3cd..7c54dc080a 100644
--- a/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h
@@ -2,13 +2,9 @@
#define DYLIBLOAD_WRAPPER_XINPUT2
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:12:16
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/XInput2.h" --soname libXi.so.6 --init-name xinput2 --output-header ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/XInput2.h --soname libXi.so.6 --init-name xinput2 --output-header ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xinput2-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xi 1.7.10.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, liXext and libXfixes, but absent in libXi.so.6, were removed.
#include <stdint.h>
#define XIQueryPointer XIQueryPointer_dylibloader_orig_xinput2
@@ -117,40 +113,40 @@ extern "C" {
#define XIBarrierReleasePointers XIBarrierReleasePointers_dylibloader_wrapper_xinput2
#define XIBarrierReleasePointer XIBarrierReleasePointer_dylibloader_wrapper_xinput2
#define XIFreeDeviceInfo XIFreeDeviceInfo_dylibloader_wrapper_xinput2
-extern int (*XIQueryPointer_dylibloader_wrapper_xinput2)( Display*, int, Window, Window*, Window*, double*, double*, double*, double*, XIButtonState*, XIModifierState*, XIGroupState*);
-extern int (*XIWarpPointer_dylibloader_wrapper_xinput2)( Display*, int, Window, Window, double, double, unsigned int, unsigned int, double, double);
-extern int (*XIDefineCursor_dylibloader_wrapper_xinput2)( Display*, int, Window, Cursor);
-extern int (*XIUndefineCursor_dylibloader_wrapper_xinput2)( Display*, int, Window);
-extern int (*XIChangeHierarchy_dylibloader_wrapper_xinput2)( Display*, XIAnyHierarchyChangeInfo*, int);
-extern int (*XISetClientPointer_dylibloader_wrapper_xinput2)( Display*, Window, int);
-extern int (*XIGetClientPointer_dylibloader_wrapper_xinput2)( Display*, Window, int*);
-extern int (*XISelectEvents_dylibloader_wrapper_xinput2)( Display*, Window, XIEventMask*, int);
-extern XIEventMask* (*XIGetSelectedEvents_dylibloader_wrapper_xinput2)( Display*, Window, int*);
-extern int (*XIQueryVersion_dylibloader_wrapper_xinput2)( Display*, int*, int*);
-extern XIDeviceInfo* (*XIQueryDevice_dylibloader_wrapper_xinput2)( Display*, int, int*);
-extern int (*XISetFocus_dylibloader_wrapper_xinput2)( Display*, int, Window, Time);
-extern int (*XIGetFocus_dylibloader_wrapper_xinput2)( Display*, int, Window*);
-extern int (*XIGrabDevice_dylibloader_wrapper_xinput2)( Display*, int, Window, Time, Cursor, int, int, int, XIEventMask*);
-extern int (*XIUngrabDevice_dylibloader_wrapper_xinput2)( Display*, int, Time);
-extern int (*XIAllowEvents_dylibloader_wrapper_xinput2)( Display*, int, int, Time);
-extern int (*XIAllowTouchEvents_dylibloader_wrapper_xinput2)( Display*, int, unsigned int, Window, int);
-extern int (*XIGrabButton_dylibloader_wrapper_xinput2)( Display*, int, int, Window, Cursor, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-extern int (*XIGrabKeycode_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-extern int (*XIGrabEnter_dylibloader_wrapper_xinput2)( Display*, int, Window, Cursor, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-extern int (*XIGrabFocusIn_dylibloader_wrapper_xinput2)( Display*, int, Window, int, int, int, XIEventMask*, int, XIGrabModifiers*);
-extern int (*XIGrabTouchBegin_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIEventMask*, int, XIGrabModifiers*);
-extern int (*XIUngrabButton_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, XIGrabModifiers*);
-extern int (*XIUngrabKeycode_dylibloader_wrapper_xinput2)( Display*, int, int, Window, int, XIGrabModifiers*);
-extern int (*XIUngrabEnter_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-extern int (*XIUngrabFocusIn_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-extern int (*XIUngrabTouchBegin_dylibloader_wrapper_xinput2)( Display*, int, Window, int, XIGrabModifiers*);
-extern Atom* (*XIListProperties_dylibloader_wrapper_xinput2)( Display*, int, int*);
-extern void (*XIChangeProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom, Atom, int, int, unsigned char*, int);
-extern void (*XIDeleteProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom);
-extern int (*XIGetProperty_dylibloader_wrapper_xinput2)( Display*, int, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-extern void (*XIBarrierReleasePointers_dylibloader_wrapper_xinput2)( Display*, XIBarrierReleasePointerInfo*, int);
-extern void (*XIBarrierReleasePointer_dylibloader_wrapper_xinput2)( Display*, int, PointerBarrier, BarrierEventID);
-extern void (*XIFreeDeviceInfo_dylibloader_wrapper_xinput2)( XIDeviceInfo*);
+extern int (*XIQueryPointer_dylibloader_wrapper_xinput2)(Display *, int, Window, Window *, Window *, double *, double *, double *, double *, XIButtonState *, XIModifierState *, XIGroupState *);
+extern int (*XIWarpPointer_dylibloader_wrapper_xinput2)(Display *, int, Window, Window, double, double, unsigned int, unsigned int, double, double);
+extern int (*XIDefineCursor_dylibloader_wrapper_xinput2)(Display *, int, Window, Cursor);
+extern int (*XIUndefineCursor_dylibloader_wrapper_xinput2)(Display *, int, Window);
+extern int (*XIChangeHierarchy_dylibloader_wrapper_xinput2)(Display *, XIAnyHierarchyChangeInfo *, int);
+extern int (*XISetClientPointer_dylibloader_wrapper_xinput2)(Display *, Window, int);
+extern int (*XIGetClientPointer_dylibloader_wrapper_xinput2)(Display *, Window, int *);
+extern int (*XISelectEvents_dylibloader_wrapper_xinput2)(Display *, Window, XIEventMask *, int);
+extern XIEventMask *(*XIGetSelectedEvents_dylibloader_wrapper_xinput2)(Display *, Window, int *);
+extern int (*XIQueryVersion_dylibloader_wrapper_xinput2)(Display *, int *, int *);
+extern XIDeviceInfo *(*XIQueryDevice_dylibloader_wrapper_xinput2)(Display *, int, int *);
+extern int (*XISetFocus_dylibloader_wrapper_xinput2)(Display *, int, Window, Time);
+extern int (*XIGetFocus_dylibloader_wrapper_xinput2)(Display *, int, Window *);
+extern int (*XIGrabDevice_dylibloader_wrapper_xinput2)(Display *, int, Window, Time, Cursor, int, int, int, XIEventMask *);
+extern int (*XIUngrabDevice_dylibloader_wrapper_xinput2)(Display *, int, Time);
+extern int (*XIAllowEvents_dylibloader_wrapper_xinput2)(Display *, int, int, Time);
+extern int (*XIAllowTouchEvents_dylibloader_wrapper_xinput2)(Display *, int, unsigned int, Window, int);
+extern int (*XIGrabButton_dylibloader_wrapper_xinput2)(Display *, int, int, Window, Cursor, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+extern int (*XIGrabKeycode_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+extern int (*XIGrabEnter_dylibloader_wrapper_xinput2)(Display *, int, Window, Cursor, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+extern int (*XIGrabFocusIn_dylibloader_wrapper_xinput2)(Display *, int, Window, int, int, int, XIEventMask *, int, XIGrabModifiers *);
+extern int (*XIGrabTouchBegin_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIEventMask *, int, XIGrabModifiers *);
+extern int (*XIUngrabButton_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, XIGrabModifiers *);
+extern int (*XIUngrabKeycode_dylibloader_wrapper_xinput2)(Display *, int, int, Window, int, XIGrabModifiers *);
+extern int (*XIUngrabEnter_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+extern int (*XIUngrabFocusIn_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+extern int (*XIUngrabTouchBegin_dylibloader_wrapper_xinput2)(Display *, int, Window, int, XIGrabModifiers *);
+extern Atom *(*XIListProperties_dylibloader_wrapper_xinput2)(Display *, int, int *);
+extern void (*XIChangeProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom, Atom, int, int, unsigned char *, int);
+extern void (*XIDeleteProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom);
+extern int (*XIGetProperty_dylibloader_wrapper_xinput2)(Display *, int, Atom, long, long, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+extern void (*XIBarrierReleasePointers_dylibloader_wrapper_xinput2)(Display *, XIBarrierReleasePointerInfo *, int);
+extern void (*XIBarrierReleasePointer_dylibloader_wrapper_xinput2)(Display *, int, PointerBarrier, BarrierEventID);
+extern void (*XIFreeDeviceInfo_dylibloader_wrapper_xinput2)(XIDeviceInfo *);
int initialize_xinput2(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c
index d2838569b0..8500f20198 100644
--- a/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c
@@ -1,14 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:13:26
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xlib.h --include ./thirdparty/linuxbsd_headers/X11/Xutil.h --include ./thirdparty/linuxbsd_headers/X11/XKBlib.h --sys-include "thirdparty/linuxbsd_headers/X11/Xlib.h" --sys-include "thirdparty/linuxbsd_headers/X11/Xutil.h" --sys-include "thirdparty/linuxbsd_headers/X11/XKBlib.h" --soname libX11.so.6 --init-name xlib --omit-prefix XkbGetDeviceIndicatorState --omit-prefix XkbAddSymInterpret --output-header ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c~
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xlib.h --include ./thirdparty/linuxbsd_headers/X11/Xutil.h --include ./thirdparty/linuxbsd_headers/X11/XKBlib.h --sys-include thirdparty/linuxbsd_headers/X11/Xlib.h --sys-include thirdparty/linuxbsd_headers/X11/Xutil.h --sys-include thirdparty/linuxbsd_headers/X11/XKBlib.h --soname libX11.so.6 --init-name xlib --omit-prefix XkbGetDeviceIndicatorState --omit-prefix XkbAddSymInterpret --output-header ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c
//
-// NOTE: Generated from Xlib 1.6.9.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, the type of the third argument of
-// XIfEvent, XPeekIfEvent and XCheckIfEvent had to be fixed as it wasn't parsed
-// fully (it's a Bool function pointer, but it was just being parsed as an int
-// pointer).
#include <stdint.h>
#define _Xmblen _Xmblen_dylibloader_orig_xlib
@@ -100,6 +94,7 @@
#define XScreenNumberOfScreen XScreenNumberOfScreen_dylibloader_orig_xlib
#define XSetErrorHandler XSetErrorHandler_dylibloader_orig_xlib
#define XSetIOErrorHandler XSetIOErrorHandler_dylibloader_orig_xlib
+#define XSetIOErrorExitHandler XSetIOErrorExitHandler_dylibloader_orig_xlib
#define XListPixmapFormats XListPixmapFormats_dylibloader_orig_xlib
#define XListDepths XListDepths_dylibloader_orig_xlib
#define XReconfigureWMWindow XReconfigureWMWindow_dylibloader_orig_xlib
@@ -423,6 +418,7 @@
#define _Xwctomb _Xwctomb_dylibloader_orig_xlib
#define XGetEventData XGetEventData_dylibloader_orig_xlib
#define XFreeEventData XFreeEventData_dylibloader_orig_xlib
+#define XFreeThreads XFreeThreads_dylibloader_orig_xlib
#define XAllocClassHint XAllocClassHint_dylibloader_orig_xlib
#define XAllocIconSize XAllocIconSize_dylibloader_orig_xlib
#define XAllocSizeHints XAllocSizeHints_dylibloader_orig_xlib
@@ -706,6 +702,7 @@
#undef XScreenNumberOfScreen
#undef XSetErrorHandler
#undef XSetIOErrorHandler
+#undef XSetIOErrorExitHandler
#undef XListPixmapFormats
#undef XListDepths
#undef XReconfigureWMWindow
@@ -1029,6 +1026,7 @@
#undef _Xwctomb
#undef XGetEventData
#undef XFreeEventData
+#undef XFreeThreads
#undef XAllocClassHint
#undef XAllocIconSize
#undef XAllocSizeHints
@@ -1222,609 +1220,611 @@
#undef XkbUpdateKeyTypeVirtualMods
#include <dlfcn.h>
#include <stdio.h>
-int (*_Xmblen_dylibloader_wrapper_xlib)( char*, int);
-XFontStruct* (*XLoadQueryFont_dylibloader_wrapper_xlib)( Display*,const char*);
-XFontStruct* (*XQueryFont_dylibloader_wrapper_xlib)( Display*, XID);
-XTimeCoord* (*XGetMotionEvents_dylibloader_wrapper_xlib)( Display*, Window, Time, Time, int*);
-XModifierKeymap* (*XDeleteModifiermapEntry_dylibloader_wrapper_xlib)( XModifierKeymap*, KeyCode, int);
-XModifierKeymap* (*XGetModifierMapping_dylibloader_wrapper_xlib)( Display*);
-XModifierKeymap* (*XInsertModifiermapEntry_dylibloader_wrapper_xlib)( XModifierKeymap*, KeyCode, int);
-XModifierKeymap* (*XNewModifiermap_dylibloader_wrapper_xlib)( int);
-XImage* (*XCreateImage_dylibloader_wrapper_xlib)( Display*, Visual*, unsigned int, int, int, char*, unsigned int, unsigned int, int, int);
-int (*XInitImage_dylibloader_wrapper_xlib)( XImage*);
-XImage* (*XGetImage_dylibloader_wrapper_xlib)( Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
-XImage* (*XGetSubImage_dylibloader_wrapper_xlib)( Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int, XImage*, int, int);
-Display* (*XOpenDisplay_dylibloader_wrapper_xlib)(const char*);
-void (*XrmInitialize_dylibloader_wrapper_xlib)( void);
-char* (*XFetchBytes_dylibloader_wrapper_xlib)( Display*, int*);
-char* (*XFetchBuffer_dylibloader_wrapper_xlib)( Display*, int*, int);
-char* (*XGetAtomName_dylibloader_wrapper_xlib)( Display*, Atom);
-int (*XGetAtomNames_dylibloader_wrapper_xlib)( Display*, Atom*, int, char**);
-char* (*XGetDefault_dylibloader_wrapper_xlib)( Display*,const char*,const char*);
-char* (*XDisplayName_dylibloader_wrapper_xlib)(const char*);
-char* (*XKeysymToString_dylibloader_wrapper_xlib)( KeySym);
-int* (*XSynchronize_dylibloader_wrapper_xlib)( Display*, int);
-int* (*XSetAfterFunction_dylibloader_wrapper_xlib)( Display*, int*);
-Atom (*XInternAtom_dylibloader_wrapper_xlib)( Display*,const char*, int);
-int (*XInternAtoms_dylibloader_wrapper_xlib)( Display*, char**, int, int, Atom*);
-Colormap (*XCopyColormapAndFree_dylibloader_wrapper_xlib)( Display*, Colormap);
-Colormap (*XCreateColormap_dylibloader_wrapper_xlib)( Display*, Window, Visual*, int);
-Cursor (*XCreatePixmapCursor_dylibloader_wrapper_xlib)( Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
-Cursor (*XCreateGlyphCursor_dylibloader_wrapper_xlib)( Display*, Font, Font, unsigned int, unsigned int,const XColor*,const XColor*);
-Cursor (*XCreateFontCursor_dylibloader_wrapper_xlib)( Display*, unsigned int);
-Font (*XLoadFont_dylibloader_wrapper_xlib)( Display*,const char*);
-GC (*XCreateGC_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned long, XGCValues*);
-GContext (*XGContextFromGC_dylibloader_wrapper_xlib)( GC);
-void (*XFlushGC_dylibloader_wrapper_xlib)( Display*, GC);
-Pixmap (*XCreatePixmap_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int);
-Pixmap (*XCreateBitmapFromData_dylibloader_wrapper_xlib)( Display*, Drawable,const char*, unsigned int, unsigned int);
-Pixmap (*XCreatePixmapFromBitmapData_dylibloader_wrapper_xlib)( Display*, Drawable, char*, unsigned int, unsigned int, unsigned long, unsigned long, unsigned int);
-Window (*XCreateSimpleWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long);
-Window (*XGetSelectionOwner_dylibloader_wrapper_xlib)( Display*, Atom);
-Window (*XCreateWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual*, unsigned long, XSetWindowAttributes*);
-Colormap* (*XListInstalledColormaps_dylibloader_wrapper_xlib)( Display*, Window, int*);
-char** (*XListFonts_dylibloader_wrapper_xlib)( Display*,const char*, int, int*);
-char** (*XListFontsWithInfo_dylibloader_wrapper_xlib)( Display*,const char*, int, int*, XFontStruct**);
-char** (*XGetFontPath_dylibloader_wrapper_xlib)( Display*, int*);
-char** (*XListExtensions_dylibloader_wrapper_xlib)( Display*, int*);
-Atom* (*XListProperties_dylibloader_wrapper_xlib)( Display*, Window, int*);
-XHostAddress* (*XListHosts_dylibloader_wrapper_xlib)( Display*, int*, int*);
-KeySym (*XKeycodeToKeysym_dylibloader_wrapper_xlib)( Display*, KeyCode, int);
-KeySym (*XLookupKeysym_dylibloader_wrapper_xlib)( XKeyEvent*, int);
-KeySym* (*XGetKeyboardMapping_dylibloader_wrapper_xlib)( Display*, KeyCode, int, int*);
-KeySym (*XStringToKeysym_dylibloader_wrapper_xlib)(const char*);
-long (*XMaxRequestSize_dylibloader_wrapper_xlib)( Display*);
-long (*XExtendedMaxRequestSize_dylibloader_wrapper_xlib)( Display*);
-char* (*XResourceManagerString_dylibloader_wrapper_xlib)( Display*);
-char* (*XScreenResourceString_dylibloader_wrapper_xlib)( Screen*);
-unsigned long (*XDisplayMotionBufferSize_dylibloader_wrapper_xlib)( Display*);
-VisualID (*XVisualIDFromVisual_dylibloader_wrapper_xlib)( Visual*);
-int (*XInitThreads_dylibloader_wrapper_xlib)( void);
-void (*XLockDisplay_dylibloader_wrapper_xlib)( Display*);
-void (*XUnlockDisplay_dylibloader_wrapper_xlib)( Display*);
-XExtCodes* (*XInitExtension_dylibloader_wrapper_xlib)( Display*,const char*);
-XExtCodes* (*XAddExtension_dylibloader_wrapper_xlib)( Display*);
-XExtData* (*XFindOnExtensionList_dylibloader_wrapper_xlib)( XExtData**, int);
-XExtData** (*XEHeadOfExtensionList_dylibloader_wrapper_xlib)( XEDataObject);
-Window (*XRootWindow_dylibloader_wrapper_xlib)( Display*, int);
-Window (*XDefaultRootWindow_dylibloader_wrapper_xlib)( Display*);
-Window (*XRootWindowOfScreen_dylibloader_wrapper_xlib)( Screen*);
-Visual* (*XDefaultVisual_dylibloader_wrapper_xlib)( Display*, int);
-Visual* (*XDefaultVisualOfScreen_dylibloader_wrapper_xlib)( Screen*);
-GC (*XDefaultGC_dylibloader_wrapper_xlib)( Display*, int);
-GC (*XDefaultGCOfScreen_dylibloader_wrapper_xlib)( Screen*);
-unsigned long (*XBlackPixel_dylibloader_wrapper_xlib)( Display*, int);
-unsigned long (*XWhitePixel_dylibloader_wrapper_xlib)( Display*, int);
-unsigned long (*XAllPlanes_dylibloader_wrapper_xlib)( void);
-unsigned long (*XBlackPixelOfScreen_dylibloader_wrapper_xlib)( Screen*);
-unsigned long (*XWhitePixelOfScreen_dylibloader_wrapper_xlib)( Screen*);
-unsigned long (*XNextRequest_dylibloader_wrapper_xlib)( Display*);
-unsigned long (*XLastKnownRequestProcessed_dylibloader_wrapper_xlib)( Display*);
-char* (*XServerVendor_dylibloader_wrapper_xlib)( Display*);
-char* (*XDisplayString_dylibloader_wrapper_xlib)( Display*);
-Colormap (*XDefaultColormap_dylibloader_wrapper_xlib)( Display*, int);
-Colormap (*XDefaultColormapOfScreen_dylibloader_wrapper_xlib)( Screen*);
-Display* (*XDisplayOfScreen_dylibloader_wrapper_xlib)( Screen*);
-Screen* (*XScreenOfDisplay_dylibloader_wrapper_xlib)( Display*, int);
-Screen* (*XDefaultScreenOfDisplay_dylibloader_wrapper_xlib)( Display*);
-long (*XEventMaskOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XScreenNumberOfScreen_dylibloader_wrapper_xlib)( Screen*);
-XErrorHandler (*XSetErrorHandler_dylibloader_wrapper_xlib)( XErrorHandler);
-XIOErrorHandler (*XSetIOErrorHandler_dylibloader_wrapper_xlib)( XIOErrorHandler);
-XPixmapFormatValues* (*XListPixmapFormats_dylibloader_wrapper_xlib)( Display*, int*);
-int* (*XListDepths_dylibloader_wrapper_xlib)( Display*, int, int*);
-int (*XReconfigureWMWindow_dylibloader_wrapper_xlib)( Display*, Window, int, unsigned int, XWindowChanges*);
-int (*XGetWMProtocols_dylibloader_wrapper_xlib)( Display*, Window, Atom**, int*);
-int (*XSetWMProtocols_dylibloader_wrapper_xlib)( Display*, Window, Atom*, int);
-int (*XIconifyWindow_dylibloader_wrapper_xlib)( Display*, Window, int);
-int (*XWithdrawWindow_dylibloader_wrapper_xlib)( Display*, Window, int);
-int (*XGetCommand_dylibloader_wrapper_xlib)( Display*, Window, char***, int*);
-int (*XGetWMColormapWindows_dylibloader_wrapper_xlib)( Display*, Window, Window**, int*);
-int (*XSetWMColormapWindows_dylibloader_wrapper_xlib)( Display*, Window, Window*, int);
-void (*XFreeStringList_dylibloader_wrapper_xlib)( char**);
-int (*XSetTransientForHint_dylibloader_wrapper_xlib)( Display*, Window, Window);
-int (*XActivateScreenSaver_dylibloader_wrapper_xlib)( Display*);
-int (*XAddHost_dylibloader_wrapper_xlib)( Display*, XHostAddress*);
-int (*XAddHosts_dylibloader_wrapper_xlib)( Display*, XHostAddress*, int);
-int (*XAddToExtensionList_dylibloader_wrapper_xlib)(struct _XExtData**, XExtData*);
-int (*XAddToSaveSet_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XAllocColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-int (*XAllocColorCells_dylibloader_wrapper_xlib)( Display*, Colormap, int, unsigned long*, unsigned int, unsigned long*, unsigned int);
-int (*XAllocColorPlanes_dylibloader_wrapper_xlib)( Display*, Colormap, int, unsigned long*, int, int, int, int, unsigned long*, unsigned long*, unsigned long*);
-int (*XAllocNamedColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*, XColor*);
-int (*XAllowEvents_dylibloader_wrapper_xlib)( Display*, int, Time);
-int (*XAutoRepeatOff_dylibloader_wrapper_xlib)( Display*);
-int (*XAutoRepeatOn_dylibloader_wrapper_xlib)( Display*);
-int (*XBell_dylibloader_wrapper_xlib)( Display*, int);
-int (*XBitmapBitOrder_dylibloader_wrapper_xlib)( Display*);
-int (*XBitmapPad_dylibloader_wrapper_xlib)( Display*);
-int (*XBitmapUnit_dylibloader_wrapper_xlib)( Display*);
-int (*XCellsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XChangeActivePointerGrab_dylibloader_wrapper_xlib)( Display*, unsigned int, Cursor, Time);
-int (*XChangeGC_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, XGCValues*);
-int (*XChangeKeyboardControl_dylibloader_wrapper_xlib)( Display*, unsigned long, XKeyboardControl*);
-int (*XChangeKeyboardMapping_dylibloader_wrapper_xlib)( Display*, int, int, KeySym*, int);
-int (*XChangePointerControl_dylibloader_wrapper_xlib)( Display*, int, int, int, int, int);
-int (*XChangeProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom, Atom, int, int,const unsigned char*, int);
-int (*XChangeSaveSet_dylibloader_wrapper_xlib)( Display*, Window, int);
-int (*XChangeWindowAttributes_dylibloader_wrapper_xlib)( Display*, Window, unsigned long, XSetWindowAttributes*);
-int (*XCheckIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-int (*XCheckMaskEvent_dylibloader_wrapper_xlib)( Display*, long, XEvent*);
-int (*XCheckTypedEvent_dylibloader_wrapper_xlib)( Display*, int, XEvent*);
-int (*XCheckTypedWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, int, XEvent*);
-int (*XCheckWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, long, XEvent*);
-int (*XCirculateSubwindows_dylibloader_wrapper_xlib)( Display*, Window, int);
-int (*XCirculateSubwindowsDown_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XCirculateSubwindowsUp_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XClearArea_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, int);
-int (*XClearWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XCloseDisplay_dylibloader_wrapper_xlib)( Display*);
-int (*XConfigureWindow_dylibloader_wrapper_xlib)( Display*, Window, unsigned int, XWindowChanges*);
-int (*XConnectionNumber_dylibloader_wrapper_xlib)( Display*);
-int (*XConvertSelection_dylibloader_wrapper_xlib)( Display*, Atom, Atom, Atom, Window, Time);
-int (*XCopyArea_dylibloader_wrapper_xlib)( Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-int (*XCopyGC_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, GC);
-int (*XCopyPlane_dylibloader_wrapper_xlib)( Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
-int (*XDefaultDepth_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDefaultDepthOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XDefaultScreen_dylibloader_wrapper_xlib)( Display*);
-int (*XDefineCursor_dylibloader_wrapper_xlib)( Display*, Window, Cursor);
-int (*XDeleteProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom);
-int (*XDestroyWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XDestroySubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XDoesBackingStore_dylibloader_wrapper_xlib)( Screen*);
-int (*XDoesSaveUnders_dylibloader_wrapper_xlib)( Screen*);
-int (*XDisableAccessControl_dylibloader_wrapper_xlib)( Display*);
-int (*XDisplayCells_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDisplayHeight_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDisplayHeightMM_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDisplayKeycodes_dylibloader_wrapper_xlib)( Display*, int*, int*);
-int (*XDisplayPlanes_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDisplayWidth_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDisplayWidthMM_dylibloader_wrapper_xlib)( Display*, int);
-int (*XDrawArc_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-int (*XDrawArcs_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XArc*, int);
-int (*XDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const char*, int);
-int (*XDrawImageString16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const XChar2b*, int);
-int (*XDrawLine_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, int, int);
-int (*XDrawLines_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int);
-int (*XDrawPoint_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int);
-int (*XDrawPoints_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int);
-int (*XDrawRectangle_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int);
-int (*XDrawRectangles_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XRectangle*, int);
-int (*XDrawSegments_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XSegment*, int);
-int (*XDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const char*, int);
-int (*XDrawString16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const XChar2b*, int);
-int (*XDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XTextItem*, int);
-int (*XDrawText16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XTextItem16*, int);
-int (*XEnableAccessControl_dylibloader_wrapper_xlib)( Display*);
-int (*XEventsQueued_dylibloader_wrapper_xlib)( Display*, int);
-int (*XFetchName_dylibloader_wrapper_xlib)( Display*, Window, char**);
-int (*XFillArc_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-int (*XFillArcs_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XArc*, int);
-int (*XFillPolygon_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int, int);
-int (*XFillRectangle_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int);
-int (*XFillRectangles_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XRectangle*, int);
-int (*XFlush_dylibloader_wrapper_xlib)( Display*);
-int (*XForceScreenSaver_dylibloader_wrapper_xlib)( Display*, int);
-int (*XFree_dylibloader_wrapper_xlib)( void*);
-int (*XFreeColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-int (*XFreeColors_dylibloader_wrapper_xlib)( Display*, Colormap, unsigned long*, int, unsigned long);
-int (*XFreeCursor_dylibloader_wrapper_xlib)( Display*, Cursor);
-int (*XFreeExtensionList_dylibloader_wrapper_xlib)( char**);
-int (*XFreeFont_dylibloader_wrapper_xlib)( Display*, XFontStruct*);
-int (*XFreeFontInfo_dylibloader_wrapper_xlib)( char**, XFontStruct*, int);
-int (*XFreeFontNames_dylibloader_wrapper_xlib)( char**);
-int (*XFreeFontPath_dylibloader_wrapper_xlib)( char**);
-int (*XFreeGC_dylibloader_wrapper_xlib)( Display*, GC);
-int (*XFreeModifiermap_dylibloader_wrapper_xlib)( XModifierKeymap*);
-int (*XFreePixmap_dylibloader_wrapper_xlib)( Display*, Pixmap);
-int (*XGeometry_dylibloader_wrapper_xlib)( Display*, int,const char*,const char*, unsigned int, unsigned int, unsigned int, int, int, int*, int*, int*, int*);
-int (*XGetErrorDatabaseText_dylibloader_wrapper_xlib)( Display*,const char*,const char*,const char*, char*, int);
-int (*XGetErrorText_dylibloader_wrapper_xlib)( Display*, int, char*, int);
-int (*XGetFontProperty_dylibloader_wrapper_xlib)( XFontStruct*, Atom, unsigned long*);
-int (*XGetGCValues_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, XGCValues*);
-int (*XGetGeometry_dylibloader_wrapper_xlib)( Display*, Drawable, Window*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
-int (*XGetIconName_dylibloader_wrapper_xlib)( Display*, Window, char**);
-int (*XGetInputFocus_dylibloader_wrapper_xlib)( Display*, Window*, int*);
-int (*XGetKeyboardControl_dylibloader_wrapper_xlib)( Display*, XKeyboardState*);
-int (*XGetPointerControl_dylibloader_wrapper_xlib)( Display*, int*, int*, int*);
-int (*XGetPointerMapping_dylibloader_wrapper_xlib)( Display*, unsigned char*, int);
-int (*XGetScreenSaver_dylibloader_wrapper_xlib)( Display*, int*, int*, int*, int*);
-int (*XGetTransientForHint_dylibloader_wrapper_xlib)( Display*, Window, Window*);
-int (*XGetWindowProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-int (*XGetWindowAttributes_dylibloader_wrapper_xlib)( Display*, Window, XWindowAttributes*);
-int (*XGrabButton_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, Window, int, unsigned int, int, int, Window, Cursor);
-int (*XGrabKey_dylibloader_wrapper_xlib)( Display*, int, unsigned int, Window, int, int, int);
-int (*XGrabKeyboard_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, Time);
-int (*XGrabPointer_dylibloader_wrapper_xlib)( Display*, Window, int, unsigned int, int, int, Window, Cursor, Time);
-int (*XGrabServer_dylibloader_wrapper_xlib)( Display*);
-int (*XHeightMMOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XHeightOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-int (*XImageByteOrder_dylibloader_wrapper_xlib)( Display*);
-int (*XInstallColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-KeyCode (*XKeysymToKeycode_dylibloader_wrapper_xlib)( Display*, KeySym);
-int (*XKillClient_dylibloader_wrapper_xlib)( Display*, XID);
-int (*XLookupColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*, XColor*);
-int (*XLowerWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XMapRaised_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XMapSubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XMapWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XMaskEvent_dylibloader_wrapper_xlib)( Display*, long, XEvent*);
-int (*XMaxCmapsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XMinCmapsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XMoveResizeWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int);
-int (*XMoveWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int);
-int (*XNextEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-int (*XNoOp_dylibloader_wrapper_xlib)( Display*);
-int (*XParseColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*);
-int (*XParseGeometry_dylibloader_wrapper_xlib)(const char*, int*, int*, unsigned int*, unsigned int*);
-int (*XPeekEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-int (*XPeekIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-int (*XPending_dylibloader_wrapper_xlib)( Display*);
-int (*XPlanesOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XProtocolRevision_dylibloader_wrapper_xlib)( Display*);
-int (*XProtocolVersion_dylibloader_wrapper_xlib)( Display*);
-int (*XPutBackEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-int (*XPutImage_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XImage*, int, int, int, int, unsigned int, unsigned int);
-int (*XQLength_dylibloader_wrapper_xlib)( Display*);
-int (*XQueryBestCursor_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-int (*XQueryBestSize_dylibloader_wrapper_xlib)( Display*, int, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-int (*XQueryBestStipple_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-int (*XQueryBestTile_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-int (*XQueryColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-int (*XQueryColors_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*, int);
-int (*XQueryExtension_dylibloader_wrapper_xlib)( Display*,const char*, int*, int*, int*);
-int (*XQueryKeymap_dylibloader_wrapper_xlib)( Display*, char [32]);
-int (*XQueryPointer_dylibloader_wrapper_xlib)( Display*, Window, Window*, Window*, int*, int*, int*, int*, unsigned int*);
-int (*XQueryTextExtents_dylibloader_wrapper_xlib)( Display*, XID,const char*, int, int*, int*, int*, XCharStruct*);
-int (*XQueryTextExtents16_dylibloader_wrapper_xlib)( Display*, XID,const XChar2b*, int, int*, int*, int*, XCharStruct*);
-int (*XQueryTree_dylibloader_wrapper_xlib)( Display*, Window, Window*, Window*, Window**, unsigned int*);
-int (*XRaiseWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XReadBitmapFile_dylibloader_wrapper_xlib)( Display*, Drawable,const char*, unsigned int*, unsigned int*, Pixmap*, int*, int*);
-int (*XReadBitmapFileData_dylibloader_wrapper_xlib)(const char*, unsigned int*, unsigned int*, unsigned char**, int*, int*);
-int (*XRebindKeysym_dylibloader_wrapper_xlib)( Display*, KeySym, KeySym*, int,const unsigned char*, int);
-int (*XRecolorCursor_dylibloader_wrapper_xlib)( Display*, Cursor, XColor*, XColor*);
-int (*XRefreshKeyboardMapping_dylibloader_wrapper_xlib)( XMappingEvent*);
-int (*XRemoveFromSaveSet_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XRemoveHost_dylibloader_wrapper_xlib)( Display*, XHostAddress*);
-int (*XRemoveHosts_dylibloader_wrapper_xlib)( Display*, XHostAddress*, int);
-int (*XReparentWindow_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int);
-int (*XResetScreenSaver_dylibloader_wrapper_xlib)( Display*);
-int (*XResizeWindow_dylibloader_wrapper_xlib)( Display*, Window, unsigned int, unsigned int);
-int (*XRestackWindows_dylibloader_wrapper_xlib)( Display*, Window*, int);
-int (*XRotateBuffers_dylibloader_wrapper_xlib)( Display*, int);
-int (*XRotateWindowProperties_dylibloader_wrapper_xlib)( Display*, Window, Atom*, int, int);
-int (*XScreenCount_dylibloader_wrapper_xlib)( Display*);
-int (*XSelectInput_dylibloader_wrapper_xlib)( Display*, Window, long);
-int (*XSendEvent_dylibloader_wrapper_xlib)( Display*, Window, int, long, XEvent*);
-int (*XSetAccessControl_dylibloader_wrapper_xlib)( Display*, int);
-int (*XSetArcMode_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetBackground_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-int (*XSetClipMask_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-int (*XSetClipOrigin_dylibloader_wrapper_xlib)( Display*, GC, int, int);
-int (*XSetClipRectangles_dylibloader_wrapper_xlib)( Display*, GC, int, int, XRectangle*, int, int);
-int (*XSetCloseDownMode_dylibloader_wrapper_xlib)( Display*, int);
-int (*XSetCommand_dylibloader_wrapper_xlib)( Display*, Window, char**, int);
-int (*XSetDashes_dylibloader_wrapper_xlib)( Display*, GC, int,const char*, int);
-int (*XSetFillRule_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetFillStyle_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetFont_dylibloader_wrapper_xlib)( Display*, GC, Font);
-int (*XSetFontPath_dylibloader_wrapper_xlib)( Display*, char**, int);
-int (*XSetForeground_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-int (*XSetFunction_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetGraphicsExposures_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetIconName_dylibloader_wrapper_xlib)( Display*, Window,const char*);
-int (*XSetInputFocus_dylibloader_wrapper_xlib)( Display*, Window, int, Time);
-int (*XSetLineAttributes_dylibloader_wrapper_xlib)( Display*, GC, unsigned int, int, int, int);
-int (*XSetModifierMapping_dylibloader_wrapper_xlib)( Display*, XModifierKeymap*);
-int (*XSetPlaneMask_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-int (*XSetPointerMapping_dylibloader_wrapper_xlib)( Display*,const unsigned char*, int);
-int (*XSetScreenSaver_dylibloader_wrapper_xlib)( Display*, int, int, int, int);
-int (*XSetSelectionOwner_dylibloader_wrapper_xlib)( Display*, Atom, Window, Time);
-int (*XSetState_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, unsigned long, int, unsigned long);
-int (*XSetStipple_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-int (*XSetSubwindowMode_dylibloader_wrapper_xlib)( Display*, GC, int);
-int (*XSetTSOrigin_dylibloader_wrapper_xlib)( Display*, GC, int, int);
-int (*XSetTile_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-int (*XSetWindowBackground_dylibloader_wrapper_xlib)( Display*, Window, unsigned long);
-int (*XSetWindowBackgroundPixmap_dylibloader_wrapper_xlib)( Display*, Window, Pixmap);
-int (*XSetWindowBorder_dylibloader_wrapper_xlib)( Display*, Window, unsigned long);
-int (*XSetWindowBorderPixmap_dylibloader_wrapper_xlib)( Display*, Window, Pixmap);
-int (*XSetWindowBorderWidth_dylibloader_wrapper_xlib)( Display*, Window, unsigned int);
-int (*XSetWindowColormap_dylibloader_wrapper_xlib)( Display*, Window, Colormap);
-int (*XStoreBuffer_dylibloader_wrapper_xlib)( Display*,const char*, int, int);
-int (*XStoreBytes_dylibloader_wrapper_xlib)( Display*,const char*, int);
-int (*XStoreColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-int (*XStoreColors_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*, int);
-int (*XStoreName_dylibloader_wrapper_xlib)( Display*, Window,const char*);
-int (*XStoreNamedColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, unsigned long, int);
-int (*XSync_dylibloader_wrapper_xlib)( Display*, int);
-int (*XTextExtents_dylibloader_wrapper_xlib)( XFontStruct*,const char*, int, int*, int*, int*, XCharStruct*);
-int (*XTextExtents16_dylibloader_wrapper_xlib)( XFontStruct*,const XChar2b*, int, int*, int*, int*, XCharStruct*);
-int (*XTextWidth_dylibloader_wrapper_xlib)( XFontStruct*,const char*, int);
-int (*XTextWidth16_dylibloader_wrapper_xlib)( XFontStruct*,const XChar2b*, int);
-int (*XTranslateCoordinates_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int, int*, int*, Window*);
-int (*XUndefineCursor_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XUngrabButton_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, Window);
-int (*XUngrabKey_dylibloader_wrapper_xlib)( Display*, int, unsigned int, Window);
-int (*XUngrabKeyboard_dylibloader_wrapper_xlib)( Display*, Time);
-int (*XUngrabPointer_dylibloader_wrapper_xlib)( Display*, Time);
-int (*XUngrabServer_dylibloader_wrapper_xlib)( Display*);
-int (*XUninstallColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-int (*XUnloadFont_dylibloader_wrapper_xlib)( Display*, Font);
-int (*XUnmapSubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XUnmapWindow_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XVendorRelease_dylibloader_wrapper_xlib)( Display*);
-int (*XWarpPointer_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int, unsigned int, unsigned int, int, int);
-int (*XWidthMMOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XWidthOfScreen_dylibloader_wrapper_xlib)( Screen*);
-int (*XWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, long, XEvent*);
-int (*XWriteBitmapFile_dylibloader_wrapper_xlib)( Display*,const char*, Pixmap, unsigned int, unsigned int, int, int);
-int (*XSupportsLocale_dylibloader_wrapper_xlib)( void);
-char* (*XSetLocaleModifiers_dylibloader_wrapper_xlib)(const char*);
-XOM (*XOpenOM_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*,const char*,const char*);
-int (*XCloseOM_dylibloader_wrapper_xlib)( XOM);
-char* (*XSetOMValues_dylibloader_wrapper_xlib)( XOM,...);
-char* (*XGetOMValues_dylibloader_wrapper_xlib)( XOM,...);
-Display* (*XDisplayOfOM_dylibloader_wrapper_xlib)( XOM);
-char* (*XLocaleOfOM_dylibloader_wrapper_xlib)( XOM);
-XOC (*XCreateOC_dylibloader_wrapper_xlib)( XOM,...);
-void (*XDestroyOC_dylibloader_wrapper_xlib)( XOC);
-XOM (*XOMOfOC_dylibloader_wrapper_xlib)( XOC);
-char* (*XSetOCValues_dylibloader_wrapper_xlib)( XOC,...);
-char* (*XGetOCValues_dylibloader_wrapper_xlib)( XOC,...);
-XFontSet (*XCreateFontSet_dylibloader_wrapper_xlib)( Display*,const char*, char***, int*, char**);
-void (*XFreeFontSet_dylibloader_wrapper_xlib)( Display*, XFontSet);
-int (*XFontsOfFontSet_dylibloader_wrapper_xlib)( XFontSet, XFontStruct***, char***);
-char* (*XBaseFontNameListOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-char* (*XLocaleOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-int (*XContextDependentDrawing_dylibloader_wrapper_xlib)( XFontSet);
-int (*XDirectionalDependentDrawing_dylibloader_wrapper_xlib)( XFontSet);
-int (*XContextualDrawing_dylibloader_wrapper_xlib)( XFontSet);
-XFontSetExtents* (*XExtentsOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-int (*XmbTextEscapement_dylibloader_wrapper_xlib)( XFontSet,const char*, int);
-int (*XwcTextEscapement_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int);
-int (*Xutf8TextEscapement_dylibloader_wrapper_xlib)( XFontSet,const char*, int);
-int (*XmbTextExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*);
-int (*XwcTextExtents_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int, XRectangle*, XRectangle*);
-int (*Xutf8TextExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*);
-int (*XmbTextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-int (*XwcTextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-int (*Xutf8TextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-void (*XmbDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XmbTextItem*, int);
-void (*XwcDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XwcTextItem*, int);
-void (*Xutf8DrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XmbTextItem*, int);
-void (*XmbDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-void (*XwcDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const wchar_t*, int);
-void (*Xutf8DrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-void (*XmbDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-void (*XwcDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const wchar_t*, int);
-void (*Xutf8DrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-XIM (*XOpenIM_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*);
-int (*XCloseIM_dylibloader_wrapper_xlib)( XIM);
-char* (*XGetIMValues_dylibloader_wrapper_xlib)( XIM,...);
-char* (*XSetIMValues_dylibloader_wrapper_xlib)( XIM,...);
-Display* (*XDisplayOfIM_dylibloader_wrapper_xlib)( XIM);
-char* (*XLocaleOfIM_dylibloader_wrapper_xlib)( XIM);
-XIC (*XCreateIC_dylibloader_wrapper_xlib)( XIM,...);
-void (*XDestroyIC_dylibloader_wrapper_xlib)( XIC);
-void (*XSetICFocus_dylibloader_wrapper_xlib)( XIC);
-void (*XUnsetICFocus_dylibloader_wrapper_xlib)( XIC);
-wchar_t* (*XwcResetIC_dylibloader_wrapper_xlib)( XIC);
-char* (*XmbResetIC_dylibloader_wrapper_xlib)( XIC);
-char* (*Xutf8ResetIC_dylibloader_wrapper_xlib)( XIC);
-char* (*XSetICValues_dylibloader_wrapper_xlib)( XIC,...);
-char* (*XGetICValues_dylibloader_wrapper_xlib)( XIC,...);
-XIM (*XIMOfIC_dylibloader_wrapper_xlib)( XIC);
-int (*XFilterEvent_dylibloader_wrapper_xlib)( XEvent*, Window);
-int (*XmbLookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, char*, int, KeySym*, int*);
-int (*XwcLookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, wchar_t*, int, KeySym*, int*);
-int (*Xutf8LookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, char*, int, KeySym*, int*);
-XVaNestedList (*XVaCreateNestedList_dylibloader_wrapper_xlib)( int,...);
-int (*XRegisterIMInstantiateCallback_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*, XIDProc, XPointer);
-int (*XUnregisterIMInstantiateCallback_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*, XIDProc, XPointer);
-int (*XInternalConnectionNumbers_dylibloader_wrapper_xlib)( Display*, int**, int*);
-void (*XProcessInternalConnection_dylibloader_wrapper_xlib)( Display*, int);
-int (*XAddConnectionWatch_dylibloader_wrapper_xlib)( Display*, XConnectionWatchProc, XPointer);
-void (*XRemoveConnectionWatch_dylibloader_wrapper_xlib)( Display*, XConnectionWatchProc, XPointer);
-void (*XSetAuthorization_dylibloader_wrapper_xlib)( char*, int, char*, int);
-int (*_Xmbtowc_dylibloader_wrapper_xlib)( wchar_t*, char*, int);
-int (*_Xwctomb_dylibloader_wrapper_xlib)( char*, wchar_t);
-int (*XGetEventData_dylibloader_wrapper_xlib)( Display*, XGenericEventCookie*);
-void (*XFreeEventData_dylibloader_wrapper_xlib)( Display*, XGenericEventCookie*);
-XClassHint* (*XAllocClassHint_dylibloader_wrapper_xlib)( void);
-XIconSize* (*XAllocIconSize_dylibloader_wrapper_xlib)( void);
-XSizeHints* (*XAllocSizeHints_dylibloader_wrapper_xlib)( void);
-XStandardColormap* (*XAllocStandardColormap_dylibloader_wrapper_xlib)( void);
-XWMHints* (*XAllocWMHints_dylibloader_wrapper_xlib)( void);
-int (*XClipBox_dylibloader_wrapper_xlib)( Region, XRectangle*);
-Region (*XCreateRegion_dylibloader_wrapper_xlib)( void);
-const char* (*XDefaultString_dylibloader_wrapper_xlib)( void);
-int (*XDeleteContext_dylibloader_wrapper_xlib)( Display*, XID, XContext);
-int (*XDestroyRegion_dylibloader_wrapper_xlib)( Region);
-int (*XEmptyRegion_dylibloader_wrapper_xlib)( Region);
-int (*XEqualRegion_dylibloader_wrapper_xlib)( Region, Region);
-int (*XFindContext_dylibloader_wrapper_xlib)( Display*, XID, XContext, XPointer*);
-int (*XGetClassHint_dylibloader_wrapper_xlib)( Display*, Window, XClassHint*);
-int (*XGetIconSizes_dylibloader_wrapper_xlib)( Display*, Window, XIconSize**, int*);
-int (*XGetNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-int (*XGetRGBColormaps_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap**, int*, Atom);
-int (*XGetSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-int (*XGetStandardColormap_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, Atom);
-int (*XGetTextProperty_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, Atom);
-XVisualInfo* (*XGetVisualInfo_dylibloader_wrapper_xlib)( Display*, long, XVisualInfo*, int*);
-int (*XGetWMClientMachine_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-XWMHints* (*XGetWMHints_dylibloader_wrapper_xlib)( Display*, Window);
-int (*XGetWMIconName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-int (*XGetWMName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-int (*XGetWMNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, long*);
-int (*XGetWMSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, long*, Atom);
-int (*XGetZoomHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-int (*XIntersectRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-void (*XConvertCase_dylibloader_wrapper_xlib)( KeySym, KeySym*, KeySym*);
-int (*XLookupString_dylibloader_wrapper_xlib)( XKeyEvent*, char*, int, KeySym*, XComposeStatus*);
-int (*XMatchVisualInfo_dylibloader_wrapper_xlib)( Display*, int, int, int, XVisualInfo*);
-int (*XOffsetRegion_dylibloader_wrapper_xlib)( Region, int, int);
-int (*XPointInRegion_dylibloader_wrapper_xlib)( Region, int, int);
-Region (*XPolygonRegion_dylibloader_wrapper_xlib)( XPoint*, int, int);
-int (*XRectInRegion_dylibloader_wrapper_xlib)( Region, int, int, unsigned int, unsigned int);
-int (*XSaveContext_dylibloader_wrapper_xlib)( Display*, XID, XContext,const char*);
-int (*XSetClassHint_dylibloader_wrapper_xlib)( Display*, Window, XClassHint*);
-int (*XSetIconSizes_dylibloader_wrapper_xlib)( Display*, Window, XIconSize*, int);
-int (*XSetNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-void (*XSetRGBColormaps_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, int, Atom);
-int (*XSetSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-int (*XSetStandardProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, Pixmap, char**, int, XSizeHints*);
-void (*XSetTextProperty_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, Atom);
-void (*XSetWMClientMachine_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-int (*XSetWMHints_dylibloader_wrapper_xlib)( Display*, Window, XWMHints*);
-void (*XSetWMIconName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-void (*XSetWMName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-void (*XSetWMNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-void (*XSetWMProperties_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, XTextProperty*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-void (*XmbSetWMProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-void (*Xutf8SetWMProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-void (*XSetWMSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-int (*XSetRegion_dylibloader_wrapper_xlib)( Display*, GC, Region);
-void (*XSetStandardColormap_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, Atom);
-int (*XSetZoomHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-int (*XShrinkRegion_dylibloader_wrapper_xlib)( Region, int, int);
-int (*XStringListToTextProperty_dylibloader_wrapper_xlib)( char**, int, XTextProperty*);
-int (*XSubtractRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-int (*XmbTextListToTextProperty_dylibloader_wrapper_xlib)( Display*, char**, int, XICCEncodingStyle, XTextProperty*);
-int (*XwcTextListToTextProperty_dylibloader_wrapper_xlib)( Display*, wchar_t**, int, XICCEncodingStyle, XTextProperty*);
-int (*Xutf8TextListToTextProperty_dylibloader_wrapper_xlib)( Display*, char**, int, XICCEncodingStyle, XTextProperty*);
-void (*XwcFreeStringList_dylibloader_wrapper_xlib)( wchar_t**);
-int (*XTextPropertyToStringList_dylibloader_wrapper_xlib)( XTextProperty*, char***, int*);
-int (*XmbTextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, char***, int*);
-int (*XwcTextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, wchar_t***, int*);
-int (*Xutf8TextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, char***, int*);
-int (*XUnionRectWithRegion_dylibloader_wrapper_xlib)( XRectangle*, Region, Region);
-int (*XUnionRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-int (*XWMGeometry_dylibloader_wrapper_xlib)( Display*, int,const char*,const char*, unsigned int, XSizeHints*, int*, int*, int*, int*, int*);
-int (*XXorRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-int (*XkbIgnoreExtension_dylibloader_wrapper_xlib)( int);
-Display* (*XkbOpenDisplay_dylibloader_wrapper_xlib)( char*, int*, int*, int*, int*, int*);
-int (*XkbQueryExtension_dylibloader_wrapper_xlib)( Display*, int*, int*, int*, int*, int*);
-int (*XkbUseExtension_dylibloader_wrapper_xlib)( Display*, int*, int*);
-int (*XkbLibraryVersion_dylibloader_wrapper_xlib)( int*, int*);
-unsigned int (*XkbSetXlibControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-unsigned int (*XkbGetXlibControls_dylibloader_wrapper_xlib)( Display*);
-unsigned int (*XkbXlibControlsImplemented_dylibloader_wrapper_xlib)( void);
-void (*XkbSetAtomFuncs_dylibloader_wrapper_xlib)( XkbInternAtomFunc, XkbGetAtomNameFunc);
-KeySym (*XkbKeycodeToKeysym_dylibloader_wrapper_xlib)( Display*, KeyCode, int, int);
-unsigned int (*XkbKeysymToModifiers_dylibloader_wrapper_xlib)( Display*, KeySym);
-int (*XkbLookupKeySym_dylibloader_wrapper_xlib)( Display*, KeyCode, unsigned int, unsigned int*, KeySym*);
-int (*XkbLookupKeyBinding_dylibloader_wrapper_xlib)( Display*, KeySym, unsigned int, char*, int, int*);
-int (*XkbTranslateKeyCode_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, unsigned int, unsigned int*, KeySym*);
-int (*XkbTranslateKeySym_dylibloader_wrapper_xlib)( Display*, KeySym*, unsigned int, char*, int, int*);
-int (*XkbSetAutoRepeatRate_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-int (*XkbGetAutoRepeatRate_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*, unsigned int*);
-int (*XkbChangeEnabledControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-int (*XkbDeviceBell_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, int, Atom);
-int (*XkbForceDeviceBell_dylibloader_wrapper_xlib)( Display*, int, int, int, int);
-int (*XkbDeviceBellEvent_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, int, Atom);
-int (*XkbBell_dylibloader_wrapper_xlib)( Display*, Window, int, Atom);
-int (*XkbForceBell_dylibloader_wrapper_xlib)( Display*, int);
-int (*XkbBellEvent_dylibloader_wrapper_xlib)( Display*, Window, int, Atom);
-int (*XkbSelectEvents_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-int (*XkbSelectEventDetails_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned long, unsigned long);
-void (*XkbNoteMapChanges_dylibloader_wrapper_xlib)( XkbMapChangesPtr, XkbMapNotifyEvent*, unsigned int);
-void (*XkbNoteNameChanges_dylibloader_wrapper_xlib)( XkbNameChangesPtr, XkbNamesNotifyEvent*, unsigned int);
-int (*XkbGetIndicatorState_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*);
-int (*XkbGetIndicatorMap_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-int (*XkbSetIndicatorMap_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-int (*XkbGetNamedIndicator_dylibloader_wrapper_xlib)( Display*, Atom, int*, int*, XkbIndicatorMapPtr, int*);
-int (*XkbGetNamedDeviceIndicator_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, Atom, int*, int*, XkbIndicatorMapPtr, int*);
-int (*XkbSetNamedIndicator_dylibloader_wrapper_xlib)( Display*, Atom, int, int, int, XkbIndicatorMapPtr);
-int (*XkbSetNamedDeviceIndicator_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, Atom, int, int, int, XkbIndicatorMapPtr);
-int (*XkbLockModifiers_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-int (*XkbLatchModifiers_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-int (*XkbLockGroup_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-int (*XkbLatchGroup_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-int (*XkbSetServerInternalMods_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
-int (*XkbSetIgnoreLockMods_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
-int (*XkbVirtualModsToReal_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int*);
-int (*XkbComputeEffectiveMap_dylibloader_wrapper_xlib)( XkbDescPtr, XkbKeyTypePtr, unsigned char*);
-int (*XkbInitCanonicalKeyTypes_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-XkbDescPtr (*XkbAllocKeyboard_dylibloader_wrapper_xlib)( void);
-void (*XkbFreeKeyboard_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-int (*XkbAllocClientMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-int (*XkbAllocServerMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-void (*XkbFreeClientMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-void (*XkbFreeServerMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-XkbKeyTypePtr (*XkbAddKeyType_dylibloader_wrapper_xlib)( XkbDescPtr, Atom, int, int, int);
-int (*XkbAllocIndicatorMaps_dylibloader_wrapper_xlib)( XkbDescPtr);
-void (*XkbFreeIndicatorMaps_dylibloader_wrapper_xlib)( XkbDescPtr);
-XkbDescPtr (*XkbGetMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-int (*XkbGetUpdatedMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-int (*XkbGetMapChanges_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbMapChangesPtr);
-int (*XkbRefreshKeyboardMapping_dylibloader_wrapper_xlib)( XkbMapNotifyEvent*);
-int (*XkbGetKeyTypes_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetKeySyms_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetKeyActions_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetKeyBehaviors_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetVirtualMods_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-int (*XkbGetKeyExplicitComponents_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetKeyModifierMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbGetKeyVirtualModMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbAllocControls_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int);
-void (*XkbFreeControls_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-int (*XkbGetControls_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-int (*XkbSetControls_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-void (*XkbNoteControlsChanges_dylibloader_wrapper_xlib)( XkbControlsChangesPtr, XkbControlsNotifyEvent*, unsigned int);
-int (*XkbAllocCompatMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-void (*XkbFreeCompatMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-int (*XkbGetCompatMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-int (*XkbSetCompatMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr, int);
-int (*XkbAllocNames_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int, int);
-int (*XkbGetNames_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-int (*XkbSetNames_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, XkbDescPtr);
-int (*XkbChangeNames_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbNameChangesPtr);
-void (*XkbFreeNames_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-int (*XkbGetState_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbStatePtr);
-int (*XkbSetMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-int (*XkbChangeMap_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbMapChangesPtr);
-int (*XkbSetDetectableAutoRepeat_dylibloader_wrapper_xlib)( Display*, int, int*);
-int (*XkbGetDetectableAutoRepeat_dylibloader_wrapper_xlib)( Display*, int*);
-int (*XkbSetAutoResetControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*, unsigned int*);
-int (*XkbGetAutoResetControls_dylibloader_wrapper_xlib)( Display*, unsigned int*, unsigned int*);
-int (*XkbSetPerClientControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*);
-int (*XkbGetPerClientControls_dylibloader_wrapper_xlib)( Display*, unsigned int*);
-int (*XkbCopyKeyType_dylibloader_wrapper_xlib)( XkbKeyTypePtr, XkbKeyTypePtr);
-int (*XkbCopyKeyTypes_dylibloader_wrapper_xlib)( XkbKeyTypePtr, XkbKeyTypePtr, int);
-int (*XkbResizeKeyType_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, int, int);
-KeySym* (*XkbResizeKeySyms_dylibloader_wrapper_xlib)( XkbDescPtr, int, int);
-XkbAction* (*XkbResizeKeyActions_dylibloader_wrapper_xlib)( XkbDescPtr, int, int);
-int (*XkbChangeTypesOfKey_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, unsigned int, int*, XkbMapChangesPtr);
-int (*XkbChangeKeycodeRange_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, XkbChangesPtr);
-XkbComponentListPtr (*XkbListComponents_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbComponentNamesPtr, int*);
-void (*XkbFreeComponentList_dylibloader_wrapper_xlib)( XkbComponentListPtr);
-XkbDescPtr (*XkbGetKeyboard_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-XkbDescPtr (*XkbGetKeyboardByName_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbComponentNamesPtr, unsigned int, unsigned int, int);
-int (*XkbKeyTypesForCoreSymbols_dylibloader_wrapper_xlib)( XkbDescPtr, int, KeySym*, unsigned int, int*, KeySym*);
-int (*XkbApplyCompatMapToKey_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, XkbChangesPtr);
-int (*XkbUpdateMapFromCore_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, int, int, KeySym*, XkbChangesPtr);
-XkbDeviceLedInfoPtr (*XkbAddDeviceLedInfo_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int, unsigned int);
-int (*XkbResizeDeviceButtonActions_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int);
-XkbDeviceInfoPtr (*XkbAllocDeviceInfo_dylibloader_wrapper_xlib)( unsigned int, unsigned int, unsigned int);
-void (*XkbFreeDeviceInfo_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int, int);
-void (*XkbNoteDeviceChanges_dylibloader_wrapper_xlib)( XkbDeviceChangesPtr, XkbExtensionDeviceNotifyEvent*, unsigned int);
-XkbDeviceInfoPtr (*XkbGetDeviceInfo_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int);
-int (*XkbGetDeviceInfoChanges_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
-int (*XkbGetDeviceButtonActions_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, int, unsigned int, unsigned int);
-int (*XkbGetDeviceLedInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
-int (*XkbSetDeviceInfo_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDeviceInfoPtr);
-int (*XkbChangeDeviceInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
-int (*XkbSetDeviceLedInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
-int (*XkbSetDeviceButtonActions_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int);
-char (*XkbToControl_dylibloader_wrapper_xlib)( char);
-int (*XkbSetDebuggingFlags_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, char*, unsigned int, unsigned int, unsigned int*, unsigned int*);
-int (*XkbApplyVirtualModChanges_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, XkbChangesPtr);
-int (*XkbUpdateActionVirtualMods_dylibloader_wrapper_xlib)( XkbDescPtr, XkbAction*, unsigned int);
-void (*XkbUpdateKeyTypeVirtualMods_dylibloader_wrapper_xlib)( XkbDescPtr, XkbKeyTypePtr, unsigned int, XkbChangesPtr);
+int (*_Xmblen_dylibloader_wrapper_xlib)(char *, int);
+XFontStruct *(*XLoadQueryFont_dylibloader_wrapper_xlib)(Display *, const char *);
+XFontStruct *(*XQueryFont_dylibloader_wrapper_xlib)(Display *, XID);
+XTimeCoord *(*XGetMotionEvents_dylibloader_wrapper_xlib)(Display *, Window, Time, Time, int *);
+XModifierKeymap *(*XDeleteModifiermapEntry_dylibloader_wrapper_xlib)(XModifierKeymap *, KeyCode, int);
+XModifierKeymap *(*XGetModifierMapping_dylibloader_wrapper_xlib)(Display *);
+XModifierKeymap *(*XInsertModifiermapEntry_dylibloader_wrapper_xlib)(XModifierKeymap *, KeyCode, int);
+XModifierKeymap *(*XNewModifiermap_dylibloader_wrapper_xlib)(int);
+XImage *(*XCreateImage_dylibloader_wrapper_xlib)(Display *, Visual *, unsigned int, int, int, char *, unsigned int, unsigned int, int, int);
+int (*XInitImage_dylibloader_wrapper_xlib)(XImage *);
+XImage *(*XGetImage_dylibloader_wrapper_xlib)(Display *, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
+XImage *(*XGetSubImage_dylibloader_wrapper_xlib)(Display *, Drawable, int, int, unsigned int, unsigned int, unsigned long, int, XImage *, int, int);
+Display *(*XOpenDisplay_dylibloader_wrapper_xlib)(const char *);
+void (*XrmInitialize_dylibloader_wrapper_xlib)(void);
+char *(*XFetchBytes_dylibloader_wrapper_xlib)(Display *, int *);
+char *(*XFetchBuffer_dylibloader_wrapper_xlib)(Display *, int *, int);
+char *(*XGetAtomName_dylibloader_wrapper_xlib)(Display *, Atom);
+int (*XGetAtomNames_dylibloader_wrapper_xlib)(Display *, Atom *, int, char **);
+char *(*XGetDefault_dylibloader_wrapper_xlib)(Display *, const char *, const char *);
+char *(*XDisplayName_dylibloader_wrapper_xlib)(const char *);
+char *(*XKeysymToString_dylibloader_wrapper_xlib)(KeySym);
+int (*(*XSynchronize_dylibloader_wrapper_xlib)(Display *, int))(Display *);
+int (*(*XSetAfterFunction_dylibloader_wrapper_xlib)(Display *, int (*)(Display *)))(Display *);
+Atom (*XInternAtom_dylibloader_wrapper_xlib)(Display *, const char *, int);
+int (*XInternAtoms_dylibloader_wrapper_xlib)(Display *, char **, int, int, Atom *);
+Colormap (*XCopyColormapAndFree_dylibloader_wrapper_xlib)(Display *, Colormap);
+Colormap (*XCreateColormap_dylibloader_wrapper_xlib)(Display *, Window, Visual *, int);
+Cursor (*XCreatePixmapCursor_dylibloader_wrapper_xlib)(Display *, Pixmap, Pixmap, XColor *, XColor *, unsigned int, unsigned int);
+Cursor (*XCreateGlyphCursor_dylibloader_wrapper_xlib)(Display *, Font, Font, unsigned int, unsigned int, const XColor *, const XColor *);
+Cursor (*XCreateFontCursor_dylibloader_wrapper_xlib)(Display *, unsigned int);
+Font (*XLoadFont_dylibloader_wrapper_xlib)(Display *, const char *);
+GC (*XCreateGC_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned long, XGCValues *);
+GContext (*XGContextFromGC_dylibloader_wrapper_xlib)(GC);
+void (*XFlushGC_dylibloader_wrapper_xlib)(Display *, GC);
+Pixmap (*XCreatePixmap_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int);
+Pixmap (*XCreateBitmapFromData_dylibloader_wrapper_xlib)(Display *, Drawable, const char *, unsigned int, unsigned int);
+Pixmap (*XCreatePixmapFromBitmapData_dylibloader_wrapper_xlib)(Display *, Drawable, char *, unsigned int, unsigned int, unsigned long, unsigned long, unsigned int);
+Window (*XCreateSimpleWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long);
+Window (*XGetSelectionOwner_dylibloader_wrapper_xlib)(Display *, Atom);
+Window (*XCreateWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual *, unsigned long, XSetWindowAttributes *);
+Colormap *(*XListInstalledColormaps_dylibloader_wrapper_xlib)(Display *, Window, int *);
+char **(*XListFonts_dylibloader_wrapper_xlib)(Display *, const char *, int, int *);
+char **(*XListFontsWithInfo_dylibloader_wrapper_xlib)(Display *, const char *, int, int *, XFontStruct **);
+char **(*XGetFontPath_dylibloader_wrapper_xlib)(Display *, int *);
+char **(*XListExtensions_dylibloader_wrapper_xlib)(Display *, int *);
+Atom *(*XListProperties_dylibloader_wrapper_xlib)(Display *, Window, int *);
+XHostAddress *(*XListHosts_dylibloader_wrapper_xlib)(Display *, int *, int *);
+KeySym (*XKeycodeToKeysym_dylibloader_wrapper_xlib)(Display *, KeyCode, int);
+KeySym (*XLookupKeysym_dylibloader_wrapper_xlib)(XKeyEvent *, int);
+KeySym *(*XGetKeyboardMapping_dylibloader_wrapper_xlib)(Display *, KeyCode, int, int *);
+KeySym (*XStringToKeysym_dylibloader_wrapper_xlib)(const char *);
+long (*XMaxRequestSize_dylibloader_wrapper_xlib)(Display *);
+long (*XExtendedMaxRequestSize_dylibloader_wrapper_xlib)(Display *);
+char *(*XResourceManagerString_dylibloader_wrapper_xlib)(Display *);
+char *(*XScreenResourceString_dylibloader_wrapper_xlib)(Screen *);
+unsigned long (*XDisplayMotionBufferSize_dylibloader_wrapper_xlib)(Display *);
+VisualID (*XVisualIDFromVisual_dylibloader_wrapper_xlib)(Visual *);
+int (*XInitThreads_dylibloader_wrapper_xlib)(void);
+void (*XLockDisplay_dylibloader_wrapper_xlib)(Display *);
+void (*XUnlockDisplay_dylibloader_wrapper_xlib)(Display *);
+XExtCodes *(*XInitExtension_dylibloader_wrapper_xlib)(Display *, const char *);
+XExtCodes *(*XAddExtension_dylibloader_wrapper_xlib)(Display *);
+XExtData *(*XFindOnExtensionList_dylibloader_wrapper_xlib)(XExtData **, int);
+XExtData **(*XEHeadOfExtensionList_dylibloader_wrapper_xlib)(XEDataObject);
+Window (*XRootWindow_dylibloader_wrapper_xlib)(Display *, int);
+Window (*XDefaultRootWindow_dylibloader_wrapper_xlib)(Display *);
+Window (*XRootWindowOfScreen_dylibloader_wrapper_xlib)(Screen *);
+Visual *(*XDefaultVisual_dylibloader_wrapper_xlib)(Display *, int);
+Visual *(*XDefaultVisualOfScreen_dylibloader_wrapper_xlib)(Screen *);
+GC (*XDefaultGC_dylibloader_wrapper_xlib)(Display *, int);
+GC (*XDefaultGCOfScreen_dylibloader_wrapper_xlib)(Screen *);
+unsigned long (*XBlackPixel_dylibloader_wrapper_xlib)(Display *, int);
+unsigned long (*XWhitePixel_dylibloader_wrapper_xlib)(Display *, int);
+unsigned long (*XAllPlanes_dylibloader_wrapper_xlib)(void);
+unsigned long (*XBlackPixelOfScreen_dylibloader_wrapper_xlib)(Screen *);
+unsigned long (*XWhitePixelOfScreen_dylibloader_wrapper_xlib)(Screen *);
+unsigned long (*XNextRequest_dylibloader_wrapper_xlib)(Display *);
+unsigned long (*XLastKnownRequestProcessed_dylibloader_wrapper_xlib)(Display *);
+char *(*XServerVendor_dylibloader_wrapper_xlib)(Display *);
+char *(*XDisplayString_dylibloader_wrapper_xlib)(Display *);
+Colormap (*XDefaultColormap_dylibloader_wrapper_xlib)(Display *, int);
+Colormap (*XDefaultColormapOfScreen_dylibloader_wrapper_xlib)(Screen *);
+Display *(*XDisplayOfScreen_dylibloader_wrapper_xlib)(Screen *);
+Screen *(*XScreenOfDisplay_dylibloader_wrapper_xlib)(Display *, int);
+Screen *(*XDefaultScreenOfDisplay_dylibloader_wrapper_xlib)(Display *);
+long (*XEventMaskOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XScreenNumberOfScreen_dylibloader_wrapper_xlib)(Screen *);
+XErrorHandler (*XSetErrorHandler_dylibloader_wrapper_xlib)(XErrorHandler);
+XIOErrorHandler (*XSetIOErrorHandler_dylibloader_wrapper_xlib)(XIOErrorHandler);
+void (*XSetIOErrorExitHandler_dylibloader_wrapper_xlib)(Display *, XIOErrorExitHandler, void *);
+XPixmapFormatValues *(*XListPixmapFormats_dylibloader_wrapper_xlib)(Display *, int *);
+int *(*XListDepths_dylibloader_wrapper_xlib)(Display *, int, int *);
+int (*XReconfigureWMWindow_dylibloader_wrapper_xlib)(Display *, Window, int, unsigned int, XWindowChanges *);
+int (*XGetWMProtocols_dylibloader_wrapper_xlib)(Display *, Window, Atom **, int *);
+int (*XSetWMProtocols_dylibloader_wrapper_xlib)(Display *, Window, Atom *, int);
+int (*XIconifyWindow_dylibloader_wrapper_xlib)(Display *, Window, int);
+int (*XWithdrawWindow_dylibloader_wrapper_xlib)(Display *, Window, int);
+int (*XGetCommand_dylibloader_wrapper_xlib)(Display *, Window, char ***, int *);
+int (*XGetWMColormapWindows_dylibloader_wrapper_xlib)(Display *, Window, Window **, int *);
+int (*XSetWMColormapWindows_dylibloader_wrapper_xlib)(Display *, Window, Window *, int);
+void (*XFreeStringList_dylibloader_wrapper_xlib)(char **);
+int (*XSetTransientForHint_dylibloader_wrapper_xlib)(Display *, Window, Window);
+int (*XActivateScreenSaver_dylibloader_wrapper_xlib)(Display *);
+int (*XAddHost_dylibloader_wrapper_xlib)(Display *, XHostAddress *);
+int (*XAddHosts_dylibloader_wrapper_xlib)(Display *, XHostAddress *, int);
+int (*XAddToExtensionList_dylibloader_wrapper_xlib)(struct _XExtData **, XExtData *);
+int (*XAddToSaveSet_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XAllocColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+int (*XAllocColorCells_dylibloader_wrapper_xlib)(Display *, Colormap, int, unsigned long *, unsigned int, unsigned long *, unsigned int);
+int (*XAllocColorPlanes_dylibloader_wrapper_xlib)(Display *, Colormap, int, unsigned long *, int, int, int, int, unsigned long *, unsigned long *, unsigned long *);
+int (*XAllocNamedColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *, XColor *);
+int (*XAllowEvents_dylibloader_wrapper_xlib)(Display *, int, Time);
+int (*XAutoRepeatOff_dylibloader_wrapper_xlib)(Display *);
+int (*XAutoRepeatOn_dylibloader_wrapper_xlib)(Display *);
+int (*XBell_dylibloader_wrapper_xlib)(Display *, int);
+int (*XBitmapBitOrder_dylibloader_wrapper_xlib)(Display *);
+int (*XBitmapPad_dylibloader_wrapper_xlib)(Display *);
+int (*XBitmapUnit_dylibloader_wrapper_xlib)(Display *);
+int (*XCellsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XChangeActivePointerGrab_dylibloader_wrapper_xlib)(Display *, unsigned int, Cursor, Time);
+int (*XChangeGC_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, XGCValues *);
+int (*XChangeKeyboardControl_dylibloader_wrapper_xlib)(Display *, unsigned long, XKeyboardControl *);
+int (*XChangeKeyboardMapping_dylibloader_wrapper_xlib)(Display *, int, int, KeySym *, int);
+int (*XChangePointerControl_dylibloader_wrapper_xlib)(Display *, int, int, int, int, int);
+int (*XChangeProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom, Atom, int, int, const unsigned char *, int);
+int (*XChangeSaveSet_dylibloader_wrapper_xlib)(Display *, Window, int);
+int (*XChangeWindowAttributes_dylibloader_wrapper_xlib)(Display *, Window, unsigned long, XSetWindowAttributes *);
+int (*XCheckIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+int (*XCheckMaskEvent_dylibloader_wrapper_xlib)(Display *, long, XEvent *);
+int (*XCheckTypedEvent_dylibloader_wrapper_xlib)(Display *, int, XEvent *);
+int (*XCheckTypedWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, int, XEvent *);
+int (*XCheckWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, long, XEvent *);
+int (*XCirculateSubwindows_dylibloader_wrapper_xlib)(Display *, Window, int);
+int (*XCirculateSubwindowsDown_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XCirculateSubwindowsUp_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XClearArea_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, int);
+int (*XClearWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XCloseDisplay_dylibloader_wrapper_xlib)(Display *);
+int (*XConfigureWindow_dylibloader_wrapper_xlib)(Display *, Window, unsigned int, XWindowChanges *);
+int (*XConnectionNumber_dylibloader_wrapper_xlib)(Display *);
+int (*XConvertSelection_dylibloader_wrapper_xlib)(Display *, Atom, Atom, Atom, Window, Time);
+int (*XCopyArea_dylibloader_wrapper_xlib)(Display *, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+int (*XCopyGC_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, GC);
+int (*XCopyPlane_dylibloader_wrapper_xlib)(Display *, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
+int (*XDefaultDepth_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDefaultDepthOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XDefaultScreen_dylibloader_wrapper_xlib)(Display *);
+int (*XDefineCursor_dylibloader_wrapper_xlib)(Display *, Window, Cursor);
+int (*XDeleteProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom);
+int (*XDestroyWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XDestroySubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XDoesBackingStore_dylibloader_wrapper_xlib)(Screen *);
+int (*XDoesSaveUnders_dylibloader_wrapper_xlib)(Screen *);
+int (*XDisableAccessControl_dylibloader_wrapper_xlib)(Display *);
+int (*XDisplayCells_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDisplayHeight_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDisplayHeightMM_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDisplayKeycodes_dylibloader_wrapper_xlib)(Display *, int *, int *);
+int (*XDisplayPlanes_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDisplayWidth_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDisplayWidthMM_dylibloader_wrapper_xlib)(Display *, int);
+int (*XDrawArc_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+int (*XDrawArcs_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XArc *, int);
+int (*XDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const char *, int);
+int (*XDrawImageString16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const XChar2b *, int);
+int (*XDrawLine_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, int, int);
+int (*XDrawLines_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int);
+int (*XDrawPoint_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int);
+int (*XDrawPoints_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int);
+int (*XDrawRectangle_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int);
+int (*XDrawRectangles_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XRectangle *, int);
+int (*XDrawSegments_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XSegment *, int);
+int (*XDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const char *, int);
+int (*XDrawString16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const XChar2b *, int);
+int (*XDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XTextItem *, int);
+int (*XDrawText16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XTextItem16 *, int);
+int (*XEnableAccessControl_dylibloader_wrapper_xlib)(Display *);
+int (*XEventsQueued_dylibloader_wrapper_xlib)(Display *, int);
+int (*XFetchName_dylibloader_wrapper_xlib)(Display *, Window, char **);
+int (*XFillArc_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+int (*XFillArcs_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XArc *, int);
+int (*XFillPolygon_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int, int);
+int (*XFillRectangle_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int);
+int (*XFillRectangles_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XRectangle *, int);
+int (*XFlush_dylibloader_wrapper_xlib)(Display *);
+int (*XForceScreenSaver_dylibloader_wrapper_xlib)(Display *, int);
+int (*XFree_dylibloader_wrapper_xlib)(void *);
+int (*XFreeColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+int (*XFreeColors_dylibloader_wrapper_xlib)(Display *, Colormap, unsigned long *, int, unsigned long);
+int (*XFreeCursor_dylibloader_wrapper_xlib)(Display *, Cursor);
+int (*XFreeExtensionList_dylibloader_wrapper_xlib)(char **);
+int (*XFreeFont_dylibloader_wrapper_xlib)(Display *, XFontStruct *);
+int (*XFreeFontInfo_dylibloader_wrapper_xlib)(char **, XFontStruct *, int);
+int (*XFreeFontNames_dylibloader_wrapper_xlib)(char **);
+int (*XFreeFontPath_dylibloader_wrapper_xlib)(char **);
+int (*XFreeGC_dylibloader_wrapper_xlib)(Display *, GC);
+int (*XFreeModifiermap_dylibloader_wrapper_xlib)(XModifierKeymap *);
+int (*XFreePixmap_dylibloader_wrapper_xlib)(Display *, Pixmap);
+int (*XGeometry_dylibloader_wrapper_xlib)(Display *, int, const char *, const char *, unsigned int, unsigned int, unsigned int, int, int, int *, int *, int *, int *);
+int (*XGetErrorDatabaseText_dylibloader_wrapper_xlib)(Display *, const char *, const char *, const char *, char *, int);
+int (*XGetErrorText_dylibloader_wrapper_xlib)(Display *, int, char *, int);
+int (*XGetFontProperty_dylibloader_wrapper_xlib)(XFontStruct *, Atom, unsigned long *);
+int (*XGetGCValues_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, XGCValues *);
+int (*XGetGeometry_dylibloader_wrapper_xlib)(Display *, Drawable, Window *, int *, int *, unsigned int *, unsigned int *, unsigned int *, unsigned int *);
+int (*XGetIconName_dylibloader_wrapper_xlib)(Display *, Window, char **);
+int (*XGetInputFocus_dylibloader_wrapper_xlib)(Display *, Window *, int *);
+int (*XGetKeyboardControl_dylibloader_wrapper_xlib)(Display *, XKeyboardState *);
+int (*XGetPointerControl_dylibloader_wrapper_xlib)(Display *, int *, int *, int *);
+int (*XGetPointerMapping_dylibloader_wrapper_xlib)(Display *, unsigned char *, int);
+int (*XGetScreenSaver_dylibloader_wrapper_xlib)(Display *, int *, int *, int *, int *);
+int (*XGetTransientForHint_dylibloader_wrapper_xlib)(Display *, Window, Window *);
+int (*XGetWindowProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom, long, long, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+int (*XGetWindowAttributes_dylibloader_wrapper_xlib)(Display *, Window, XWindowAttributes *);
+int (*XGrabButton_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, Window, int, unsigned int, int, int, Window, Cursor);
+int (*XGrabKey_dylibloader_wrapper_xlib)(Display *, int, unsigned int, Window, int, int, int);
+int (*XGrabKeyboard_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, Time);
+int (*XGrabPointer_dylibloader_wrapper_xlib)(Display *, Window, int, unsigned int, int, int, Window, Cursor, Time);
+int (*XGrabServer_dylibloader_wrapper_xlib)(Display *);
+int (*XHeightMMOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XHeightOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+int (*XImageByteOrder_dylibloader_wrapper_xlib)(Display *);
+int (*XInstallColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+KeyCode (*XKeysymToKeycode_dylibloader_wrapper_xlib)(Display *, KeySym);
+int (*XKillClient_dylibloader_wrapper_xlib)(Display *, XID);
+int (*XLookupColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *, XColor *);
+int (*XLowerWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XMapRaised_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XMapSubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XMapWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XMaskEvent_dylibloader_wrapper_xlib)(Display *, long, XEvent *);
+int (*XMaxCmapsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XMinCmapsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XMoveResizeWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int);
+int (*XMoveWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int);
+int (*XNextEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+int (*XNoOp_dylibloader_wrapper_xlib)(Display *);
+int (*XParseColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *);
+int (*XParseGeometry_dylibloader_wrapper_xlib)(const char *, int *, int *, unsigned int *, unsigned int *);
+int (*XPeekEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+int (*XPeekIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+int (*XPending_dylibloader_wrapper_xlib)(Display *);
+int (*XPlanesOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XProtocolRevision_dylibloader_wrapper_xlib)(Display *);
+int (*XProtocolVersion_dylibloader_wrapper_xlib)(Display *);
+int (*XPutBackEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+int (*XPutImage_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XImage *, int, int, int, int, unsigned int, unsigned int);
+int (*XQLength_dylibloader_wrapper_xlib)(Display *);
+int (*XQueryBestCursor_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+int (*XQueryBestSize_dylibloader_wrapper_xlib)(Display *, int, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+int (*XQueryBestStipple_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+int (*XQueryBestTile_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+int (*XQueryColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+int (*XQueryColors_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *, int);
+int (*XQueryExtension_dylibloader_wrapper_xlib)(Display *, const char *, int *, int *, int *);
+int (*XQueryKeymap_dylibloader_wrapper_xlib)(Display *, char [32]);
+int (*XQueryPointer_dylibloader_wrapper_xlib)(Display *, Window, Window *, Window *, int *, int *, int *, int *, unsigned int *);
+int (*XQueryTextExtents_dylibloader_wrapper_xlib)(Display *, XID, const char *, int, int *, int *, int *, XCharStruct *);
+int (*XQueryTextExtents16_dylibloader_wrapper_xlib)(Display *, XID, const XChar2b *, int, int *, int *, int *, XCharStruct *);
+int (*XQueryTree_dylibloader_wrapper_xlib)(Display *, Window, Window *, Window *, Window **, unsigned int *);
+int (*XRaiseWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XReadBitmapFile_dylibloader_wrapper_xlib)(Display *, Drawable, const char *, unsigned int *, unsigned int *, Pixmap *, int *, int *);
+int (*XReadBitmapFileData_dylibloader_wrapper_xlib)(const char *, unsigned int *, unsigned int *, unsigned char **, int *, int *);
+int (*XRebindKeysym_dylibloader_wrapper_xlib)(Display *, KeySym, KeySym *, int, const unsigned char *, int);
+int (*XRecolorCursor_dylibloader_wrapper_xlib)(Display *, Cursor, XColor *, XColor *);
+int (*XRefreshKeyboardMapping_dylibloader_wrapper_xlib)(XMappingEvent *);
+int (*XRemoveFromSaveSet_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XRemoveHost_dylibloader_wrapper_xlib)(Display *, XHostAddress *);
+int (*XRemoveHosts_dylibloader_wrapper_xlib)(Display *, XHostAddress *, int);
+int (*XReparentWindow_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int);
+int (*XResetScreenSaver_dylibloader_wrapper_xlib)(Display *);
+int (*XResizeWindow_dylibloader_wrapper_xlib)(Display *, Window, unsigned int, unsigned int);
+int (*XRestackWindows_dylibloader_wrapper_xlib)(Display *, Window *, int);
+int (*XRotateBuffers_dylibloader_wrapper_xlib)(Display *, int);
+int (*XRotateWindowProperties_dylibloader_wrapper_xlib)(Display *, Window, Atom *, int, int);
+int (*XScreenCount_dylibloader_wrapper_xlib)(Display *);
+int (*XSelectInput_dylibloader_wrapper_xlib)(Display *, Window, long);
+int (*XSendEvent_dylibloader_wrapper_xlib)(Display *, Window, int, long, XEvent *);
+int (*XSetAccessControl_dylibloader_wrapper_xlib)(Display *, int);
+int (*XSetArcMode_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetBackground_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+int (*XSetClipMask_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+int (*XSetClipOrigin_dylibloader_wrapper_xlib)(Display *, GC, int, int);
+int (*XSetClipRectangles_dylibloader_wrapper_xlib)(Display *, GC, int, int, XRectangle *, int, int);
+int (*XSetCloseDownMode_dylibloader_wrapper_xlib)(Display *, int);
+int (*XSetCommand_dylibloader_wrapper_xlib)(Display *, Window, char **, int);
+int (*XSetDashes_dylibloader_wrapper_xlib)(Display *, GC, int, const char *, int);
+int (*XSetFillRule_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetFillStyle_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetFont_dylibloader_wrapper_xlib)(Display *, GC, Font);
+int (*XSetFontPath_dylibloader_wrapper_xlib)(Display *, char **, int);
+int (*XSetForeground_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+int (*XSetFunction_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetGraphicsExposures_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetIconName_dylibloader_wrapper_xlib)(Display *, Window, const char *);
+int (*XSetInputFocus_dylibloader_wrapper_xlib)(Display *, Window, int, Time);
+int (*XSetLineAttributes_dylibloader_wrapper_xlib)(Display *, GC, unsigned int, int, int, int);
+int (*XSetModifierMapping_dylibloader_wrapper_xlib)(Display *, XModifierKeymap *);
+int (*XSetPlaneMask_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+int (*XSetPointerMapping_dylibloader_wrapper_xlib)(Display *, const unsigned char *, int);
+int (*XSetScreenSaver_dylibloader_wrapper_xlib)(Display *, int, int, int, int);
+int (*XSetSelectionOwner_dylibloader_wrapper_xlib)(Display *, Atom, Window, Time);
+int (*XSetState_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, unsigned long, int, unsigned long);
+int (*XSetStipple_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+int (*XSetSubwindowMode_dylibloader_wrapper_xlib)(Display *, GC, int);
+int (*XSetTSOrigin_dylibloader_wrapper_xlib)(Display *, GC, int, int);
+int (*XSetTile_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+int (*XSetWindowBackground_dylibloader_wrapper_xlib)(Display *, Window, unsigned long);
+int (*XSetWindowBackgroundPixmap_dylibloader_wrapper_xlib)(Display *, Window, Pixmap);
+int (*XSetWindowBorder_dylibloader_wrapper_xlib)(Display *, Window, unsigned long);
+int (*XSetWindowBorderPixmap_dylibloader_wrapper_xlib)(Display *, Window, Pixmap);
+int (*XSetWindowBorderWidth_dylibloader_wrapper_xlib)(Display *, Window, unsigned int);
+int (*XSetWindowColormap_dylibloader_wrapper_xlib)(Display *, Window, Colormap);
+int (*XStoreBuffer_dylibloader_wrapper_xlib)(Display *, const char *, int, int);
+int (*XStoreBytes_dylibloader_wrapper_xlib)(Display *, const char *, int);
+int (*XStoreColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+int (*XStoreColors_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *, int);
+int (*XStoreName_dylibloader_wrapper_xlib)(Display *, Window, const char *);
+int (*XStoreNamedColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, unsigned long, int);
+int (*XSync_dylibloader_wrapper_xlib)(Display *, int);
+int (*XTextExtents_dylibloader_wrapper_xlib)(XFontStruct *, const char *, int, int *, int *, int *, XCharStruct *);
+int (*XTextExtents16_dylibloader_wrapper_xlib)(XFontStruct *, const XChar2b *, int, int *, int *, int *, XCharStruct *);
+int (*XTextWidth_dylibloader_wrapper_xlib)(XFontStruct *, const char *, int);
+int (*XTextWidth16_dylibloader_wrapper_xlib)(XFontStruct *, const XChar2b *, int);
+int (*XTranslateCoordinates_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int, int *, int *, Window *);
+int (*XUndefineCursor_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XUngrabButton_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, Window);
+int (*XUngrabKey_dylibloader_wrapper_xlib)(Display *, int, unsigned int, Window);
+int (*XUngrabKeyboard_dylibloader_wrapper_xlib)(Display *, Time);
+int (*XUngrabPointer_dylibloader_wrapper_xlib)(Display *, Time);
+int (*XUngrabServer_dylibloader_wrapper_xlib)(Display *);
+int (*XUninstallColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+int (*XUnloadFont_dylibloader_wrapper_xlib)(Display *, Font);
+int (*XUnmapSubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XUnmapWindow_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XVendorRelease_dylibloader_wrapper_xlib)(Display *);
+int (*XWarpPointer_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int, unsigned int, unsigned int, int, int);
+int (*XWidthMMOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XWidthOfScreen_dylibloader_wrapper_xlib)(Screen *);
+int (*XWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, long, XEvent *);
+int (*XWriteBitmapFile_dylibloader_wrapper_xlib)(Display *, const char *, Pixmap, unsigned int, unsigned int, int, int);
+int (*XSupportsLocale_dylibloader_wrapper_xlib)(void);
+char *(*XSetLocaleModifiers_dylibloader_wrapper_xlib)(const char *);
+XOM (*XOpenOM_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, const char *, const char *);
+int (*XCloseOM_dylibloader_wrapper_xlib)(XOM);
+char *(*XSetOMValues_dylibloader_wrapper_xlib)(XOM, ...);
+char *(*XGetOMValues_dylibloader_wrapper_xlib)(XOM, ...);
+Display *(*XDisplayOfOM_dylibloader_wrapper_xlib)(XOM);
+char *(*XLocaleOfOM_dylibloader_wrapper_xlib)(XOM);
+XOC (*XCreateOC_dylibloader_wrapper_xlib)(XOM, ...);
+void (*XDestroyOC_dylibloader_wrapper_xlib)(XOC);
+XOM (*XOMOfOC_dylibloader_wrapper_xlib)(XOC);
+char *(*XSetOCValues_dylibloader_wrapper_xlib)(XOC, ...);
+char *(*XGetOCValues_dylibloader_wrapper_xlib)(XOC, ...);
+XFontSet (*XCreateFontSet_dylibloader_wrapper_xlib)(Display *, const char *, char ***, int *, char **);
+void (*XFreeFontSet_dylibloader_wrapper_xlib)(Display *, XFontSet);
+int (*XFontsOfFontSet_dylibloader_wrapper_xlib)(XFontSet, XFontStruct ***, char ***);
+char *(*XBaseFontNameListOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+char *(*XLocaleOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+int (*XContextDependentDrawing_dylibloader_wrapper_xlib)(XFontSet);
+int (*XDirectionalDependentDrawing_dylibloader_wrapper_xlib)(XFontSet);
+int (*XContextualDrawing_dylibloader_wrapper_xlib)(XFontSet);
+XFontSetExtents *(*XExtentsOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+int (*XmbTextEscapement_dylibloader_wrapper_xlib)(XFontSet, const char *, int);
+int (*XwcTextEscapement_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int);
+int (*Xutf8TextEscapement_dylibloader_wrapper_xlib)(XFontSet, const char *, int);
+int (*XmbTextExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *);
+int (*XwcTextExtents_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int, XRectangle *, XRectangle *);
+int (*Xutf8TextExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *);
+int (*XmbTextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+int (*XwcTextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+int (*Xutf8TextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+void (*XmbDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XmbTextItem *, int);
+void (*XwcDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XwcTextItem *, int);
+void (*Xutf8DrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XmbTextItem *, int);
+void (*XmbDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+void (*XwcDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const wchar_t *, int);
+void (*Xutf8DrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+void (*XmbDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+void (*XwcDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const wchar_t *, int);
+void (*Xutf8DrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+XIM (*XOpenIM_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *);
+int (*XCloseIM_dylibloader_wrapper_xlib)(XIM);
+char *(*XGetIMValues_dylibloader_wrapper_xlib)(XIM, ...);
+char *(*XSetIMValues_dylibloader_wrapper_xlib)(XIM, ...);
+Display *(*XDisplayOfIM_dylibloader_wrapper_xlib)(XIM);
+char *(*XLocaleOfIM_dylibloader_wrapper_xlib)(XIM);
+XIC (*XCreateIC_dylibloader_wrapper_xlib)(XIM, ...);
+void (*XDestroyIC_dylibloader_wrapper_xlib)(XIC);
+void (*XSetICFocus_dylibloader_wrapper_xlib)(XIC);
+void (*XUnsetICFocus_dylibloader_wrapper_xlib)(XIC);
+wchar_t *(*XwcResetIC_dylibloader_wrapper_xlib)(XIC);
+char *(*XmbResetIC_dylibloader_wrapper_xlib)(XIC);
+char *(*Xutf8ResetIC_dylibloader_wrapper_xlib)(XIC);
+char *(*XSetICValues_dylibloader_wrapper_xlib)(XIC, ...);
+char *(*XGetICValues_dylibloader_wrapper_xlib)(XIC, ...);
+XIM (*XIMOfIC_dylibloader_wrapper_xlib)(XIC);
+int (*XFilterEvent_dylibloader_wrapper_xlib)(XEvent *, Window);
+int (*XmbLookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, char *, int, KeySym *, int *);
+int (*XwcLookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, wchar_t *, int, KeySym *, int *);
+int (*Xutf8LookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, char *, int, KeySym *, int *);
+XVaNestedList (*XVaCreateNestedList_dylibloader_wrapper_xlib)(int, ...);
+int (*XRegisterIMInstantiateCallback_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *, XIDProc, XPointer);
+int (*XUnregisterIMInstantiateCallback_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *, XIDProc, XPointer);
+int (*XInternalConnectionNumbers_dylibloader_wrapper_xlib)(Display *, int **, int *);
+void (*XProcessInternalConnection_dylibloader_wrapper_xlib)(Display *, int);
+int (*XAddConnectionWatch_dylibloader_wrapper_xlib)(Display *, XConnectionWatchProc, XPointer);
+void (*XRemoveConnectionWatch_dylibloader_wrapper_xlib)(Display *, XConnectionWatchProc, XPointer);
+void (*XSetAuthorization_dylibloader_wrapper_xlib)(char *, int, char *, int);
+int (*_Xmbtowc_dylibloader_wrapper_xlib)(wchar_t *, char *, int);
+int (*_Xwctomb_dylibloader_wrapper_xlib)(char *, wchar_t);
+int (*XGetEventData_dylibloader_wrapper_xlib)(Display *, XGenericEventCookie *);
+void (*XFreeEventData_dylibloader_wrapper_xlib)(Display *, XGenericEventCookie *);
+int (*XFreeThreads_dylibloader_wrapper_xlib)(void);
+XClassHint *(*XAllocClassHint_dylibloader_wrapper_xlib)(void);
+XIconSize *(*XAllocIconSize_dylibloader_wrapper_xlib)(void);
+XSizeHints *(*XAllocSizeHints_dylibloader_wrapper_xlib)(void);
+XStandardColormap *(*XAllocStandardColormap_dylibloader_wrapper_xlib)(void);
+XWMHints *(*XAllocWMHints_dylibloader_wrapper_xlib)(void);
+int (*XClipBox_dylibloader_wrapper_xlib)(Region, XRectangle *);
+Region (*XCreateRegion_dylibloader_wrapper_xlib)(void);
+const char *(*XDefaultString_dylibloader_wrapper_xlib)(void);
+int (*XDeleteContext_dylibloader_wrapper_xlib)(Display *, XID, XContext);
+int (*XDestroyRegion_dylibloader_wrapper_xlib)(Region);
+int (*XEmptyRegion_dylibloader_wrapper_xlib)(Region);
+int (*XEqualRegion_dylibloader_wrapper_xlib)(Region, Region);
+int (*XFindContext_dylibloader_wrapper_xlib)(Display *, XID, XContext, XPointer *);
+int (*XGetClassHint_dylibloader_wrapper_xlib)(Display *, Window, XClassHint *);
+int (*XGetIconSizes_dylibloader_wrapper_xlib)(Display *, Window, XIconSize **, int *);
+int (*XGetNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+int (*XGetRGBColormaps_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap **, int *, Atom);
+int (*XGetSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+int (*XGetStandardColormap_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, Atom);
+int (*XGetTextProperty_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, Atom);
+XVisualInfo *(*XGetVisualInfo_dylibloader_wrapper_xlib)(Display *, long, XVisualInfo *, int *);
+int (*XGetWMClientMachine_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+XWMHints *(*XGetWMHints_dylibloader_wrapper_xlib)(Display *, Window);
+int (*XGetWMIconName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+int (*XGetWMName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+int (*XGetWMNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, long *);
+int (*XGetWMSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, long *, Atom);
+int (*XGetZoomHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+int (*XIntersectRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+void (*XConvertCase_dylibloader_wrapper_xlib)(KeySym, KeySym *, KeySym *);
+int (*XLookupString_dylibloader_wrapper_xlib)(XKeyEvent *, char *, int, KeySym *, XComposeStatus *);
+int (*XMatchVisualInfo_dylibloader_wrapper_xlib)(Display *, int, int, int, XVisualInfo *);
+int (*XOffsetRegion_dylibloader_wrapper_xlib)(Region, int, int);
+int (*XPointInRegion_dylibloader_wrapper_xlib)(Region, int, int);
+Region (*XPolygonRegion_dylibloader_wrapper_xlib)(XPoint *, int, int);
+int (*XRectInRegion_dylibloader_wrapper_xlib)(Region, int, int, unsigned int, unsigned int);
+int (*XSaveContext_dylibloader_wrapper_xlib)(Display *, XID, XContext, const char *);
+int (*XSetClassHint_dylibloader_wrapper_xlib)(Display *, Window, XClassHint *);
+int (*XSetIconSizes_dylibloader_wrapper_xlib)(Display *, Window, XIconSize *, int);
+int (*XSetNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+void (*XSetRGBColormaps_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, int, Atom);
+int (*XSetSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+int (*XSetStandardProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, Pixmap, char **, int, XSizeHints *);
+void (*XSetTextProperty_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, Atom);
+void (*XSetWMClientMachine_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+int (*XSetWMHints_dylibloader_wrapper_xlib)(Display *, Window, XWMHints *);
+void (*XSetWMIconName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+void (*XSetWMName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+void (*XSetWMNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+void (*XSetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, XTextProperty *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+void (*XmbSetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+void (*Xutf8SetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+void (*XSetWMSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+int (*XSetRegion_dylibloader_wrapper_xlib)(Display *, GC, Region);
+void (*XSetStandardColormap_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, Atom);
+int (*XSetZoomHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+int (*XShrinkRegion_dylibloader_wrapper_xlib)(Region, int, int);
+int (*XStringListToTextProperty_dylibloader_wrapper_xlib)(char **, int, XTextProperty *);
+int (*XSubtractRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+int (*XmbTextListToTextProperty_dylibloader_wrapper_xlib)(Display *, char **, int, XICCEncodingStyle, XTextProperty *);
+int (*XwcTextListToTextProperty_dylibloader_wrapper_xlib)(Display *, wchar_t **, int, XICCEncodingStyle, XTextProperty *);
+int (*Xutf8TextListToTextProperty_dylibloader_wrapper_xlib)(Display *, char **, int, XICCEncodingStyle, XTextProperty *);
+void (*XwcFreeStringList_dylibloader_wrapper_xlib)(wchar_t **);
+int (*XTextPropertyToStringList_dylibloader_wrapper_xlib)(XTextProperty *, char ***, int *);
+int (*XmbTextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, char ***, int *);
+int (*XwcTextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, wchar_t ***, int *);
+int (*Xutf8TextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, char ***, int *);
+int (*XUnionRectWithRegion_dylibloader_wrapper_xlib)(XRectangle *, Region, Region);
+int (*XUnionRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+int (*XWMGeometry_dylibloader_wrapper_xlib)(Display *, int, const char *, const char *, unsigned int, XSizeHints *, int *, int *, int *, int *, int *);
+int (*XXorRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+int (*XkbIgnoreExtension_dylibloader_wrapper_xlib)(int);
+Display *(*XkbOpenDisplay_dylibloader_wrapper_xlib)(char *, int *, int *, int *, int *, int *);
+int (*XkbQueryExtension_dylibloader_wrapper_xlib)(Display *, int *, int *, int *, int *, int *);
+int (*XkbUseExtension_dylibloader_wrapper_xlib)(Display *, int *, int *);
+int (*XkbLibraryVersion_dylibloader_wrapper_xlib)(int *, int *);
+unsigned int (*XkbSetXlibControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+unsigned int (*XkbGetXlibControls_dylibloader_wrapper_xlib)(Display *);
+unsigned int (*XkbXlibControlsImplemented_dylibloader_wrapper_xlib)(void);
+void (*XkbSetAtomFuncs_dylibloader_wrapper_xlib)(XkbInternAtomFunc, XkbGetAtomNameFunc);
+KeySym (*XkbKeycodeToKeysym_dylibloader_wrapper_xlib)(Display *, KeyCode, int, int);
+unsigned int (*XkbKeysymToModifiers_dylibloader_wrapper_xlib)(Display *, KeySym);
+int (*XkbLookupKeySym_dylibloader_wrapper_xlib)(Display *, KeyCode, unsigned int, unsigned int *, KeySym *);
+int (*XkbLookupKeyBinding_dylibloader_wrapper_xlib)(Display *, KeySym, unsigned int, char *, int, int *);
+int (*XkbTranslateKeyCode_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, unsigned int, unsigned int *, KeySym *);
+int (*XkbTranslateKeySym_dylibloader_wrapper_xlib)(Display *, KeySym *, unsigned int, char *, int, int *);
+int (*XkbSetAutoRepeatRate_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+int (*XkbGetAutoRepeatRate_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *, unsigned int *);
+int (*XkbChangeEnabledControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+int (*XkbDeviceBell_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, int, Atom);
+int (*XkbForceDeviceBell_dylibloader_wrapper_xlib)(Display *, int, int, int, int);
+int (*XkbDeviceBellEvent_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, int, Atom);
+int (*XkbBell_dylibloader_wrapper_xlib)(Display *, Window, int, Atom);
+int (*XkbForceBell_dylibloader_wrapper_xlib)(Display *, int);
+int (*XkbBellEvent_dylibloader_wrapper_xlib)(Display *, Window, int, Atom);
+int (*XkbSelectEvents_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+int (*XkbSelectEventDetails_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned long, unsigned long);
+void (*XkbNoteMapChanges_dylibloader_wrapper_xlib)(XkbMapChangesPtr, XkbMapNotifyEvent *, unsigned int);
+void (*XkbNoteNameChanges_dylibloader_wrapper_xlib)(XkbNameChangesPtr, XkbNamesNotifyEvent *, unsigned int);
+int (*XkbGetIndicatorState_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *);
+int (*XkbGetIndicatorMap_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+int (*XkbSetIndicatorMap_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+int (*XkbGetNamedIndicator_dylibloader_wrapper_xlib)(Display *, Atom, int *, int *, XkbIndicatorMapPtr, int *);
+int (*XkbGetNamedDeviceIndicator_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, Atom, int *, int *, XkbIndicatorMapPtr, int *);
+int (*XkbSetNamedIndicator_dylibloader_wrapper_xlib)(Display *, Atom, int, int, int, XkbIndicatorMapPtr);
+int (*XkbSetNamedDeviceIndicator_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, Atom, int, int, int, XkbIndicatorMapPtr);
+int (*XkbLockModifiers_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+int (*XkbLatchModifiers_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+int (*XkbLockGroup_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+int (*XkbLatchGroup_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+int (*XkbSetServerInternalMods_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
+int (*XkbSetIgnoreLockMods_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
+int (*XkbVirtualModsToReal_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int *);
+int (*XkbComputeEffectiveMap_dylibloader_wrapper_xlib)(XkbDescPtr, XkbKeyTypePtr, unsigned char *);
+int (*XkbInitCanonicalKeyTypes_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+XkbDescPtr (*XkbAllocKeyboard_dylibloader_wrapper_xlib)(void);
+void (*XkbFreeKeyboard_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+int (*XkbAllocClientMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+int (*XkbAllocServerMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+void (*XkbFreeClientMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+void (*XkbFreeServerMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+XkbKeyTypePtr (*XkbAddKeyType_dylibloader_wrapper_xlib)(XkbDescPtr, Atom, int, int, int);
+int (*XkbAllocIndicatorMaps_dylibloader_wrapper_xlib)(XkbDescPtr);
+void (*XkbFreeIndicatorMaps_dylibloader_wrapper_xlib)(XkbDescPtr);
+XkbDescPtr (*XkbGetMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+int (*XkbGetUpdatedMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+int (*XkbGetMapChanges_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbMapChangesPtr);
+int (*XkbRefreshKeyboardMapping_dylibloader_wrapper_xlib)(XkbMapNotifyEvent *);
+int (*XkbGetKeyTypes_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetKeySyms_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetKeyActions_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetKeyBehaviors_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetVirtualMods_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+int (*XkbGetKeyExplicitComponents_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetKeyModifierMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbGetKeyVirtualModMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbAllocControls_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int);
+void (*XkbFreeControls_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+int (*XkbGetControls_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+int (*XkbSetControls_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+void (*XkbNoteControlsChanges_dylibloader_wrapper_xlib)(XkbControlsChangesPtr, XkbControlsNotifyEvent *, unsigned int);
+int (*XkbAllocCompatMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+void (*XkbFreeCompatMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+int (*XkbGetCompatMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+int (*XkbSetCompatMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr, int);
+int (*XkbAllocNames_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int, int);
+int (*XkbGetNames_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+int (*XkbSetNames_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, XkbDescPtr);
+int (*XkbChangeNames_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbNameChangesPtr);
+void (*XkbFreeNames_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+int (*XkbGetState_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbStatePtr);
+int (*XkbSetMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+int (*XkbChangeMap_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbMapChangesPtr);
+int (*XkbSetDetectableAutoRepeat_dylibloader_wrapper_xlib)(Display *, int, int *);
+int (*XkbGetDetectableAutoRepeat_dylibloader_wrapper_xlib)(Display *, int *);
+int (*XkbSetAutoResetControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *, unsigned int *);
+int (*XkbGetAutoResetControls_dylibloader_wrapper_xlib)(Display *, unsigned int *, unsigned int *);
+int (*XkbSetPerClientControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *);
+int (*XkbGetPerClientControls_dylibloader_wrapper_xlib)(Display *, unsigned int *);
+int (*XkbCopyKeyType_dylibloader_wrapper_xlib)(XkbKeyTypePtr, XkbKeyTypePtr);
+int (*XkbCopyKeyTypes_dylibloader_wrapper_xlib)(XkbKeyTypePtr, XkbKeyTypePtr, int);
+int (*XkbResizeKeyType_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, int, int);
+KeySym *(*XkbResizeKeySyms_dylibloader_wrapper_xlib)(XkbDescPtr, int, int);
+XkbAction *(*XkbResizeKeyActions_dylibloader_wrapper_xlib)(XkbDescPtr, int, int);
+int (*XkbChangeTypesOfKey_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, unsigned int, int *, XkbMapChangesPtr);
+int (*XkbChangeKeycodeRange_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, XkbChangesPtr);
+XkbComponentListPtr (*XkbListComponents_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbComponentNamesPtr, int *);
+void (*XkbFreeComponentList_dylibloader_wrapper_xlib)(XkbComponentListPtr);
+XkbDescPtr (*XkbGetKeyboard_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+XkbDescPtr (*XkbGetKeyboardByName_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbComponentNamesPtr, unsigned int, unsigned int, int);
+int (*XkbKeyTypesForCoreSymbols_dylibloader_wrapper_xlib)(XkbDescPtr, int, KeySym *, unsigned int, int *, KeySym *);
+int (*XkbApplyCompatMapToKey_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, XkbChangesPtr);
+int (*XkbUpdateMapFromCore_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, int, int, KeySym *, XkbChangesPtr);
+XkbDeviceLedInfoPtr (*XkbAddDeviceLedInfo_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int, unsigned int);
+int (*XkbResizeDeviceButtonActions_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int);
+XkbDeviceInfoPtr (*XkbAllocDeviceInfo_dylibloader_wrapper_xlib)(unsigned int, unsigned int, unsigned int);
+void (*XkbFreeDeviceInfo_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int, int);
+void (*XkbNoteDeviceChanges_dylibloader_wrapper_xlib)(XkbDeviceChangesPtr, XkbExtensionDeviceNotifyEvent *, unsigned int);
+XkbDeviceInfoPtr (*XkbGetDeviceInfo_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int);
+int (*XkbGetDeviceInfoChanges_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
+int (*XkbGetDeviceButtonActions_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, int, unsigned int, unsigned int);
+int (*XkbGetDeviceLedInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
+int (*XkbSetDeviceInfo_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDeviceInfoPtr);
+int (*XkbChangeDeviceInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
+int (*XkbSetDeviceLedInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
+int (*XkbSetDeviceButtonActions_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int);
+char (*XkbToControl_dylibloader_wrapper_xlib)(char);
+int (*XkbSetDebuggingFlags_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, char *, unsigned int, unsigned int, unsigned int *, unsigned int *);
+int (*XkbApplyVirtualModChanges_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, XkbChangesPtr);
+int (*XkbUpdateActionVirtualMods_dylibloader_wrapper_xlib)(XkbDescPtr, XkbAction *, unsigned int);
+void (*XkbUpdateKeyTypeVirtualMods_dylibloader_wrapper_xlib)(XkbDescPtr, XkbKeyTypePtr, unsigned int, XkbChangesPtr);
int initialize_xlib(int verbose) {
void *handle;
char *error;
@@ -2548,6 +2548,14 @@ int initialize_xlib(int verbose) {
fprintf(stderr, "%s\n", error);
}
}
+// XSetIOErrorExitHandler
+ *(void **) (&XSetIOErrorExitHandler_dylibloader_wrapper_xlib) = dlsym(handle, "XSetIOErrorExitHandler");
+ if (verbose) {
+ error = dlerror();
+ if (error != NULL) {
+ fprintf(stderr, "%s\n", error);
+ }
+ }
// XListPixmapFormats
*(void **) (&XListPixmapFormats_dylibloader_wrapper_xlib) = dlsym(handle, "XListPixmapFormats");
if (verbose) {
@@ -5132,6 +5140,14 @@ int initialize_xlib(int verbose) {
fprintf(stderr, "%s\n", error);
}
}
+// XFreeThreads
+ *(void **) (&XFreeThreads_dylibloader_wrapper_xlib) = dlsym(handle, "XFreeThreads");
+ if (verbose) {
+ error = dlerror();
+ if (error != NULL) {
+ fprintf(stderr, "%s\n", error);
+ }
+ }
// XAllocClassHint
*(void **) (&XAllocClassHint_dylibloader_wrapper_xlib) = dlsym(handle, "XAllocClassHint");
if (verbose) {
diff --git a/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h
index 5bad21002d..3f556a7cda 100644
--- a/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h
@@ -2,16 +2,9 @@
#define DYLIBLOAD_WRAPPER_XLIB
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:13:26
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xlib.h --include ./thirdparty/linuxbsd_headers/X11/Xutil.h --include ./thirdparty/linuxbsd_headers/X11/XKBlib.h --sys-include "thirdparty/linuxbsd_headers/X11/Xlib.h" --sys-include "thirdparty/linuxbsd_headers/X11/Xutil.h" --sys-include "thirdparty/linuxbsd_headers/X11/XKBlib.h" --soname libX11.so.6 --init-name xlib --omit-prefix XkbGetDeviceIndicatorState --omit-prefix XkbAddSymInterpret --output-header ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c~
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:36
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/Xlib.h --include ./thirdparty/linuxbsd_headers/X11/Xutil.h --include ./thirdparty/linuxbsd_headers/X11/XKBlib.h --sys-include thirdparty/linuxbsd_headers/X11/Xlib.h --sys-include thirdparty/linuxbsd_headers/X11/Xutil.h --sys-include thirdparty/linuxbsd_headers/X11/XKBlib.h --soname libX11.so.6 --init-name xlib --omit-prefix XkbGetDeviceIndicatorState --omit-prefix XkbAddSymInterpret --output-header ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xlib-so_wrap.c
//
-// NOTE: Generated from Xlib 1.6.9.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, the type of the third argument of
-// XIfEvent, XPeekIfEvent and XCheckIfEvent had to be fixed as it wasn't parsed
-// fully (it's a Bool function pointer, but it was just being parsed as an int
-// pointer).
-
#include <stdint.h>
#define _Xmblen _Xmblen_dylibloader_orig_xlib
@@ -103,6 +96,7 @@
#define XScreenNumberOfScreen XScreenNumberOfScreen_dylibloader_orig_xlib
#define XSetErrorHandler XSetErrorHandler_dylibloader_orig_xlib
#define XSetIOErrorHandler XSetIOErrorHandler_dylibloader_orig_xlib
+#define XSetIOErrorExitHandler XSetIOErrorExitHandler_dylibloader_orig_xlib
#define XListPixmapFormats XListPixmapFormats_dylibloader_orig_xlib
#define XListDepths XListDepths_dylibloader_orig_xlib
#define XReconfigureWMWindow XReconfigureWMWindow_dylibloader_orig_xlib
@@ -426,6 +420,7 @@
#define _Xwctomb _Xwctomb_dylibloader_orig_xlib
#define XGetEventData XGetEventData_dylibloader_orig_xlib
#define XFreeEventData XFreeEventData_dylibloader_orig_xlib
+#define XFreeThreads XFreeThreads_dylibloader_orig_xlib
#define XAllocClassHint XAllocClassHint_dylibloader_orig_xlib
#define XAllocIconSize XAllocIconSize_dylibloader_orig_xlib
#define XAllocSizeHints XAllocSizeHints_dylibloader_orig_xlib
@@ -709,6 +704,7 @@
#undef XScreenNumberOfScreen
#undef XSetErrorHandler
#undef XSetIOErrorHandler
+#undef XSetIOErrorExitHandler
#undef XListPixmapFormats
#undef XListDepths
#undef XReconfigureWMWindow
@@ -1032,6 +1028,7 @@
#undef _Xwctomb
#undef XGetEventData
#undef XFreeEventData
+#undef XFreeThreads
#undef XAllocClassHint
#undef XAllocIconSize
#undef XAllocSizeHints
@@ -1315,6 +1312,7 @@ extern "C" {
#define XScreenNumberOfScreen XScreenNumberOfScreen_dylibloader_wrapper_xlib
#define XSetErrorHandler XSetErrorHandler_dylibloader_wrapper_xlib
#define XSetIOErrorHandler XSetIOErrorHandler_dylibloader_wrapper_xlib
+#define XSetIOErrorExitHandler XSetIOErrorExitHandler_dylibloader_wrapper_xlib
#define XListPixmapFormats XListPixmapFormats_dylibloader_wrapper_xlib
#define XListDepths XListDepths_dylibloader_wrapper_xlib
#define XReconfigureWMWindow XReconfigureWMWindow_dylibloader_wrapper_xlib
@@ -1638,6 +1636,7 @@ extern "C" {
#define _Xwctomb _Xwctomb_dylibloader_wrapper_xlib
#define XGetEventData XGetEventData_dylibloader_wrapper_xlib
#define XFreeEventData XFreeEventData_dylibloader_wrapper_xlib
+#define XFreeThreads XFreeThreads_dylibloader_wrapper_xlib
#define XAllocClassHint XAllocClassHint_dylibloader_wrapper_xlib
#define XAllocIconSize XAllocIconSize_dylibloader_wrapper_xlib
#define XAllocSizeHints XAllocSizeHints_dylibloader_wrapper_xlib
@@ -1829,609 +1828,611 @@ extern "C" {
#define XkbApplyVirtualModChanges XkbApplyVirtualModChanges_dylibloader_wrapper_xlib
#define XkbUpdateActionVirtualMods XkbUpdateActionVirtualMods_dylibloader_wrapper_xlib
#define XkbUpdateKeyTypeVirtualMods XkbUpdateKeyTypeVirtualMods_dylibloader_wrapper_xlib
-extern int (*_Xmblen_dylibloader_wrapper_xlib)( char*, int);
-extern XFontStruct* (*XLoadQueryFont_dylibloader_wrapper_xlib)( Display*,const char*);
-extern XFontStruct* (*XQueryFont_dylibloader_wrapper_xlib)( Display*, XID);
-extern XTimeCoord* (*XGetMotionEvents_dylibloader_wrapper_xlib)( Display*, Window, Time, Time, int*);
-extern XModifierKeymap* (*XDeleteModifiermapEntry_dylibloader_wrapper_xlib)( XModifierKeymap*, KeyCode, int);
-extern XModifierKeymap* (*XGetModifierMapping_dylibloader_wrapper_xlib)( Display*);
-extern XModifierKeymap* (*XInsertModifiermapEntry_dylibloader_wrapper_xlib)( XModifierKeymap*, KeyCode, int);
-extern XModifierKeymap* (*XNewModifiermap_dylibloader_wrapper_xlib)( int);
-extern XImage* (*XCreateImage_dylibloader_wrapper_xlib)( Display*, Visual*, unsigned int, int, int, char*, unsigned int, unsigned int, int, int);
-extern int (*XInitImage_dylibloader_wrapper_xlib)( XImage*);
-extern XImage* (*XGetImage_dylibloader_wrapper_xlib)( Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
-extern XImage* (*XGetSubImage_dylibloader_wrapper_xlib)( Display*, Drawable, int, int, unsigned int, unsigned int, unsigned long, int, XImage*, int, int);
-extern Display* (*XOpenDisplay_dylibloader_wrapper_xlib)(const char*);
-extern void (*XrmInitialize_dylibloader_wrapper_xlib)( void);
-extern char* (*XFetchBytes_dylibloader_wrapper_xlib)( Display*, int*);
-extern char* (*XFetchBuffer_dylibloader_wrapper_xlib)( Display*, int*, int);
-extern char* (*XGetAtomName_dylibloader_wrapper_xlib)( Display*, Atom);
-extern int (*XGetAtomNames_dylibloader_wrapper_xlib)( Display*, Atom*, int, char**);
-extern char* (*XGetDefault_dylibloader_wrapper_xlib)( Display*,const char*,const char*);
-extern char* (*XDisplayName_dylibloader_wrapper_xlib)(const char*);
-extern char* (*XKeysymToString_dylibloader_wrapper_xlib)( KeySym);
-extern int* (*XSynchronize_dylibloader_wrapper_xlib)( Display*, int);
-extern int* (*XSetAfterFunction_dylibloader_wrapper_xlib)( Display*, int*);
-extern Atom (*XInternAtom_dylibloader_wrapper_xlib)( Display*,const char*, int);
-extern int (*XInternAtoms_dylibloader_wrapper_xlib)( Display*, char**, int, int, Atom*);
-extern Colormap (*XCopyColormapAndFree_dylibloader_wrapper_xlib)( Display*, Colormap);
-extern Colormap (*XCreateColormap_dylibloader_wrapper_xlib)( Display*, Window, Visual*, int);
-extern Cursor (*XCreatePixmapCursor_dylibloader_wrapper_xlib)( Display*, Pixmap, Pixmap, XColor*, XColor*, unsigned int, unsigned int);
-extern Cursor (*XCreateGlyphCursor_dylibloader_wrapper_xlib)( Display*, Font, Font, unsigned int, unsigned int,const XColor*,const XColor*);
-extern Cursor (*XCreateFontCursor_dylibloader_wrapper_xlib)( Display*, unsigned int);
-extern Font (*XLoadFont_dylibloader_wrapper_xlib)( Display*,const char*);
-extern GC (*XCreateGC_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned long, XGCValues*);
-extern GContext (*XGContextFromGC_dylibloader_wrapper_xlib)( GC);
-extern void (*XFlushGC_dylibloader_wrapper_xlib)( Display*, GC);
-extern Pixmap (*XCreatePixmap_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int);
-extern Pixmap (*XCreateBitmapFromData_dylibloader_wrapper_xlib)( Display*, Drawable,const char*, unsigned int, unsigned int);
-extern Pixmap (*XCreatePixmapFromBitmapData_dylibloader_wrapper_xlib)( Display*, Drawable, char*, unsigned int, unsigned int, unsigned long, unsigned long, unsigned int);
-extern Window (*XCreateSimpleWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long);
-extern Window (*XGetSelectionOwner_dylibloader_wrapper_xlib)( Display*, Atom);
-extern Window (*XCreateWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual*, unsigned long, XSetWindowAttributes*);
-extern Colormap* (*XListInstalledColormaps_dylibloader_wrapper_xlib)( Display*, Window, int*);
-extern char** (*XListFonts_dylibloader_wrapper_xlib)( Display*,const char*, int, int*);
-extern char** (*XListFontsWithInfo_dylibloader_wrapper_xlib)( Display*,const char*, int, int*, XFontStruct**);
-extern char** (*XGetFontPath_dylibloader_wrapper_xlib)( Display*, int*);
-extern char** (*XListExtensions_dylibloader_wrapper_xlib)( Display*, int*);
-extern Atom* (*XListProperties_dylibloader_wrapper_xlib)( Display*, Window, int*);
-extern XHostAddress* (*XListHosts_dylibloader_wrapper_xlib)( Display*, int*, int*);
-extern KeySym (*XKeycodeToKeysym_dylibloader_wrapper_xlib)( Display*, KeyCode, int);
-extern KeySym (*XLookupKeysym_dylibloader_wrapper_xlib)( XKeyEvent*, int);
-extern KeySym* (*XGetKeyboardMapping_dylibloader_wrapper_xlib)( Display*, KeyCode, int, int*);
-extern KeySym (*XStringToKeysym_dylibloader_wrapper_xlib)(const char*);
-extern long (*XMaxRequestSize_dylibloader_wrapper_xlib)( Display*);
-extern long (*XExtendedMaxRequestSize_dylibloader_wrapper_xlib)( Display*);
-extern char* (*XResourceManagerString_dylibloader_wrapper_xlib)( Display*);
-extern char* (*XScreenResourceString_dylibloader_wrapper_xlib)( Screen*);
-extern unsigned long (*XDisplayMotionBufferSize_dylibloader_wrapper_xlib)( Display*);
-extern VisualID (*XVisualIDFromVisual_dylibloader_wrapper_xlib)( Visual*);
-extern int (*XInitThreads_dylibloader_wrapper_xlib)( void);
-extern void (*XLockDisplay_dylibloader_wrapper_xlib)( Display*);
-extern void (*XUnlockDisplay_dylibloader_wrapper_xlib)( Display*);
-extern XExtCodes* (*XInitExtension_dylibloader_wrapper_xlib)( Display*,const char*);
-extern XExtCodes* (*XAddExtension_dylibloader_wrapper_xlib)( Display*);
-extern XExtData* (*XFindOnExtensionList_dylibloader_wrapper_xlib)( XExtData**, int);
-extern XExtData** (*XEHeadOfExtensionList_dylibloader_wrapper_xlib)( XEDataObject);
-extern Window (*XRootWindow_dylibloader_wrapper_xlib)( Display*, int);
-extern Window (*XDefaultRootWindow_dylibloader_wrapper_xlib)( Display*);
-extern Window (*XRootWindowOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern Visual* (*XDefaultVisual_dylibloader_wrapper_xlib)( Display*, int);
-extern Visual* (*XDefaultVisualOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern GC (*XDefaultGC_dylibloader_wrapper_xlib)( Display*, int);
-extern GC (*XDefaultGCOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern unsigned long (*XBlackPixel_dylibloader_wrapper_xlib)( Display*, int);
-extern unsigned long (*XWhitePixel_dylibloader_wrapper_xlib)( Display*, int);
-extern unsigned long (*XAllPlanes_dylibloader_wrapper_xlib)( void);
-extern unsigned long (*XBlackPixelOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern unsigned long (*XWhitePixelOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern unsigned long (*XNextRequest_dylibloader_wrapper_xlib)( Display*);
-extern unsigned long (*XLastKnownRequestProcessed_dylibloader_wrapper_xlib)( Display*);
-extern char* (*XServerVendor_dylibloader_wrapper_xlib)( Display*);
-extern char* (*XDisplayString_dylibloader_wrapper_xlib)( Display*);
-extern Colormap (*XDefaultColormap_dylibloader_wrapper_xlib)( Display*, int);
-extern Colormap (*XDefaultColormapOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern Display* (*XDisplayOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern Screen* (*XScreenOfDisplay_dylibloader_wrapper_xlib)( Display*, int);
-extern Screen* (*XDefaultScreenOfDisplay_dylibloader_wrapper_xlib)( Display*);
-extern long (*XEventMaskOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XScreenNumberOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern XErrorHandler (*XSetErrorHandler_dylibloader_wrapper_xlib)( XErrorHandler);
-extern XIOErrorHandler (*XSetIOErrorHandler_dylibloader_wrapper_xlib)( XIOErrorHandler);
-extern XPixmapFormatValues* (*XListPixmapFormats_dylibloader_wrapper_xlib)( Display*, int*);
-extern int* (*XListDepths_dylibloader_wrapper_xlib)( Display*, int, int*);
-extern int (*XReconfigureWMWindow_dylibloader_wrapper_xlib)( Display*, Window, int, unsigned int, XWindowChanges*);
-extern int (*XGetWMProtocols_dylibloader_wrapper_xlib)( Display*, Window, Atom**, int*);
-extern int (*XSetWMProtocols_dylibloader_wrapper_xlib)( Display*, Window, Atom*, int);
-extern int (*XIconifyWindow_dylibloader_wrapper_xlib)( Display*, Window, int);
-extern int (*XWithdrawWindow_dylibloader_wrapper_xlib)( Display*, Window, int);
-extern int (*XGetCommand_dylibloader_wrapper_xlib)( Display*, Window, char***, int*);
-extern int (*XGetWMColormapWindows_dylibloader_wrapper_xlib)( Display*, Window, Window**, int*);
-extern int (*XSetWMColormapWindows_dylibloader_wrapper_xlib)( Display*, Window, Window*, int);
-extern void (*XFreeStringList_dylibloader_wrapper_xlib)( char**);
-extern int (*XSetTransientForHint_dylibloader_wrapper_xlib)( Display*, Window, Window);
-extern int (*XActivateScreenSaver_dylibloader_wrapper_xlib)( Display*);
-extern int (*XAddHost_dylibloader_wrapper_xlib)( Display*, XHostAddress*);
-extern int (*XAddHosts_dylibloader_wrapper_xlib)( Display*, XHostAddress*, int);
-extern int (*XAddToExtensionList_dylibloader_wrapper_xlib)(struct _XExtData**, XExtData*);
-extern int (*XAddToSaveSet_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XAllocColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-extern int (*XAllocColorCells_dylibloader_wrapper_xlib)( Display*, Colormap, int, unsigned long*, unsigned int, unsigned long*, unsigned int);
-extern int (*XAllocColorPlanes_dylibloader_wrapper_xlib)( Display*, Colormap, int, unsigned long*, int, int, int, int, unsigned long*, unsigned long*, unsigned long*);
-extern int (*XAllocNamedColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*, XColor*);
-extern int (*XAllowEvents_dylibloader_wrapper_xlib)( Display*, int, Time);
-extern int (*XAutoRepeatOff_dylibloader_wrapper_xlib)( Display*);
-extern int (*XAutoRepeatOn_dylibloader_wrapper_xlib)( Display*);
-extern int (*XBell_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XBitmapBitOrder_dylibloader_wrapper_xlib)( Display*);
-extern int (*XBitmapPad_dylibloader_wrapper_xlib)( Display*);
-extern int (*XBitmapUnit_dylibloader_wrapper_xlib)( Display*);
-extern int (*XCellsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XChangeActivePointerGrab_dylibloader_wrapper_xlib)( Display*, unsigned int, Cursor, Time);
-extern int (*XChangeGC_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, XGCValues*);
-extern int (*XChangeKeyboardControl_dylibloader_wrapper_xlib)( Display*, unsigned long, XKeyboardControl*);
-extern int (*XChangeKeyboardMapping_dylibloader_wrapper_xlib)( Display*, int, int, KeySym*, int);
-extern int (*XChangePointerControl_dylibloader_wrapper_xlib)( Display*, int, int, int, int, int);
-extern int (*XChangeProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom, Atom, int, int,const unsigned char*, int);
-extern int (*XChangeSaveSet_dylibloader_wrapper_xlib)( Display*, Window, int);
-extern int (*XChangeWindowAttributes_dylibloader_wrapper_xlib)( Display*, Window, unsigned long, XSetWindowAttributes*);
-extern int (*XCheckIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-extern int (*XCheckMaskEvent_dylibloader_wrapper_xlib)( Display*, long, XEvent*);
-extern int (*XCheckTypedEvent_dylibloader_wrapper_xlib)( Display*, int, XEvent*);
-extern int (*XCheckTypedWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, int, XEvent*);
-extern int (*XCheckWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, long, XEvent*);
-extern int (*XCirculateSubwindows_dylibloader_wrapper_xlib)( Display*, Window, int);
-extern int (*XCirculateSubwindowsDown_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XCirculateSubwindowsUp_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XClearArea_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int, int);
-extern int (*XClearWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XCloseDisplay_dylibloader_wrapper_xlib)( Display*);
-extern int (*XConfigureWindow_dylibloader_wrapper_xlib)( Display*, Window, unsigned int, XWindowChanges*);
-extern int (*XConnectionNumber_dylibloader_wrapper_xlib)( Display*);
-extern int (*XConvertSelection_dylibloader_wrapper_xlib)( Display*, Atom, Atom, Atom, Window, Time);
-extern int (*XCopyArea_dylibloader_wrapper_xlib)( Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-extern int (*XCopyGC_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, GC);
-extern int (*XCopyPlane_dylibloader_wrapper_xlib)( Display*, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
-extern int (*XDefaultDepth_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDefaultDepthOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XDefaultScreen_dylibloader_wrapper_xlib)( Display*);
-extern int (*XDefineCursor_dylibloader_wrapper_xlib)( Display*, Window, Cursor);
-extern int (*XDeleteProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom);
-extern int (*XDestroyWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XDestroySubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XDoesBackingStore_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XDoesSaveUnders_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XDisableAccessControl_dylibloader_wrapper_xlib)( Display*);
-extern int (*XDisplayCells_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDisplayHeight_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDisplayHeightMM_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDisplayKeycodes_dylibloader_wrapper_xlib)( Display*, int*, int*);
-extern int (*XDisplayPlanes_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDisplayWidth_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDisplayWidthMM_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XDrawArc_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-extern int (*XDrawArcs_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XArc*, int);
-extern int (*XDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const char*, int);
-extern int (*XDrawImageString16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const XChar2b*, int);
-extern int (*XDrawLine_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, int, int);
-extern int (*XDrawLines_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int);
-extern int (*XDrawPoint_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int);
-extern int (*XDrawPoints_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int);
-extern int (*XDrawRectangle_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int);
-extern int (*XDrawRectangles_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XRectangle*, int);
-extern int (*XDrawSegments_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XSegment*, int);
-extern int (*XDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const char*, int);
-extern int (*XDrawString16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int,const XChar2b*, int);
-extern int (*XDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XTextItem*, int);
-extern int (*XDrawText16_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XTextItem16*, int);
-extern int (*XEnableAccessControl_dylibloader_wrapper_xlib)( Display*);
-extern int (*XEventsQueued_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XFetchName_dylibloader_wrapper_xlib)( Display*, Window, char**);
-extern int (*XFillArc_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
-extern int (*XFillArcs_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XArc*, int);
-extern int (*XFillPolygon_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XPoint*, int, int, int);
-extern int (*XFillRectangle_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, unsigned int, unsigned int);
-extern int (*XFillRectangles_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XRectangle*, int);
-extern int (*XFlush_dylibloader_wrapper_xlib)( Display*);
-extern int (*XForceScreenSaver_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XFree_dylibloader_wrapper_xlib)( void*);
-extern int (*XFreeColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-extern int (*XFreeColors_dylibloader_wrapper_xlib)( Display*, Colormap, unsigned long*, int, unsigned long);
-extern int (*XFreeCursor_dylibloader_wrapper_xlib)( Display*, Cursor);
-extern int (*XFreeExtensionList_dylibloader_wrapper_xlib)( char**);
-extern int (*XFreeFont_dylibloader_wrapper_xlib)( Display*, XFontStruct*);
-extern int (*XFreeFontInfo_dylibloader_wrapper_xlib)( char**, XFontStruct*, int);
-extern int (*XFreeFontNames_dylibloader_wrapper_xlib)( char**);
-extern int (*XFreeFontPath_dylibloader_wrapper_xlib)( char**);
-extern int (*XFreeGC_dylibloader_wrapper_xlib)( Display*, GC);
-extern int (*XFreeModifiermap_dylibloader_wrapper_xlib)( XModifierKeymap*);
-extern int (*XFreePixmap_dylibloader_wrapper_xlib)( Display*, Pixmap);
-extern int (*XGeometry_dylibloader_wrapper_xlib)( Display*, int,const char*,const char*, unsigned int, unsigned int, unsigned int, int, int, int*, int*, int*, int*);
-extern int (*XGetErrorDatabaseText_dylibloader_wrapper_xlib)( Display*,const char*,const char*,const char*, char*, int);
-extern int (*XGetErrorText_dylibloader_wrapper_xlib)( Display*, int, char*, int);
-extern int (*XGetFontProperty_dylibloader_wrapper_xlib)( XFontStruct*, Atom, unsigned long*);
-extern int (*XGetGCValues_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, XGCValues*);
-extern int (*XGetGeometry_dylibloader_wrapper_xlib)( Display*, Drawable, Window*, int*, int*, unsigned int*, unsigned int*, unsigned int*, unsigned int*);
-extern int (*XGetIconName_dylibloader_wrapper_xlib)( Display*, Window, char**);
-extern int (*XGetInputFocus_dylibloader_wrapper_xlib)( Display*, Window*, int*);
-extern int (*XGetKeyboardControl_dylibloader_wrapper_xlib)( Display*, XKeyboardState*);
-extern int (*XGetPointerControl_dylibloader_wrapper_xlib)( Display*, int*, int*, int*);
-extern int (*XGetPointerMapping_dylibloader_wrapper_xlib)( Display*, unsigned char*, int);
-extern int (*XGetScreenSaver_dylibloader_wrapper_xlib)( Display*, int*, int*, int*, int*);
-extern int (*XGetTransientForHint_dylibloader_wrapper_xlib)( Display*, Window, Window*);
-extern int (*XGetWindowProperty_dylibloader_wrapper_xlib)( Display*, Window, Atom, long, long, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-extern int (*XGetWindowAttributes_dylibloader_wrapper_xlib)( Display*, Window, XWindowAttributes*);
-extern int (*XGrabButton_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, Window, int, unsigned int, int, int, Window, Cursor);
-extern int (*XGrabKey_dylibloader_wrapper_xlib)( Display*, int, unsigned int, Window, int, int, int);
-extern int (*XGrabKeyboard_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, Time);
-extern int (*XGrabPointer_dylibloader_wrapper_xlib)( Display*, Window, int, unsigned int, int, int, Window, Cursor, Time);
-extern int (*XGrabServer_dylibloader_wrapper_xlib)( Display*);
-extern int (*XHeightMMOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XHeightOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-extern int (*XImageByteOrder_dylibloader_wrapper_xlib)( Display*);
-extern int (*XInstallColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-extern KeyCode (*XKeysymToKeycode_dylibloader_wrapper_xlib)( Display*, KeySym);
-extern int (*XKillClient_dylibloader_wrapper_xlib)( Display*, XID);
-extern int (*XLookupColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*, XColor*);
-extern int (*XLowerWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XMapRaised_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XMapSubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XMapWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XMaskEvent_dylibloader_wrapper_xlib)( Display*, long, XEvent*);
-extern int (*XMaxCmapsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XMinCmapsOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XMoveResizeWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int, unsigned int, unsigned int);
-extern int (*XMoveWindow_dylibloader_wrapper_xlib)( Display*, Window, int, int);
-extern int (*XNextEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-extern int (*XNoOp_dylibloader_wrapper_xlib)( Display*);
-extern int (*XParseColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, XColor*);
-extern int (*XParseGeometry_dylibloader_wrapper_xlib)(const char*, int*, int*, unsigned int*, unsigned int*);
-extern int (*XPeekEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-extern int (*XPeekIfEvent_dylibloader_wrapper_xlib)( Display*, XEvent*, Bool (*) (Display*, XEvent*, XPointer), XPointer);
-extern int (*XPending_dylibloader_wrapper_xlib)( Display*);
-extern int (*XPlanesOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XProtocolRevision_dylibloader_wrapper_xlib)( Display*);
-extern int (*XProtocolVersion_dylibloader_wrapper_xlib)( Display*);
-extern int (*XPutBackEvent_dylibloader_wrapper_xlib)( Display*, XEvent*);
-extern int (*XPutImage_dylibloader_wrapper_xlib)( Display*, Drawable, GC, XImage*, int, int, int, int, unsigned int, unsigned int);
-extern int (*XQLength_dylibloader_wrapper_xlib)( Display*);
-extern int (*XQueryBestCursor_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-extern int (*XQueryBestSize_dylibloader_wrapper_xlib)( Display*, int, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-extern int (*XQueryBestStipple_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-extern int (*XQueryBestTile_dylibloader_wrapper_xlib)( Display*, Drawable, unsigned int, unsigned int, unsigned int*, unsigned int*);
-extern int (*XQueryColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-extern int (*XQueryColors_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*, int);
-extern int (*XQueryExtension_dylibloader_wrapper_xlib)( Display*,const char*, int*, int*, int*);
-extern int (*XQueryKeymap_dylibloader_wrapper_xlib)( Display*, char [32]);
-extern int (*XQueryPointer_dylibloader_wrapper_xlib)( Display*, Window, Window*, Window*, int*, int*, int*, int*, unsigned int*);
-extern int (*XQueryTextExtents_dylibloader_wrapper_xlib)( Display*, XID,const char*, int, int*, int*, int*, XCharStruct*);
-extern int (*XQueryTextExtents16_dylibloader_wrapper_xlib)( Display*, XID,const XChar2b*, int, int*, int*, int*, XCharStruct*);
-extern int (*XQueryTree_dylibloader_wrapper_xlib)( Display*, Window, Window*, Window*, Window**, unsigned int*);
-extern int (*XRaiseWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XReadBitmapFile_dylibloader_wrapper_xlib)( Display*, Drawable,const char*, unsigned int*, unsigned int*, Pixmap*, int*, int*);
-extern int (*XReadBitmapFileData_dylibloader_wrapper_xlib)(const char*, unsigned int*, unsigned int*, unsigned char**, int*, int*);
-extern int (*XRebindKeysym_dylibloader_wrapper_xlib)( Display*, KeySym, KeySym*, int,const unsigned char*, int);
-extern int (*XRecolorCursor_dylibloader_wrapper_xlib)( Display*, Cursor, XColor*, XColor*);
-extern int (*XRefreshKeyboardMapping_dylibloader_wrapper_xlib)( XMappingEvent*);
-extern int (*XRemoveFromSaveSet_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XRemoveHost_dylibloader_wrapper_xlib)( Display*, XHostAddress*);
-extern int (*XRemoveHosts_dylibloader_wrapper_xlib)( Display*, XHostAddress*, int);
-extern int (*XReparentWindow_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int);
-extern int (*XResetScreenSaver_dylibloader_wrapper_xlib)( Display*);
-extern int (*XResizeWindow_dylibloader_wrapper_xlib)( Display*, Window, unsigned int, unsigned int);
-extern int (*XRestackWindows_dylibloader_wrapper_xlib)( Display*, Window*, int);
-extern int (*XRotateBuffers_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XRotateWindowProperties_dylibloader_wrapper_xlib)( Display*, Window, Atom*, int, int);
-extern int (*XScreenCount_dylibloader_wrapper_xlib)( Display*);
-extern int (*XSelectInput_dylibloader_wrapper_xlib)( Display*, Window, long);
-extern int (*XSendEvent_dylibloader_wrapper_xlib)( Display*, Window, int, long, XEvent*);
-extern int (*XSetAccessControl_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XSetArcMode_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetBackground_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-extern int (*XSetClipMask_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-extern int (*XSetClipOrigin_dylibloader_wrapper_xlib)( Display*, GC, int, int);
-extern int (*XSetClipRectangles_dylibloader_wrapper_xlib)( Display*, GC, int, int, XRectangle*, int, int);
-extern int (*XSetCloseDownMode_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XSetCommand_dylibloader_wrapper_xlib)( Display*, Window, char**, int);
-extern int (*XSetDashes_dylibloader_wrapper_xlib)( Display*, GC, int,const char*, int);
-extern int (*XSetFillRule_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetFillStyle_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetFont_dylibloader_wrapper_xlib)( Display*, GC, Font);
-extern int (*XSetFontPath_dylibloader_wrapper_xlib)( Display*, char**, int);
-extern int (*XSetForeground_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-extern int (*XSetFunction_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetGraphicsExposures_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetIconName_dylibloader_wrapper_xlib)( Display*, Window,const char*);
-extern int (*XSetInputFocus_dylibloader_wrapper_xlib)( Display*, Window, int, Time);
-extern int (*XSetLineAttributes_dylibloader_wrapper_xlib)( Display*, GC, unsigned int, int, int, int);
-extern int (*XSetModifierMapping_dylibloader_wrapper_xlib)( Display*, XModifierKeymap*);
-extern int (*XSetPlaneMask_dylibloader_wrapper_xlib)( Display*, GC, unsigned long);
-extern int (*XSetPointerMapping_dylibloader_wrapper_xlib)( Display*,const unsigned char*, int);
-extern int (*XSetScreenSaver_dylibloader_wrapper_xlib)( Display*, int, int, int, int);
-extern int (*XSetSelectionOwner_dylibloader_wrapper_xlib)( Display*, Atom, Window, Time);
-extern int (*XSetState_dylibloader_wrapper_xlib)( Display*, GC, unsigned long, unsigned long, int, unsigned long);
-extern int (*XSetStipple_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-extern int (*XSetSubwindowMode_dylibloader_wrapper_xlib)( Display*, GC, int);
-extern int (*XSetTSOrigin_dylibloader_wrapper_xlib)( Display*, GC, int, int);
-extern int (*XSetTile_dylibloader_wrapper_xlib)( Display*, GC, Pixmap);
-extern int (*XSetWindowBackground_dylibloader_wrapper_xlib)( Display*, Window, unsigned long);
-extern int (*XSetWindowBackgroundPixmap_dylibloader_wrapper_xlib)( Display*, Window, Pixmap);
-extern int (*XSetWindowBorder_dylibloader_wrapper_xlib)( Display*, Window, unsigned long);
-extern int (*XSetWindowBorderPixmap_dylibloader_wrapper_xlib)( Display*, Window, Pixmap);
-extern int (*XSetWindowBorderWidth_dylibloader_wrapper_xlib)( Display*, Window, unsigned int);
-extern int (*XSetWindowColormap_dylibloader_wrapper_xlib)( Display*, Window, Colormap);
-extern int (*XStoreBuffer_dylibloader_wrapper_xlib)( Display*,const char*, int, int);
-extern int (*XStoreBytes_dylibloader_wrapper_xlib)( Display*,const char*, int);
-extern int (*XStoreColor_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*);
-extern int (*XStoreColors_dylibloader_wrapper_xlib)( Display*, Colormap, XColor*, int);
-extern int (*XStoreName_dylibloader_wrapper_xlib)( Display*, Window,const char*);
-extern int (*XStoreNamedColor_dylibloader_wrapper_xlib)( Display*, Colormap,const char*, unsigned long, int);
-extern int (*XSync_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XTextExtents_dylibloader_wrapper_xlib)( XFontStruct*,const char*, int, int*, int*, int*, XCharStruct*);
-extern int (*XTextExtents16_dylibloader_wrapper_xlib)( XFontStruct*,const XChar2b*, int, int*, int*, int*, XCharStruct*);
-extern int (*XTextWidth_dylibloader_wrapper_xlib)( XFontStruct*,const char*, int);
-extern int (*XTextWidth16_dylibloader_wrapper_xlib)( XFontStruct*,const XChar2b*, int);
-extern int (*XTranslateCoordinates_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int, int*, int*, Window*);
-extern int (*XUndefineCursor_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XUngrabButton_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, Window);
-extern int (*XUngrabKey_dylibloader_wrapper_xlib)( Display*, int, unsigned int, Window);
-extern int (*XUngrabKeyboard_dylibloader_wrapper_xlib)( Display*, Time);
-extern int (*XUngrabPointer_dylibloader_wrapper_xlib)( Display*, Time);
-extern int (*XUngrabServer_dylibloader_wrapper_xlib)( Display*);
-extern int (*XUninstallColormap_dylibloader_wrapper_xlib)( Display*, Colormap);
-extern int (*XUnloadFont_dylibloader_wrapper_xlib)( Display*, Font);
-extern int (*XUnmapSubwindows_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XUnmapWindow_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XVendorRelease_dylibloader_wrapper_xlib)( Display*);
-extern int (*XWarpPointer_dylibloader_wrapper_xlib)( Display*, Window, Window, int, int, unsigned int, unsigned int, int, int);
-extern int (*XWidthMMOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XWidthOfScreen_dylibloader_wrapper_xlib)( Screen*);
-extern int (*XWindowEvent_dylibloader_wrapper_xlib)( Display*, Window, long, XEvent*);
-extern int (*XWriteBitmapFile_dylibloader_wrapper_xlib)( Display*,const char*, Pixmap, unsigned int, unsigned int, int, int);
-extern int (*XSupportsLocale_dylibloader_wrapper_xlib)( void);
-extern char* (*XSetLocaleModifiers_dylibloader_wrapper_xlib)(const char*);
-extern XOM (*XOpenOM_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*,const char*,const char*);
-extern int (*XCloseOM_dylibloader_wrapper_xlib)( XOM);
-extern char* (*XSetOMValues_dylibloader_wrapper_xlib)( XOM,...);
-extern char* (*XGetOMValues_dylibloader_wrapper_xlib)( XOM,...);
-extern Display* (*XDisplayOfOM_dylibloader_wrapper_xlib)( XOM);
-extern char* (*XLocaleOfOM_dylibloader_wrapper_xlib)( XOM);
-extern XOC (*XCreateOC_dylibloader_wrapper_xlib)( XOM,...);
-extern void (*XDestroyOC_dylibloader_wrapper_xlib)( XOC);
-extern XOM (*XOMOfOC_dylibloader_wrapper_xlib)( XOC);
-extern char* (*XSetOCValues_dylibloader_wrapper_xlib)( XOC,...);
-extern char* (*XGetOCValues_dylibloader_wrapper_xlib)( XOC,...);
-extern XFontSet (*XCreateFontSet_dylibloader_wrapper_xlib)( Display*,const char*, char***, int*, char**);
-extern void (*XFreeFontSet_dylibloader_wrapper_xlib)( Display*, XFontSet);
-extern int (*XFontsOfFontSet_dylibloader_wrapper_xlib)( XFontSet, XFontStruct***, char***);
-extern char* (*XBaseFontNameListOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-extern char* (*XLocaleOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-extern int (*XContextDependentDrawing_dylibloader_wrapper_xlib)( XFontSet);
-extern int (*XDirectionalDependentDrawing_dylibloader_wrapper_xlib)( XFontSet);
-extern int (*XContextualDrawing_dylibloader_wrapper_xlib)( XFontSet);
-extern XFontSetExtents* (*XExtentsOfFontSet_dylibloader_wrapper_xlib)( XFontSet);
-extern int (*XmbTextEscapement_dylibloader_wrapper_xlib)( XFontSet,const char*, int);
-extern int (*XwcTextEscapement_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int);
-extern int (*Xutf8TextEscapement_dylibloader_wrapper_xlib)( XFontSet,const char*, int);
-extern int (*XmbTextExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*);
-extern int (*XwcTextExtents_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int, XRectangle*, XRectangle*);
-extern int (*Xutf8TextExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*);
-extern int (*XmbTextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-extern int (*XwcTextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const wchar_t*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-extern int (*Xutf8TextPerCharExtents_dylibloader_wrapper_xlib)( XFontSet,const char*, int, XRectangle*, XRectangle*, int, int*, XRectangle*, XRectangle*);
-extern void (*XmbDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XmbTextItem*, int);
-extern void (*XwcDrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XwcTextItem*, int);
-extern void (*Xutf8DrawText_dylibloader_wrapper_xlib)( Display*, Drawable, GC, int, int, XmbTextItem*, int);
-extern void (*XmbDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-extern void (*XwcDrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const wchar_t*, int);
-extern void (*Xutf8DrawString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-extern void (*XmbDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-extern void (*XwcDrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const wchar_t*, int);
-extern void (*Xutf8DrawImageString_dylibloader_wrapper_xlib)( Display*, Drawable, XFontSet, GC, int, int,const char*, int);
-extern XIM (*XOpenIM_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*);
-extern int (*XCloseIM_dylibloader_wrapper_xlib)( XIM);
-extern char* (*XGetIMValues_dylibloader_wrapper_xlib)( XIM,...);
-extern char* (*XSetIMValues_dylibloader_wrapper_xlib)( XIM,...);
-extern Display* (*XDisplayOfIM_dylibloader_wrapper_xlib)( XIM);
-extern char* (*XLocaleOfIM_dylibloader_wrapper_xlib)( XIM);
-extern XIC (*XCreateIC_dylibloader_wrapper_xlib)( XIM,...);
-extern void (*XDestroyIC_dylibloader_wrapper_xlib)( XIC);
-extern void (*XSetICFocus_dylibloader_wrapper_xlib)( XIC);
-extern void (*XUnsetICFocus_dylibloader_wrapper_xlib)( XIC);
-extern wchar_t* (*XwcResetIC_dylibloader_wrapper_xlib)( XIC);
-extern char* (*XmbResetIC_dylibloader_wrapper_xlib)( XIC);
-extern char* (*Xutf8ResetIC_dylibloader_wrapper_xlib)( XIC);
-extern char* (*XSetICValues_dylibloader_wrapper_xlib)( XIC,...);
-extern char* (*XGetICValues_dylibloader_wrapper_xlib)( XIC,...);
-extern XIM (*XIMOfIC_dylibloader_wrapper_xlib)( XIC);
-extern int (*XFilterEvent_dylibloader_wrapper_xlib)( XEvent*, Window);
-extern int (*XmbLookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, char*, int, KeySym*, int*);
-extern int (*XwcLookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, wchar_t*, int, KeySym*, int*);
-extern int (*Xutf8LookupString_dylibloader_wrapper_xlib)( XIC, XKeyPressedEvent*, char*, int, KeySym*, int*);
-extern XVaNestedList (*XVaCreateNestedList_dylibloader_wrapper_xlib)( int,...);
-extern int (*XRegisterIMInstantiateCallback_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*, XIDProc, XPointer);
-extern int (*XUnregisterIMInstantiateCallback_dylibloader_wrapper_xlib)( Display*,struct _XrmHashBucketRec*, char*, char*, XIDProc, XPointer);
-extern int (*XInternalConnectionNumbers_dylibloader_wrapper_xlib)( Display*, int**, int*);
-extern void (*XProcessInternalConnection_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XAddConnectionWatch_dylibloader_wrapper_xlib)( Display*, XConnectionWatchProc, XPointer);
-extern void (*XRemoveConnectionWatch_dylibloader_wrapper_xlib)( Display*, XConnectionWatchProc, XPointer);
-extern void (*XSetAuthorization_dylibloader_wrapper_xlib)( char*, int, char*, int);
-extern int (*_Xmbtowc_dylibloader_wrapper_xlib)( wchar_t*, char*, int);
-extern int (*_Xwctomb_dylibloader_wrapper_xlib)( char*, wchar_t);
-extern int (*XGetEventData_dylibloader_wrapper_xlib)( Display*, XGenericEventCookie*);
-extern void (*XFreeEventData_dylibloader_wrapper_xlib)( Display*, XGenericEventCookie*);
-extern XClassHint* (*XAllocClassHint_dylibloader_wrapper_xlib)( void);
-extern XIconSize* (*XAllocIconSize_dylibloader_wrapper_xlib)( void);
-extern XSizeHints* (*XAllocSizeHints_dylibloader_wrapper_xlib)( void);
-extern XStandardColormap* (*XAllocStandardColormap_dylibloader_wrapper_xlib)( void);
-extern XWMHints* (*XAllocWMHints_dylibloader_wrapper_xlib)( void);
-extern int (*XClipBox_dylibloader_wrapper_xlib)( Region, XRectangle*);
-extern Region (*XCreateRegion_dylibloader_wrapper_xlib)( void);
-extern const char* (*XDefaultString_dylibloader_wrapper_xlib)( void);
-extern int (*XDeleteContext_dylibloader_wrapper_xlib)( Display*, XID, XContext);
-extern int (*XDestroyRegion_dylibloader_wrapper_xlib)( Region);
-extern int (*XEmptyRegion_dylibloader_wrapper_xlib)( Region);
-extern int (*XEqualRegion_dylibloader_wrapper_xlib)( Region, Region);
-extern int (*XFindContext_dylibloader_wrapper_xlib)( Display*, XID, XContext, XPointer*);
-extern int (*XGetClassHint_dylibloader_wrapper_xlib)( Display*, Window, XClassHint*);
-extern int (*XGetIconSizes_dylibloader_wrapper_xlib)( Display*, Window, XIconSize**, int*);
-extern int (*XGetNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-extern int (*XGetRGBColormaps_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap**, int*, Atom);
-extern int (*XGetSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-extern int (*XGetStandardColormap_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, Atom);
-extern int (*XGetTextProperty_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, Atom);
-extern XVisualInfo* (*XGetVisualInfo_dylibloader_wrapper_xlib)( Display*, long, XVisualInfo*, int*);
-extern int (*XGetWMClientMachine_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern XWMHints* (*XGetWMHints_dylibloader_wrapper_xlib)( Display*, Window);
-extern int (*XGetWMIconName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern int (*XGetWMName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern int (*XGetWMNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, long*);
-extern int (*XGetWMSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, long*, Atom);
-extern int (*XGetZoomHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-extern int (*XIntersectRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-extern void (*XConvertCase_dylibloader_wrapper_xlib)( KeySym, KeySym*, KeySym*);
-extern int (*XLookupString_dylibloader_wrapper_xlib)( XKeyEvent*, char*, int, KeySym*, XComposeStatus*);
-extern int (*XMatchVisualInfo_dylibloader_wrapper_xlib)( Display*, int, int, int, XVisualInfo*);
-extern int (*XOffsetRegion_dylibloader_wrapper_xlib)( Region, int, int);
-extern int (*XPointInRegion_dylibloader_wrapper_xlib)( Region, int, int);
-extern Region (*XPolygonRegion_dylibloader_wrapper_xlib)( XPoint*, int, int);
-extern int (*XRectInRegion_dylibloader_wrapper_xlib)( Region, int, int, unsigned int, unsigned int);
-extern int (*XSaveContext_dylibloader_wrapper_xlib)( Display*, XID, XContext,const char*);
-extern int (*XSetClassHint_dylibloader_wrapper_xlib)( Display*, Window, XClassHint*);
-extern int (*XSetIconSizes_dylibloader_wrapper_xlib)( Display*, Window, XIconSize*, int);
-extern int (*XSetNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-extern void (*XSetRGBColormaps_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, int, Atom);
-extern int (*XSetSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-extern int (*XSetStandardProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, Pixmap, char**, int, XSizeHints*);
-extern void (*XSetTextProperty_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, Atom);
-extern void (*XSetWMClientMachine_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern int (*XSetWMHints_dylibloader_wrapper_xlib)( Display*, Window, XWMHints*);
-extern void (*XSetWMIconName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern void (*XSetWMName_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*);
-extern void (*XSetWMNormalHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-extern void (*XSetWMProperties_dylibloader_wrapper_xlib)( Display*, Window, XTextProperty*, XTextProperty*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-extern void (*XmbSetWMProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-extern void (*Xutf8SetWMProperties_dylibloader_wrapper_xlib)( Display*, Window,const char*,const char*, char**, int, XSizeHints*, XWMHints*, XClassHint*);
-extern void (*XSetWMSizeHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*, Atom);
-extern int (*XSetRegion_dylibloader_wrapper_xlib)( Display*, GC, Region);
-extern void (*XSetStandardColormap_dylibloader_wrapper_xlib)( Display*, Window, XStandardColormap*, Atom);
-extern int (*XSetZoomHints_dylibloader_wrapper_xlib)( Display*, Window, XSizeHints*);
-extern int (*XShrinkRegion_dylibloader_wrapper_xlib)( Region, int, int);
-extern int (*XStringListToTextProperty_dylibloader_wrapper_xlib)( char**, int, XTextProperty*);
-extern int (*XSubtractRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-extern int (*XmbTextListToTextProperty_dylibloader_wrapper_xlib)( Display*, char**, int, XICCEncodingStyle, XTextProperty*);
-extern int (*XwcTextListToTextProperty_dylibloader_wrapper_xlib)( Display*, wchar_t**, int, XICCEncodingStyle, XTextProperty*);
-extern int (*Xutf8TextListToTextProperty_dylibloader_wrapper_xlib)( Display*, char**, int, XICCEncodingStyle, XTextProperty*);
-extern void (*XwcFreeStringList_dylibloader_wrapper_xlib)( wchar_t**);
-extern int (*XTextPropertyToStringList_dylibloader_wrapper_xlib)( XTextProperty*, char***, int*);
-extern int (*XmbTextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, char***, int*);
-extern int (*XwcTextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, wchar_t***, int*);
-extern int (*Xutf8TextPropertyToTextList_dylibloader_wrapper_xlib)( Display*,const XTextProperty*, char***, int*);
-extern int (*XUnionRectWithRegion_dylibloader_wrapper_xlib)( XRectangle*, Region, Region);
-extern int (*XUnionRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-extern int (*XWMGeometry_dylibloader_wrapper_xlib)( Display*, int,const char*,const char*, unsigned int, XSizeHints*, int*, int*, int*, int*, int*);
-extern int (*XXorRegion_dylibloader_wrapper_xlib)( Region, Region, Region);
-extern int (*XkbIgnoreExtension_dylibloader_wrapper_xlib)( int);
-extern Display* (*XkbOpenDisplay_dylibloader_wrapper_xlib)( char*, int*, int*, int*, int*, int*);
-extern int (*XkbQueryExtension_dylibloader_wrapper_xlib)( Display*, int*, int*, int*, int*, int*);
-extern int (*XkbUseExtension_dylibloader_wrapper_xlib)( Display*, int*, int*);
-extern int (*XkbLibraryVersion_dylibloader_wrapper_xlib)( int*, int*);
-extern unsigned int (*XkbSetXlibControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-extern unsigned int (*XkbGetXlibControls_dylibloader_wrapper_xlib)( Display*);
-extern unsigned int (*XkbXlibControlsImplemented_dylibloader_wrapper_xlib)( void);
-extern void (*XkbSetAtomFuncs_dylibloader_wrapper_xlib)( XkbInternAtomFunc, XkbGetAtomNameFunc);
-extern KeySym (*XkbKeycodeToKeysym_dylibloader_wrapper_xlib)( Display*, KeyCode, int, int);
-extern unsigned int (*XkbKeysymToModifiers_dylibloader_wrapper_xlib)( Display*, KeySym);
-extern int (*XkbLookupKeySym_dylibloader_wrapper_xlib)( Display*, KeyCode, unsigned int, unsigned int*, KeySym*);
-extern int (*XkbLookupKeyBinding_dylibloader_wrapper_xlib)( Display*, KeySym, unsigned int, char*, int, int*);
-extern int (*XkbTranslateKeyCode_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, unsigned int, unsigned int*, KeySym*);
-extern int (*XkbTranslateKeySym_dylibloader_wrapper_xlib)( Display*, KeySym*, unsigned int, char*, int, int*);
-extern int (*XkbSetAutoRepeatRate_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-extern int (*XkbGetAutoRepeatRate_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*, unsigned int*);
-extern int (*XkbChangeEnabledControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-extern int (*XkbDeviceBell_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, int, Atom);
-extern int (*XkbForceDeviceBell_dylibloader_wrapper_xlib)( Display*, int, int, int, int);
-extern int (*XkbDeviceBellEvent_dylibloader_wrapper_xlib)( Display*, Window, int, int, int, int, Atom);
-extern int (*XkbBell_dylibloader_wrapper_xlib)( Display*, Window, int, Atom);
-extern int (*XkbForceBell_dylibloader_wrapper_xlib)( Display*, int);
-extern int (*XkbBellEvent_dylibloader_wrapper_xlib)( Display*, Window, int, Atom);
-extern int (*XkbSelectEvents_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-extern int (*XkbSelectEventDetails_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned long, unsigned long);
-extern void (*XkbNoteMapChanges_dylibloader_wrapper_xlib)( XkbMapChangesPtr, XkbMapNotifyEvent*, unsigned int);
-extern void (*XkbNoteNameChanges_dylibloader_wrapper_xlib)( XkbNameChangesPtr, XkbNamesNotifyEvent*, unsigned int);
-extern int (*XkbGetIndicatorState_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*);
-extern int (*XkbGetIndicatorMap_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-extern int (*XkbSetIndicatorMap_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-extern int (*XkbGetNamedIndicator_dylibloader_wrapper_xlib)( Display*, Atom, int*, int*, XkbIndicatorMapPtr, int*);
-extern int (*XkbGetNamedDeviceIndicator_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, Atom, int*, int*, XkbIndicatorMapPtr, int*);
-extern int (*XkbSetNamedIndicator_dylibloader_wrapper_xlib)( Display*, Atom, int, int, int, XkbIndicatorMapPtr);
-extern int (*XkbSetNamedDeviceIndicator_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, Atom, int, int, int, XkbIndicatorMapPtr);
-extern int (*XkbLockModifiers_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-extern int (*XkbLatchModifiers_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int);
-extern int (*XkbLockGroup_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-extern int (*XkbLatchGroup_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-extern int (*XkbSetServerInternalMods_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
-extern int (*XkbSetIgnoreLockMods_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
-extern int (*XkbVirtualModsToReal_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int*);
-extern int (*XkbComputeEffectiveMap_dylibloader_wrapper_xlib)( XkbDescPtr, XkbKeyTypePtr, unsigned char*);
-extern int (*XkbInitCanonicalKeyTypes_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern XkbDescPtr (*XkbAllocKeyboard_dylibloader_wrapper_xlib)( void);
-extern void (*XkbFreeKeyboard_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern int (*XkbAllocClientMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-extern int (*XkbAllocServerMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-extern void (*XkbFreeClientMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern void (*XkbFreeServerMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern XkbKeyTypePtr (*XkbAddKeyType_dylibloader_wrapper_xlib)( XkbDescPtr, Atom, int, int, int);
-extern int (*XkbAllocIndicatorMaps_dylibloader_wrapper_xlib)( XkbDescPtr);
-extern void (*XkbFreeIndicatorMaps_dylibloader_wrapper_xlib)( XkbDescPtr);
-extern XkbDescPtr (*XkbGetMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-extern int (*XkbGetUpdatedMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-extern int (*XkbGetMapChanges_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbMapChangesPtr);
-extern int (*XkbRefreshKeyboardMapping_dylibloader_wrapper_xlib)( XkbMapNotifyEvent*);
-extern int (*XkbGetKeyTypes_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeySyms_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeyActions_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeyBehaviors_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetVirtualMods_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeyExplicitComponents_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeyModifierMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbGetKeyVirtualModMap_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbAllocControls_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int);
-extern void (*XkbFreeControls_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern int (*XkbGetControls_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-extern int (*XkbSetControls_dylibloader_wrapper_xlib)( Display*, unsigned long, XkbDescPtr);
-extern void (*XkbNoteControlsChanges_dylibloader_wrapper_xlib)( XkbControlsChangesPtr, XkbControlsNotifyEvent*, unsigned int);
-extern int (*XkbAllocCompatMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, unsigned int);
-extern void (*XkbFreeCompatMap_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern int (*XkbGetCompatMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-extern int (*XkbSetCompatMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr, int);
-extern int (*XkbAllocNames_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int, int);
-extern int (*XkbGetNames_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-extern int (*XkbSetNames_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, XkbDescPtr);
-extern int (*XkbChangeNames_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbNameChangesPtr);
-extern void (*XkbFreeNames_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, int);
-extern int (*XkbGetState_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbStatePtr);
-extern int (*XkbSetMap_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDescPtr);
-extern int (*XkbChangeMap_dylibloader_wrapper_xlib)( Display*, XkbDescPtr, XkbMapChangesPtr);
-extern int (*XkbSetDetectableAutoRepeat_dylibloader_wrapper_xlib)( Display*, int, int*);
-extern int (*XkbGetDetectableAutoRepeat_dylibloader_wrapper_xlib)( Display*, int*);
-extern int (*XkbSetAutoResetControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*, unsigned int*);
-extern int (*XkbGetAutoResetControls_dylibloader_wrapper_xlib)( Display*, unsigned int*, unsigned int*);
-extern int (*XkbSetPerClientControls_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int*);
-extern int (*XkbGetPerClientControls_dylibloader_wrapper_xlib)( Display*, unsigned int*);
-extern int (*XkbCopyKeyType_dylibloader_wrapper_xlib)( XkbKeyTypePtr, XkbKeyTypePtr);
-extern int (*XkbCopyKeyTypes_dylibloader_wrapper_xlib)( XkbKeyTypePtr, XkbKeyTypePtr, int);
-extern int (*XkbResizeKeyType_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, int, int);
-extern KeySym* (*XkbResizeKeySyms_dylibloader_wrapper_xlib)( XkbDescPtr, int, int);
-extern XkbAction* (*XkbResizeKeyActions_dylibloader_wrapper_xlib)( XkbDescPtr, int, int);
-extern int (*XkbChangeTypesOfKey_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, unsigned int, int*, XkbMapChangesPtr);
-extern int (*XkbChangeKeycodeRange_dylibloader_wrapper_xlib)( XkbDescPtr, int, int, XkbChangesPtr);
-extern XkbComponentListPtr (*XkbListComponents_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbComponentNamesPtr, int*);
-extern void (*XkbFreeComponentList_dylibloader_wrapper_xlib)( XkbComponentListPtr);
-extern XkbDescPtr (*XkbGetKeyboard_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int);
-extern XkbDescPtr (*XkbGetKeyboardByName_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbComponentNamesPtr, unsigned int, unsigned int, int);
-extern int (*XkbKeyTypesForCoreSymbols_dylibloader_wrapper_xlib)( XkbDescPtr, int, KeySym*, unsigned int, int*, KeySym*);
-extern int (*XkbApplyCompatMapToKey_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, XkbChangesPtr);
-extern int (*XkbUpdateMapFromCore_dylibloader_wrapper_xlib)( XkbDescPtr, KeyCode, int, int, KeySym*, XkbChangesPtr);
-extern XkbDeviceLedInfoPtr (*XkbAddDeviceLedInfo_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int, unsigned int);
-extern int (*XkbResizeDeviceButtonActions_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int);
-extern XkbDeviceInfoPtr (*XkbAllocDeviceInfo_dylibloader_wrapper_xlib)( unsigned int, unsigned int, unsigned int);
-extern void (*XkbFreeDeviceInfo_dylibloader_wrapper_xlib)( XkbDeviceInfoPtr, unsigned int, int);
-extern void (*XkbNoteDeviceChanges_dylibloader_wrapper_xlib)( XkbDeviceChangesPtr, XkbExtensionDeviceNotifyEvent*, unsigned int);
-extern XkbDeviceInfoPtr (*XkbGetDeviceInfo_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, unsigned int, unsigned int);
-extern int (*XkbGetDeviceInfoChanges_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
-extern int (*XkbGetDeviceButtonActions_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, int, unsigned int, unsigned int);
-extern int (*XkbGetDeviceLedInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
-extern int (*XkbSetDeviceInfo_dylibloader_wrapper_xlib)( Display*, unsigned int, XkbDeviceInfoPtr);
-extern int (*XkbChangeDeviceInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
-extern int (*XkbSetDeviceLedInfo_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
-extern int (*XkbSetDeviceButtonActions_dylibloader_wrapper_xlib)( Display*, XkbDeviceInfoPtr, unsigned int, unsigned int);
-extern char (*XkbToControl_dylibloader_wrapper_xlib)( char);
-extern int (*XkbSetDebuggingFlags_dylibloader_wrapper_xlib)( Display*, unsigned int, unsigned int, char*, unsigned int, unsigned int, unsigned int*, unsigned int*);
-extern int (*XkbApplyVirtualModChanges_dylibloader_wrapper_xlib)( XkbDescPtr, unsigned int, XkbChangesPtr);
-extern int (*XkbUpdateActionVirtualMods_dylibloader_wrapper_xlib)( XkbDescPtr, XkbAction*, unsigned int);
-extern void (*XkbUpdateKeyTypeVirtualMods_dylibloader_wrapper_xlib)( XkbDescPtr, XkbKeyTypePtr, unsigned int, XkbChangesPtr);
+extern int (*_Xmblen_dylibloader_wrapper_xlib)(char *, int);
+extern XFontStruct *(*XLoadQueryFont_dylibloader_wrapper_xlib)(Display *, const char *);
+extern XFontStruct *(*XQueryFont_dylibloader_wrapper_xlib)(Display *, XID);
+extern XTimeCoord *(*XGetMotionEvents_dylibloader_wrapper_xlib)(Display *, Window, Time, Time, int *);
+extern XModifierKeymap *(*XDeleteModifiermapEntry_dylibloader_wrapper_xlib)(XModifierKeymap *, KeyCode, int);
+extern XModifierKeymap *(*XGetModifierMapping_dylibloader_wrapper_xlib)(Display *);
+extern XModifierKeymap *(*XInsertModifiermapEntry_dylibloader_wrapper_xlib)(XModifierKeymap *, KeyCode, int);
+extern XModifierKeymap *(*XNewModifiermap_dylibloader_wrapper_xlib)(int);
+extern XImage *(*XCreateImage_dylibloader_wrapper_xlib)(Display *, Visual *, unsigned int, int, int, char *, unsigned int, unsigned int, int, int);
+extern int (*XInitImage_dylibloader_wrapper_xlib)(XImage *);
+extern XImage *(*XGetImage_dylibloader_wrapper_xlib)(Display *, Drawable, int, int, unsigned int, unsigned int, unsigned long, int);
+extern XImage *(*XGetSubImage_dylibloader_wrapper_xlib)(Display *, Drawable, int, int, unsigned int, unsigned int, unsigned long, int, XImage *, int, int);
+extern Display *(*XOpenDisplay_dylibloader_wrapper_xlib)(const char *);
+extern void (*XrmInitialize_dylibloader_wrapper_xlib)(void);
+extern char *(*XFetchBytes_dylibloader_wrapper_xlib)(Display *, int *);
+extern char *(*XFetchBuffer_dylibloader_wrapper_xlib)(Display *, int *, int);
+extern char *(*XGetAtomName_dylibloader_wrapper_xlib)(Display *, Atom);
+extern int (*XGetAtomNames_dylibloader_wrapper_xlib)(Display *, Atom *, int, char **);
+extern char *(*XGetDefault_dylibloader_wrapper_xlib)(Display *, const char *, const char *);
+extern char *(*XDisplayName_dylibloader_wrapper_xlib)(const char *);
+extern char *(*XKeysymToString_dylibloader_wrapper_xlib)(KeySym);
+extern int (*(*XSynchronize_dylibloader_wrapper_xlib)(Display *, int))(Display *);
+extern int (*(*XSetAfterFunction_dylibloader_wrapper_xlib)(Display *, int (*)(Display *)))(Display *);
+extern Atom (*XInternAtom_dylibloader_wrapper_xlib)(Display *, const char *, int);
+extern int (*XInternAtoms_dylibloader_wrapper_xlib)(Display *, char **, int, int, Atom *);
+extern Colormap (*XCopyColormapAndFree_dylibloader_wrapper_xlib)(Display *, Colormap);
+extern Colormap (*XCreateColormap_dylibloader_wrapper_xlib)(Display *, Window, Visual *, int);
+extern Cursor (*XCreatePixmapCursor_dylibloader_wrapper_xlib)(Display *, Pixmap, Pixmap, XColor *, XColor *, unsigned int, unsigned int);
+extern Cursor (*XCreateGlyphCursor_dylibloader_wrapper_xlib)(Display *, Font, Font, unsigned int, unsigned int, const XColor *, const XColor *);
+extern Cursor (*XCreateFontCursor_dylibloader_wrapper_xlib)(Display *, unsigned int);
+extern Font (*XLoadFont_dylibloader_wrapper_xlib)(Display *, const char *);
+extern GC (*XCreateGC_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned long, XGCValues *);
+extern GContext (*XGContextFromGC_dylibloader_wrapper_xlib)(GC);
+extern void (*XFlushGC_dylibloader_wrapper_xlib)(Display *, GC);
+extern Pixmap (*XCreatePixmap_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int);
+extern Pixmap (*XCreateBitmapFromData_dylibloader_wrapper_xlib)(Display *, Drawable, const char *, unsigned int, unsigned int);
+extern Pixmap (*XCreatePixmapFromBitmapData_dylibloader_wrapper_xlib)(Display *, Drawable, char *, unsigned int, unsigned int, unsigned long, unsigned long, unsigned int);
+extern Window (*XCreateSimpleWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, unsigned int, unsigned long, unsigned long);
+extern Window (*XGetSelectionOwner_dylibloader_wrapper_xlib)(Display *, Atom);
+extern Window (*XCreateWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, unsigned int, int, unsigned int, Visual *, unsigned long, XSetWindowAttributes *);
+extern Colormap *(*XListInstalledColormaps_dylibloader_wrapper_xlib)(Display *, Window, int *);
+extern char **(*XListFonts_dylibloader_wrapper_xlib)(Display *, const char *, int, int *);
+extern char **(*XListFontsWithInfo_dylibloader_wrapper_xlib)(Display *, const char *, int, int *, XFontStruct **);
+extern char **(*XGetFontPath_dylibloader_wrapper_xlib)(Display *, int *);
+extern char **(*XListExtensions_dylibloader_wrapper_xlib)(Display *, int *);
+extern Atom *(*XListProperties_dylibloader_wrapper_xlib)(Display *, Window, int *);
+extern XHostAddress *(*XListHosts_dylibloader_wrapper_xlib)(Display *, int *, int *);
+extern KeySym (*XKeycodeToKeysym_dylibloader_wrapper_xlib)(Display *, KeyCode, int);
+extern KeySym (*XLookupKeysym_dylibloader_wrapper_xlib)(XKeyEvent *, int);
+extern KeySym *(*XGetKeyboardMapping_dylibloader_wrapper_xlib)(Display *, KeyCode, int, int *);
+extern KeySym (*XStringToKeysym_dylibloader_wrapper_xlib)(const char *);
+extern long (*XMaxRequestSize_dylibloader_wrapper_xlib)(Display *);
+extern long (*XExtendedMaxRequestSize_dylibloader_wrapper_xlib)(Display *);
+extern char *(*XResourceManagerString_dylibloader_wrapper_xlib)(Display *);
+extern char *(*XScreenResourceString_dylibloader_wrapper_xlib)(Screen *);
+extern unsigned long (*XDisplayMotionBufferSize_dylibloader_wrapper_xlib)(Display *);
+extern VisualID (*XVisualIDFromVisual_dylibloader_wrapper_xlib)(Visual *);
+extern int (*XInitThreads_dylibloader_wrapper_xlib)(void);
+extern void (*XLockDisplay_dylibloader_wrapper_xlib)(Display *);
+extern void (*XUnlockDisplay_dylibloader_wrapper_xlib)(Display *);
+extern XExtCodes *(*XInitExtension_dylibloader_wrapper_xlib)(Display *, const char *);
+extern XExtCodes *(*XAddExtension_dylibloader_wrapper_xlib)(Display *);
+extern XExtData *(*XFindOnExtensionList_dylibloader_wrapper_xlib)(XExtData **, int);
+extern XExtData **(*XEHeadOfExtensionList_dylibloader_wrapper_xlib)(XEDataObject);
+extern Window (*XRootWindow_dylibloader_wrapper_xlib)(Display *, int);
+extern Window (*XDefaultRootWindow_dylibloader_wrapper_xlib)(Display *);
+extern Window (*XRootWindowOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern Visual *(*XDefaultVisual_dylibloader_wrapper_xlib)(Display *, int);
+extern Visual *(*XDefaultVisualOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern GC (*XDefaultGC_dylibloader_wrapper_xlib)(Display *, int);
+extern GC (*XDefaultGCOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern unsigned long (*XBlackPixel_dylibloader_wrapper_xlib)(Display *, int);
+extern unsigned long (*XWhitePixel_dylibloader_wrapper_xlib)(Display *, int);
+extern unsigned long (*XAllPlanes_dylibloader_wrapper_xlib)(void);
+extern unsigned long (*XBlackPixelOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern unsigned long (*XWhitePixelOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern unsigned long (*XNextRequest_dylibloader_wrapper_xlib)(Display *);
+extern unsigned long (*XLastKnownRequestProcessed_dylibloader_wrapper_xlib)(Display *);
+extern char *(*XServerVendor_dylibloader_wrapper_xlib)(Display *);
+extern char *(*XDisplayString_dylibloader_wrapper_xlib)(Display *);
+extern Colormap (*XDefaultColormap_dylibloader_wrapper_xlib)(Display *, int);
+extern Colormap (*XDefaultColormapOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern Display *(*XDisplayOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern Screen *(*XScreenOfDisplay_dylibloader_wrapper_xlib)(Display *, int);
+extern Screen *(*XDefaultScreenOfDisplay_dylibloader_wrapper_xlib)(Display *);
+extern long (*XEventMaskOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XScreenNumberOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern XErrorHandler (*XSetErrorHandler_dylibloader_wrapper_xlib)(XErrorHandler);
+extern XIOErrorHandler (*XSetIOErrorHandler_dylibloader_wrapper_xlib)(XIOErrorHandler);
+extern void (*XSetIOErrorExitHandler_dylibloader_wrapper_xlib)(Display *, XIOErrorExitHandler, void *);
+extern XPixmapFormatValues *(*XListPixmapFormats_dylibloader_wrapper_xlib)(Display *, int *);
+extern int *(*XListDepths_dylibloader_wrapper_xlib)(Display *, int, int *);
+extern int (*XReconfigureWMWindow_dylibloader_wrapper_xlib)(Display *, Window, int, unsigned int, XWindowChanges *);
+extern int (*XGetWMProtocols_dylibloader_wrapper_xlib)(Display *, Window, Atom **, int *);
+extern int (*XSetWMProtocols_dylibloader_wrapper_xlib)(Display *, Window, Atom *, int);
+extern int (*XIconifyWindow_dylibloader_wrapper_xlib)(Display *, Window, int);
+extern int (*XWithdrawWindow_dylibloader_wrapper_xlib)(Display *, Window, int);
+extern int (*XGetCommand_dylibloader_wrapper_xlib)(Display *, Window, char ***, int *);
+extern int (*XGetWMColormapWindows_dylibloader_wrapper_xlib)(Display *, Window, Window **, int *);
+extern int (*XSetWMColormapWindows_dylibloader_wrapper_xlib)(Display *, Window, Window *, int);
+extern void (*XFreeStringList_dylibloader_wrapper_xlib)(char **);
+extern int (*XSetTransientForHint_dylibloader_wrapper_xlib)(Display *, Window, Window);
+extern int (*XActivateScreenSaver_dylibloader_wrapper_xlib)(Display *);
+extern int (*XAddHost_dylibloader_wrapper_xlib)(Display *, XHostAddress *);
+extern int (*XAddHosts_dylibloader_wrapper_xlib)(Display *, XHostAddress *, int);
+extern int (*XAddToExtensionList_dylibloader_wrapper_xlib)(struct _XExtData **, XExtData *);
+extern int (*XAddToSaveSet_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XAllocColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+extern int (*XAllocColorCells_dylibloader_wrapper_xlib)(Display *, Colormap, int, unsigned long *, unsigned int, unsigned long *, unsigned int);
+extern int (*XAllocColorPlanes_dylibloader_wrapper_xlib)(Display *, Colormap, int, unsigned long *, int, int, int, int, unsigned long *, unsigned long *, unsigned long *);
+extern int (*XAllocNamedColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *, XColor *);
+extern int (*XAllowEvents_dylibloader_wrapper_xlib)(Display *, int, Time);
+extern int (*XAutoRepeatOff_dylibloader_wrapper_xlib)(Display *);
+extern int (*XAutoRepeatOn_dylibloader_wrapper_xlib)(Display *);
+extern int (*XBell_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XBitmapBitOrder_dylibloader_wrapper_xlib)(Display *);
+extern int (*XBitmapPad_dylibloader_wrapper_xlib)(Display *);
+extern int (*XBitmapUnit_dylibloader_wrapper_xlib)(Display *);
+extern int (*XCellsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XChangeActivePointerGrab_dylibloader_wrapper_xlib)(Display *, unsigned int, Cursor, Time);
+extern int (*XChangeGC_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, XGCValues *);
+extern int (*XChangeKeyboardControl_dylibloader_wrapper_xlib)(Display *, unsigned long, XKeyboardControl *);
+extern int (*XChangeKeyboardMapping_dylibloader_wrapper_xlib)(Display *, int, int, KeySym *, int);
+extern int (*XChangePointerControl_dylibloader_wrapper_xlib)(Display *, int, int, int, int, int);
+extern int (*XChangeProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom, Atom, int, int, const unsigned char *, int);
+extern int (*XChangeSaveSet_dylibloader_wrapper_xlib)(Display *, Window, int);
+extern int (*XChangeWindowAttributes_dylibloader_wrapper_xlib)(Display *, Window, unsigned long, XSetWindowAttributes *);
+extern int (*XCheckIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+extern int (*XCheckMaskEvent_dylibloader_wrapper_xlib)(Display *, long, XEvent *);
+extern int (*XCheckTypedEvent_dylibloader_wrapper_xlib)(Display *, int, XEvent *);
+extern int (*XCheckTypedWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, int, XEvent *);
+extern int (*XCheckWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, long, XEvent *);
+extern int (*XCirculateSubwindows_dylibloader_wrapper_xlib)(Display *, Window, int);
+extern int (*XCirculateSubwindowsDown_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XCirculateSubwindowsUp_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XClearArea_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int, int);
+extern int (*XClearWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XCloseDisplay_dylibloader_wrapper_xlib)(Display *);
+extern int (*XConfigureWindow_dylibloader_wrapper_xlib)(Display *, Window, unsigned int, XWindowChanges *);
+extern int (*XConnectionNumber_dylibloader_wrapper_xlib)(Display *);
+extern int (*XConvertSelection_dylibloader_wrapper_xlib)(Display *, Atom, Atom, Atom, Window, Time);
+extern int (*XCopyArea_dylibloader_wrapper_xlib)(Display *, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+extern int (*XCopyGC_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, GC);
+extern int (*XCopyPlane_dylibloader_wrapper_xlib)(Display *, Drawable, Drawable, GC, int, int, unsigned int, unsigned int, int, int, unsigned long);
+extern int (*XDefaultDepth_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDefaultDepthOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XDefaultScreen_dylibloader_wrapper_xlib)(Display *);
+extern int (*XDefineCursor_dylibloader_wrapper_xlib)(Display *, Window, Cursor);
+extern int (*XDeleteProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom);
+extern int (*XDestroyWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XDestroySubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XDoesBackingStore_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XDoesSaveUnders_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XDisableAccessControl_dylibloader_wrapper_xlib)(Display *);
+extern int (*XDisplayCells_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDisplayHeight_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDisplayHeightMM_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDisplayKeycodes_dylibloader_wrapper_xlib)(Display *, int *, int *);
+extern int (*XDisplayPlanes_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDisplayWidth_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDisplayWidthMM_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XDrawArc_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+extern int (*XDrawArcs_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XArc *, int);
+extern int (*XDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const char *, int);
+extern int (*XDrawImageString16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const XChar2b *, int);
+extern int (*XDrawLine_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, int, int);
+extern int (*XDrawLines_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int);
+extern int (*XDrawPoint_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int);
+extern int (*XDrawPoints_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int);
+extern int (*XDrawRectangle_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int);
+extern int (*XDrawRectangles_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XRectangle *, int);
+extern int (*XDrawSegments_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XSegment *, int);
+extern int (*XDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const char *, int);
+extern int (*XDrawString16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, const XChar2b *, int);
+extern int (*XDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XTextItem *, int);
+extern int (*XDrawText16_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XTextItem16 *, int);
+extern int (*XEnableAccessControl_dylibloader_wrapper_xlib)(Display *);
+extern int (*XEventsQueued_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XFetchName_dylibloader_wrapper_xlib)(Display *, Window, char **);
+extern int (*XFillArc_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int, int, int);
+extern int (*XFillArcs_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XArc *, int);
+extern int (*XFillPolygon_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XPoint *, int, int, int);
+extern int (*XFillRectangle_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, unsigned int, unsigned int);
+extern int (*XFillRectangles_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XRectangle *, int);
+extern int (*XFlush_dylibloader_wrapper_xlib)(Display *);
+extern int (*XForceScreenSaver_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XFree_dylibloader_wrapper_xlib)(void *);
+extern int (*XFreeColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+extern int (*XFreeColors_dylibloader_wrapper_xlib)(Display *, Colormap, unsigned long *, int, unsigned long);
+extern int (*XFreeCursor_dylibloader_wrapper_xlib)(Display *, Cursor);
+extern int (*XFreeExtensionList_dylibloader_wrapper_xlib)(char **);
+extern int (*XFreeFont_dylibloader_wrapper_xlib)(Display *, XFontStruct *);
+extern int (*XFreeFontInfo_dylibloader_wrapper_xlib)(char **, XFontStruct *, int);
+extern int (*XFreeFontNames_dylibloader_wrapper_xlib)(char **);
+extern int (*XFreeFontPath_dylibloader_wrapper_xlib)(char **);
+extern int (*XFreeGC_dylibloader_wrapper_xlib)(Display *, GC);
+extern int (*XFreeModifiermap_dylibloader_wrapper_xlib)(XModifierKeymap *);
+extern int (*XFreePixmap_dylibloader_wrapper_xlib)(Display *, Pixmap);
+extern int (*XGeometry_dylibloader_wrapper_xlib)(Display *, int, const char *, const char *, unsigned int, unsigned int, unsigned int, int, int, int *, int *, int *, int *);
+extern int (*XGetErrorDatabaseText_dylibloader_wrapper_xlib)(Display *, const char *, const char *, const char *, char *, int);
+extern int (*XGetErrorText_dylibloader_wrapper_xlib)(Display *, int, char *, int);
+extern int (*XGetFontProperty_dylibloader_wrapper_xlib)(XFontStruct *, Atom, unsigned long *);
+extern int (*XGetGCValues_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, XGCValues *);
+extern int (*XGetGeometry_dylibloader_wrapper_xlib)(Display *, Drawable, Window *, int *, int *, unsigned int *, unsigned int *, unsigned int *, unsigned int *);
+extern int (*XGetIconName_dylibloader_wrapper_xlib)(Display *, Window, char **);
+extern int (*XGetInputFocus_dylibloader_wrapper_xlib)(Display *, Window *, int *);
+extern int (*XGetKeyboardControl_dylibloader_wrapper_xlib)(Display *, XKeyboardState *);
+extern int (*XGetPointerControl_dylibloader_wrapper_xlib)(Display *, int *, int *, int *);
+extern int (*XGetPointerMapping_dylibloader_wrapper_xlib)(Display *, unsigned char *, int);
+extern int (*XGetScreenSaver_dylibloader_wrapper_xlib)(Display *, int *, int *, int *, int *);
+extern int (*XGetTransientForHint_dylibloader_wrapper_xlib)(Display *, Window, Window *);
+extern int (*XGetWindowProperty_dylibloader_wrapper_xlib)(Display *, Window, Atom, long, long, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+extern int (*XGetWindowAttributes_dylibloader_wrapper_xlib)(Display *, Window, XWindowAttributes *);
+extern int (*XGrabButton_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, Window, int, unsigned int, int, int, Window, Cursor);
+extern int (*XGrabKey_dylibloader_wrapper_xlib)(Display *, int, unsigned int, Window, int, int, int);
+extern int (*XGrabKeyboard_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, Time);
+extern int (*XGrabPointer_dylibloader_wrapper_xlib)(Display *, Window, int, unsigned int, int, int, Window, Cursor, Time);
+extern int (*XGrabServer_dylibloader_wrapper_xlib)(Display *);
+extern int (*XHeightMMOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XHeightOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+extern int (*XImageByteOrder_dylibloader_wrapper_xlib)(Display *);
+extern int (*XInstallColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+extern KeyCode (*XKeysymToKeycode_dylibloader_wrapper_xlib)(Display *, KeySym);
+extern int (*XKillClient_dylibloader_wrapper_xlib)(Display *, XID);
+extern int (*XLookupColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *, XColor *);
+extern int (*XLowerWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XMapRaised_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XMapSubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XMapWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XMaskEvent_dylibloader_wrapper_xlib)(Display *, long, XEvent *);
+extern int (*XMaxCmapsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XMinCmapsOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XMoveResizeWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int, unsigned int, unsigned int);
+extern int (*XMoveWindow_dylibloader_wrapper_xlib)(Display *, Window, int, int);
+extern int (*XNextEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+extern int (*XNoOp_dylibloader_wrapper_xlib)(Display *);
+extern int (*XParseColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, XColor *);
+extern int (*XParseGeometry_dylibloader_wrapper_xlib)(const char *, int *, int *, unsigned int *, unsigned int *);
+extern int (*XPeekEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+extern int (*XPeekIfEvent_dylibloader_wrapper_xlib)(Display *, XEvent *, int (*)(Display *, XEvent *, XPointer), XPointer);
+extern int (*XPending_dylibloader_wrapper_xlib)(Display *);
+extern int (*XPlanesOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XProtocolRevision_dylibloader_wrapper_xlib)(Display *);
+extern int (*XProtocolVersion_dylibloader_wrapper_xlib)(Display *);
+extern int (*XPutBackEvent_dylibloader_wrapper_xlib)(Display *, XEvent *);
+extern int (*XPutImage_dylibloader_wrapper_xlib)(Display *, Drawable, GC, XImage *, int, int, int, int, unsigned int, unsigned int);
+extern int (*XQLength_dylibloader_wrapper_xlib)(Display *);
+extern int (*XQueryBestCursor_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+extern int (*XQueryBestSize_dylibloader_wrapper_xlib)(Display *, int, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+extern int (*XQueryBestStipple_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+extern int (*XQueryBestTile_dylibloader_wrapper_xlib)(Display *, Drawable, unsigned int, unsigned int, unsigned int *, unsigned int *);
+extern int (*XQueryColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+extern int (*XQueryColors_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *, int);
+extern int (*XQueryExtension_dylibloader_wrapper_xlib)(Display *, const char *, int *, int *, int *);
+extern int (*XQueryKeymap_dylibloader_wrapper_xlib)(Display *, char [32]);
+extern int (*XQueryPointer_dylibloader_wrapper_xlib)(Display *, Window, Window *, Window *, int *, int *, int *, int *, unsigned int *);
+extern int (*XQueryTextExtents_dylibloader_wrapper_xlib)(Display *, XID, const char *, int, int *, int *, int *, XCharStruct *);
+extern int (*XQueryTextExtents16_dylibloader_wrapper_xlib)(Display *, XID, const XChar2b *, int, int *, int *, int *, XCharStruct *);
+extern int (*XQueryTree_dylibloader_wrapper_xlib)(Display *, Window, Window *, Window *, Window **, unsigned int *);
+extern int (*XRaiseWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XReadBitmapFile_dylibloader_wrapper_xlib)(Display *, Drawable, const char *, unsigned int *, unsigned int *, Pixmap *, int *, int *);
+extern int (*XReadBitmapFileData_dylibloader_wrapper_xlib)(const char *, unsigned int *, unsigned int *, unsigned char **, int *, int *);
+extern int (*XRebindKeysym_dylibloader_wrapper_xlib)(Display *, KeySym, KeySym *, int, const unsigned char *, int);
+extern int (*XRecolorCursor_dylibloader_wrapper_xlib)(Display *, Cursor, XColor *, XColor *);
+extern int (*XRefreshKeyboardMapping_dylibloader_wrapper_xlib)(XMappingEvent *);
+extern int (*XRemoveFromSaveSet_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XRemoveHost_dylibloader_wrapper_xlib)(Display *, XHostAddress *);
+extern int (*XRemoveHosts_dylibloader_wrapper_xlib)(Display *, XHostAddress *, int);
+extern int (*XReparentWindow_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int);
+extern int (*XResetScreenSaver_dylibloader_wrapper_xlib)(Display *);
+extern int (*XResizeWindow_dylibloader_wrapper_xlib)(Display *, Window, unsigned int, unsigned int);
+extern int (*XRestackWindows_dylibloader_wrapper_xlib)(Display *, Window *, int);
+extern int (*XRotateBuffers_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XRotateWindowProperties_dylibloader_wrapper_xlib)(Display *, Window, Atom *, int, int);
+extern int (*XScreenCount_dylibloader_wrapper_xlib)(Display *);
+extern int (*XSelectInput_dylibloader_wrapper_xlib)(Display *, Window, long);
+extern int (*XSendEvent_dylibloader_wrapper_xlib)(Display *, Window, int, long, XEvent *);
+extern int (*XSetAccessControl_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XSetArcMode_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetBackground_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+extern int (*XSetClipMask_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+extern int (*XSetClipOrigin_dylibloader_wrapper_xlib)(Display *, GC, int, int);
+extern int (*XSetClipRectangles_dylibloader_wrapper_xlib)(Display *, GC, int, int, XRectangle *, int, int);
+extern int (*XSetCloseDownMode_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XSetCommand_dylibloader_wrapper_xlib)(Display *, Window, char **, int);
+extern int (*XSetDashes_dylibloader_wrapper_xlib)(Display *, GC, int, const char *, int);
+extern int (*XSetFillRule_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetFillStyle_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetFont_dylibloader_wrapper_xlib)(Display *, GC, Font);
+extern int (*XSetFontPath_dylibloader_wrapper_xlib)(Display *, char **, int);
+extern int (*XSetForeground_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+extern int (*XSetFunction_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetGraphicsExposures_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetIconName_dylibloader_wrapper_xlib)(Display *, Window, const char *);
+extern int (*XSetInputFocus_dylibloader_wrapper_xlib)(Display *, Window, int, Time);
+extern int (*XSetLineAttributes_dylibloader_wrapper_xlib)(Display *, GC, unsigned int, int, int, int);
+extern int (*XSetModifierMapping_dylibloader_wrapper_xlib)(Display *, XModifierKeymap *);
+extern int (*XSetPlaneMask_dylibloader_wrapper_xlib)(Display *, GC, unsigned long);
+extern int (*XSetPointerMapping_dylibloader_wrapper_xlib)(Display *, const unsigned char *, int);
+extern int (*XSetScreenSaver_dylibloader_wrapper_xlib)(Display *, int, int, int, int);
+extern int (*XSetSelectionOwner_dylibloader_wrapper_xlib)(Display *, Atom, Window, Time);
+extern int (*XSetState_dylibloader_wrapper_xlib)(Display *, GC, unsigned long, unsigned long, int, unsigned long);
+extern int (*XSetStipple_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+extern int (*XSetSubwindowMode_dylibloader_wrapper_xlib)(Display *, GC, int);
+extern int (*XSetTSOrigin_dylibloader_wrapper_xlib)(Display *, GC, int, int);
+extern int (*XSetTile_dylibloader_wrapper_xlib)(Display *, GC, Pixmap);
+extern int (*XSetWindowBackground_dylibloader_wrapper_xlib)(Display *, Window, unsigned long);
+extern int (*XSetWindowBackgroundPixmap_dylibloader_wrapper_xlib)(Display *, Window, Pixmap);
+extern int (*XSetWindowBorder_dylibloader_wrapper_xlib)(Display *, Window, unsigned long);
+extern int (*XSetWindowBorderPixmap_dylibloader_wrapper_xlib)(Display *, Window, Pixmap);
+extern int (*XSetWindowBorderWidth_dylibloader_wrapper_xlib)(Display *, Window, unsigned int);
+extern int (*XSetWindowColormap_dylibloader_wrapper_xlib)(Display *, Window, Colormap);
+extern int (*XStoreBuffer_dylibloader_wrapper_xlib)(Display *, const char *, int, int);
+extern int (*XStoreBytes_dylibloader_wrapper_xlib)(Display *, const char *, int);
+extern int (*XStoreColor_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *);
+extern int (*XStoreColors_dylibloader_wrapper_xlib)(Display *, Colormap, XColor *, int);
+extern int (*XStoreName_dylibloader_wrapper_xlib)(Display *, Window, const char *);
+extern int (*XStoreNamedColor_dylibloader_wrapper_xlib)(Display *, Colormap, const char *, unsigned long, int);
+extern int (*XSync_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XTextExtents_dylibloader_wrapper_xlib)(XFontStruct *, const char *, int, int *, int *, int *, XCharStruct *);
+extern int (*XTextExtents16_dylibloader_wrapper_xlib)(XFontStruct *, const XChar2b *, int, int *, int *, int *, XCharStruct *);
+extern int (*XTextWidth_dylibloader_wrapper_xlib)(XFontStruct *, const char *, int);
+extern int (*XTextWidth16_dylibloader_wrapper_xlib)(XFontStruct *, const XChar2b *, int);
+extern int (*XTranslateCoordinates_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int, int *, int *, Window *);
+extern int (*XUndefineCursor_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XUngrabButton_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, Window);
+extern int (*XUngrabKey_dylibloader_wrapper_xlib)(Display *, int, unsigned int, Window);
+extern int (*XUngrabKeyboard_dylibloader_wrapper_xlib)(Display *, Time);
+extern int (*XUngrabPointer_dylibloader_wrapper_xlib)(Display *, Time);
+extern int (*XUngrabServer_dylibloader_wrapper_xlib)(Display *);
+extern int (*XUninstallColormap_dylibloader_wrapper_xlib)(Display *, Colormap);
+extern int (*XUnloadFont_dylibloader_wrapper_xlib)(Display *, Font);
+extern int (*XUnmapSubwindows_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XUnmapWindow_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XVendorRelease_dylibloader_wrapper_xlib)(Display *);
+extern int (*XWarpPointer_dylibloader_wrapper_xlib)(Display *, Window, Window, int, int, unsigned int, unsigned int, int, int);
+extern int (*XWidthMMOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XWidthOfScreen_dylibloader_wrapper_xlib)(Screen *);
+extern int (*XWindowEvent_dylibloader_wrapper_xlib)(Display *, Window, long, XEvent *);
+extern int (*XWriteBitmapFile_dylibloader_wrapper_xlib)(Display *, const char *, Pixmap, unsigned int, unsigned int, int, int);
+extern int (*XSupportsLocale_dylibloader_wrapper_xlib)(void);
+extern char *(*XSetLocaleModifiers_dylibloader_wrapper_xlib)(const char *);
+extern XOM (*XOpenOM_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, const char *, const char *);
+extern int (*XCloseOM_dylibloader_wrapper_xlib)(XOM);
+extern char *(*XSetOMValues_dylibloader_wrapper_xlib)(XOM, ...);
+extern char *(*XGetOMValues_dylibloader_wrapper_xlib)(XOM, ...);
+extern Display *(*XDisplayOfOM_dylibloader_wrapper_xlib)(XOM);
+extern char *(*XLocaleOfOM_dylibloader_wrapper_xlib)(XOM);
+extern XOC (*XCreateOC_dylibloader_wrapper_xlib)(XOM, ...);
+extern void (*XDestroyOC_dylibloader_wrapper_xlib)(XOC);
+extern XOM (*XOMOfOC_dylibloader_wrapper_xlib)(XOC);
+extern char *(*XSetOCValues_dylibloader_wrapper_xlib)(XOC, ...);
+extern char *(*XGetOCValues_dylibloader_wrapper_xlib)(XOC, ...);
+extern XFontSet (*XCreateFontSet_dylibloader_wrapper_xlib)(Display *, const char *, char ***, int *, char **);
+extern void (*XFreeFontSet_dylibloader_wrapper_xlib)(Display *, XFontSet);
+extern int (*XFontsOfFontSet_dylibloader_wrapper_xlib)(XFontSet, XFontStruct ***, char ***);
+extern char *(*XBaseFontNameListOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+extern char *(*XLocaleOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+extern int (*XContextDependentDrawing_dylibloader_wrapper_xlib)(XFontSet);
+extern int (*XDirectionalDependentDrawing_dylibloader_wrapper_xlib)(XFontSet);
+extern int (*XContextualDrawing_dylibloader_wrapper_xlib)(XFontSet);
+extern XFontSetExtents *(*XExtentsOfFontSet_dylibloader_wrapper_xlib)(XFontSet);
+extern int (*XmbTextEscapement_dylibloader_wrapper_xlib)(XFontSet, const char *, int);
+extern int (*XwcTextEscapement_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int);
+extern int (*Xutf8TextEscapement_dylibloader_wrapper_xlib)(XFontSet, const char *, int);
+extern int (*XmbTextExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *);
+extern int (*XwcTextExtents_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int, XRectangle *, XRectangle *);
+extern int (*Xutf8TextExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *);
+extern int (*XmbTextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+extern int (*XwcTextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const wchar_t *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+extern int (*Xutf8TextPerCharExtents_dylibloader_wrapper_xlib)(XFontSet, const char *, int, XRectangle *, XRectangle *, int, int *, XRectangle *, XRectangle *);
+extern void (*XmbDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XmbTextItem *, int);
+extern void (*XwcDrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XwcTextItem *, int);
+extern void (*Xutf8DrawText_dylibloader_wrapper_xlib)(Display *, Drawable, GC, int, int, XmbTextItem *, int);
+extern void (*XmbDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+extern void (*XwcDrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const wchar_t *, int);
+extern void (*Xutf8DrawString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+extern void (*XmbDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+extern void (*XwcDrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const wchar_t *, int);
+extern void (*Xutf8DrawImageString_dylibloader_wrapper_xlib)(Display *, Drawable, XFontSet, GC, int, int, const char *, int);
+extern XIM (*XOpenIM_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *);
+extern int (*XCloseIM_dylibloader_wrapper_xlib)(XIM);
+extern char *(*XGetIMValues_dylibloader_wrapper_xlib)(XIM, ...);
+extern char *(*XSetIMValues_dylibloader_wrapper_xlib)(XIM, ...);
+extern Display *(*XDisplayOfIM_dylibloader_wrapper_xlib)(XIM);
+extern char *(*XLocaleOfIM_dylibloader_wrapper_xlib)(XIM);
+extern XIC (*XCreateIC_dylibloader_wrapper_xlib)(XIM, ...);
+extern void (*XDestroyIC_dylibloader_wrapper_xlib)(XIC);
+extern void (*XSetICFocus_dylibloader_wrapper_xlib)(XIC);
+extern void (*XUnsetICFocus_dylibloader_wrapper_xlib)(XIC);
+extern wchar_t *(*XwcResetIC_dylibloader_wrapper_xlib)(XIC);
+extern char *(*XmbResetIC_dylibloader_wrapper_xlib)(XIC);
+extern char *(*Xutf8ResetIC_dylibloader_wrapper_xlib)(XIC);
+extern char *(*XSetICValues_dylibloader_wrapper_xlib)(XIC, ...);
+extern char *(*XGetICValues_dylibloader_wrapper_xlib)(XIC, ...);
+extern XIM (*XIMOfIC_dylibloader_wrapper_xlib)(XIC);
+extern int (*XFilterEvent_dylibloader_wrapper_xlib)(XEvent *, Window);
+extern int (*XmbLookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, char *, int, KeySym *, int *);
+extern int (*XwcLookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, wchar_t *, int, KeySym *, int *);
+extern int (*Xutf8LookupString_dylibloader_wrapper_xlib)(XIC, XKeyPressedEvent *, char *, int, KeySym *, int *);
+extern XVaNestedList (*XVaCreateNestedList_dylibloader_wrapper_xlib)(int, ...);
+extern int (*XRegisterIMInstantiateCallback_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *, XIDProc, XPointer);
+extern int (*XUnregisterIMInstantiateCallback_dylibloader_wrapper_xlib)(Display *, struct _XrmHashBucketRec *, char *, char *, XIDProc, XPointer);
+extern int (*XInternalConnectionNumbers_dylibloader_wrapper_xlib)(Display *, int **, int *);
+extern void (*XProcessInternalConnection_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XAddConnectionWatch_dylibloader_wrapper_xlib)(Display *, XConnectionWatchProc, XPointer);
+extern void (*XRemoveConnectionWatch_dylibloader_wrapper_xlib)(Display *, XConnectionWatchProc, XPointer);
+extern void (*XSetAuthorization_dylibloader_wrapper_xlib)(char *, int, char *, int);
+extern int (*_Xmbtowc_dylibloader_wrapper_xlib)(wchar_t *, char *, int);
+extern int (*_Xwctomb_dylibloader_wrapper_xlib)(char *, wchar_t);
+extern int (*XGetEventData_dylibloader_wrapper_xlib)(Display *, XGenericEventCookie *);
+extern void (*XFreeEventData_dylibloader_wrapper_xlib)(Display *, XGenericEventCookie *);
+extern int (*XFreeThreads_dylibloader_wrapper_xlib)(void);
+extern XClassHint *(*XAllocClassHint_dylibloader_wrapper_xlib)(void);
+extern XIconSize *(*XAllocIconSize_dylibloader_wrapper_xlib)(void);
+extern XSizeHints *(*XAllocSizeHints_dylibloader_wrapper_xlib)(void);
+extern XStandardColormap *(*XAllocStandardColormap_dylibloader_wrapper_xlib)(void);
+extern XWMHints *(*XAllocWMHints_dylibloader_wrapper_xlib)(void);
+extern int (*XClipBox_dylibloader_wrapper_xlib)(Region, XRectangle *);
+extern Region (*XCreateRegion_dylibloader_wrapper_xlib)(void);
+extern const char *(*XDefaultString_dylibloader_wrapper_xlib)(void);
+extern int (*XDeleteContext_dylibloader_wrapper_xlib)(Display *, XID, XContext);
+extern int (*XDestroyRegion_dylibloader_wrapper_xlib)(Region);
+extern int (*XEmptyRegion_dylibloader_wrapper_xlib)(Region);
+extern int (*XEqualRegion_dylibloader_wrapper_xlib)(Region, Region);
+extern int (*XFindContext_dylibloader_wrapper_xlib)(Display *, XID, XContext, XPointer *);
+extern int (*XGetClassHint_dylibloader_wrapper_xlib)(Display *, Window, XClassHint *);
+extern int (*XGetIconSizes_dylibloader_wrapper_xlib)(Display *, Window, XIconSize **, int *);
+extern int (*XGetNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+extern int (*XGetRGBColormaps_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap **, int *, Atom);
+extern int (*XGetSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+extern int (*XGetStandardColormap_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, Atom);
+extern int (*XGetTextProperty_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, Atom);
+extern XVisualInfo *(*XGetVisualInfo_dylibloader_wrapper_xlib)(Display *, long, XVisualInfo *, int *);
+extern int (*XGetWMClientMachine_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern XWMHints *(*XGetWMHints_dylibloader_wrapper_xlib)(Display *, Window);
+extern int (*XGetWMIconName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern int (*XGetWMName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern int (*XGetWMNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, long *);
+extern int (*XGetWMSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, long *, Atom);
+extern int (*XGetZoomHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+extern int (*XIntersectRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+extern void (*XConvertCase_dylibloader_wrapper_xlib)(KeySym, KeySym *, KeySym *);
+extern int (*XLookupString_dylibloader_wrapper_xlib)(XKeyEvent *, char *, int, KeySym *, XComposeStatus *);
+extern int (*XMatchVisualInfo_dylibloader_wrapper_xlib)(Display *, int, int, int, XVisualInfo *);
+extern int (*XOffsetRegion_dylibloader_wrapper_xlib)(Region, int, int);
+extern int (*XPointInRegion_dylibloader_wrapper_xlib)(Region, int, int);
+extern Region (*XPolygonRegion_dylibloader_wrapper_xlib)(XPoint *, int, int);
+extern int (*XRectInRegion_dylibloader_wrapper_xlib)(Region, int, int, unsigned int, unsigned int);
+extern int (*XSaveContext_dylibloader_wrapper_xlib)(Display *, XID, XContext, const char *);
+extern int (*XSetClassHint_dylibloader_wrapper_xlib)(Display *, Window, XClassHint *);
+extern int (*XSetIconSizes_dylibloader_wrapper_xlib)(Display *, Window, XIconSize *, int);
+extern int (*XSetNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+extern void (*XSetRGBColormaps_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, int, Atom);
+extern int (*XSetSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+extern int (*XSetStandardProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, Pixmap, char **, int, XSizeHints *);
+extern void (*XSetTextProperty_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, Atom);
+extern void (*XSetWMClientMachine_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern int (*XSetWMHints_dylibloader_wrapper_xlib)(Display *, Window, XWMHints *);
+extern void (*XSetWMIconName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern void (*XSetWMName_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *);
+extern void (*XSetWMNormalHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+extern void (*XSetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, XTextProperty *, XTextProperty *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+extern void (*XmbSetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+extern void (*Xutf8SetWMProperties_dylibloader_wrapper_xlib)(Display *, Window, const char *, const char *, char **, int, XSizeHints *, XWMHints *, XClassHint *);
+extern void (*XSetWMSizeHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *, Atom);
+extern int (*XSetRegion_dylibloader_wrapper_xlib)(Display *, GC, Region);
+extern void (*XSetStandardColormap_dylibloader_wrapper_xlib)(Display *, Window, XStandardColormap *, Atom);
+extern int (*XSetZoomHints_dylibloader_wrapper_xlib)(Display *, Window, XSizeHints *);
+extern int (*XShrinkRegion_dylibloader_wrapper_xlib)(Region, int, int);
+extern int (*XStringListToTextProperty_dylibloader_wrapper_xlib)(char **, int, XTextProperty *);
+extern int (*XSubtractRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+extern int (*XmbTextListToTextProperty_dylibloader_wrapper_xlib)(Display *, char **, int, XICCEncodingStyle, XTextProperty *);
+extern int (*XwcTextListToTextProperty_dylibloader_wrapper_xlib)(Display *, wchar_t **, int, XICCEncodingStyle, XTextProperty *);
+extern int (*Xutf8TextListToTextProperty_dylibloader_wrapper_xlib)(Display *, char **, int, XICCEncodingStyle, XTextProperty *);
+extern void (*XwcFreeStringList_dylibloader_wrapper_xlib)(wchar_t **);
+extern int (*XTextPropertyToStringList_dylibloader_wrapper_xlib)(XTextProperty *, char ***, int *);
+extern int (*XmbTextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, char ***, int *);
+extern int (*XwcTextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, wchar_t ***, int *);
+extern int (*Xutf8TextPropertyToTextList_dylibloader_wrapper_xlib)(Display *, const XTextProperty *, char ***, int *);
+extern int (*XUnionRectWithRegion_dylibloader_wrapper_xlib)(XRectangle *, Region, Region);
+extern int (*XUnionRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+extern int (*XWMGeometry_dylibloader_wrapper_xlib)(Display *, int, const char *, const char *, unsigned int, XSizeHints *, int *, int *, int *, int *, int *);
+extern int (*XXorRegion_dylibloader_wrapper_xlib)(Region, Region, Region);
+extern int (*XkbIgnoreExtension_dylibloader_wrapper_xlib)(int);
+extern Display *(*XkbOpenDisplay_dylibloader_wrapper_xlib)(char *, int *, int *, int *, int *, int *);
+extern int (*XkbQueryExtension_dylibloader_wrapper_xlib)(Display *, int *, int *, int *, int *, int *);
+extern int (*XkbUseExtension_dylibloader_wrapper_xlib)(Display *, int *, int *);
+extern int (*XkbLibraryVersion_dylibloader_wrapper_xlib)(int *, int *);
+extern unsigned int (*XkbSetXlibControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+extern unsigned int (*XkbGetXlibControls_dylibloader_wrapper_xlib)(Display *);
+extern unsigned int (*XkbXlibControlsImplemented_dylibloader_wrapper_xlib)(void);
+extern void (*XkbSetAtomFuncs_dylibloader_wrapper_xlib)(XkbInternAtomFunc, XkbGetAtomNameFunc);
+extern KeySym (*XkbKeycodeToKeysym_dylibloader_wrapper_xlib)(Display *, KeyCode, int, int);
+extern unsigned int (*XkbKeysymToModifiers_dylibloader_wrapper_xlib)(Display *, KeySym);
+extern int (*XkbLookupKeySym_dylibloader_wrapper_xlib)(Display *, KeyCode, unsigned int, unsigned int *, KeySym *);
+extern int (*XkbLookupKeyBinding_dylibloader_wrapper_xlib)(Display *, KeySym, unsigned int, char *, int, int *);
+extern int (*XkbTranslateKeyCode_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, unsigned int, unsigned int *, KeySym *);
+extern int (*XkbTranslateKeySym_dylibloader_wrapper_xlib)(Display *, KeySym *, unsigned int, char *, int, int *);
+extern int (*XkbSetAutoRepeatRate_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+extern int (*XkbGetAutoRepeatRate_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *, unsigned int *);
+extern int (*XkbChangeEnabledControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+extern int (*XkbDeviceBell_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, int, Atom);
+extern int (*XkbForceDeviceBell_dylibloader_wrapper_xlib)(Display *, int, int, int, int);
+extern int (*XkbDeviceBellEvent_dylibloader_wrapper_xlib)(Display *, Window, int, int, int, int, Atom);
+extern int (*XkbBell_dylibloader_wrapper_xlib)(Display *, Window, int, Atom);
+extern int (*XkbForceBell_dylibloader_wrapper_xlib)(Display *, int);
+extern int (*XkbBellEvent_dylibloader_wrapper_xlib)(Display *, Window, int, Atom);
+extern int (*XkbSelectEvents_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+extern int (*XkbSelectEventDetails_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned long, unsigned long);
+extern void (*XkbNoteMapChanges_dylibloader_wrapper_xlib)(XkbMapChangesPtr, XkbMapNotifyEvent *, unsigned int);
+extern void (*XkbNoteNameChanges_dylibloader_wrapper_xlib)(XkbNameChangesPtr, XkbNamesNotifyEvent *, unsigned int);
+extern int (*XkbGetIndicatorState_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *);
+extern int (*XkbGetIndicatorMap_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+extern int (*XkbSetIndicatorMap_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+extern int (*XkbGetNamedIndicator_dylibloader_wrapper_xlib)(Display *, Atom, int *, int *, XkbIndicatorMapPtr, int *);
+extern int (*XkbGetNamedDeviceIndicator_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, Atom, int *, int *, XkbIndicatorMapPtr, int *);
+extern int (*XkbSetNamedIndicator_dylibloader_wrapper_xlib)(Display *, Atom, int, int, int, XkbIndicatorMapPtr);
+extern int (*XkbSetNamedDeviceIndicator_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, Atom, int, int, int, XkbIndicatorMapPtr);
+extern int (*XkbLockModifiers_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+extern int (*XkbLatchModifiers_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int);
+extern int (*XkbLockGroup_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+extern int (*XkbLatchGroup_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+extern int (*XkbSetServerInternalMods_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
+extern int (*XkbSetIgnoreLockMods_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int);
+extern int (*XkbVirtualModsToReal_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int *);
+extern int (*XkbComputeEffectiveMap_dylibloader_wrapper_xlib)(XkbDescPtr, XkbKeyTypePtr, unsigned char *);
+extern int (*XkbInitCanonicalKeyTypes_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern XkbDescPtr (*XkbAllocKeyboard_dylibloader_wrapper_xlib)(void);
+extern void (*XkbFreeKeyboard_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern int (*XkbAllocClientMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+extern int (*XkbAllocServerMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+extern void (*XkbFreeClientMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern void (*XkbFreeServerMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern XkbKeyTypePtr (*XkbAddKeyType_dylibloader_wrapper_xlib)(XkbDescPtr, Atom, int, int, int);
+extern int (*XkbAllocIndicatorMaps_dylibloader_wrapper_xlib)(XkbDescPtr);
+extern void (*XkbFreeIndicatorMaps_dylibloader_wrapper_xlib)(XkbDescPtr);
+extern XkbDescPtr (*XkbGetMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+extern int (*XkbGetUpdatedMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+extern int (*XkbGetMapChanges_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbMapChangesPtr);
+extern int (*XkbRefreshKeyboardMapping_dylibloader_wrapper_xlib)(XkbMapNotifyEvent *);
+extern int (*XkbGetKeyTypes_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeySyms_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeyActions_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeyBehaviors_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetVirtualMods_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeyExplicitComponents_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeyModifierMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbGetKeyVirtualModMap_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbAllocControls_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int);
+extern void (*XkbFreeControls_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern int (*XkbGetControls_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+extern int (*XkbSetControls_dylibloader_wrapper_xlib)(Display *, unsigned long, XkbDescPtr);
+extern void (*XkbNoteControlsChanges_dylibloader_wrapper_xlib)(XkbControlsChangesPtr, XkbControlsNotifyEvent *, unsigned int);
+extern int (*XkbAllocCompatMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, unsigned int);
+extern void (*XkbFreeCompatMap_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern int (*XkbGetCompatMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+extern int (*XkbSetCompatMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr, int);
+extern int (*XkbAllocNames_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int, int);
+extern int (*XkbGetNames_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+extern int (*XkbSetNames_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, XkbDescPtr);
+extern int (*XkbChangeNames_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbNameChangesPtr);
+extern void (*XkbFreeNames_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, int);
+extern int (*XkbGetState_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbStatePtr);
+extern int (*XkbSetMap_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDescPtr);
+extern int (*XkbChangeMap_dylibloader_wrapper_xlib)(Display *, XkbDescPtr, XkbMapChangesPtr);
+extern int (*XkbSetDetectableAutoRepeat_dylibloader_wrapper_xlib)(Display *, int, int *);
+extern int (*XkbGetDetectableAutoRepeat_dylibloader_wrapper_xlib)(Display *, int *);
+extern int (*XkbSetAutoResetControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *, unsigned int *);
+extern int (*XkbGetAutoResetControls_dylibloader_wrapper_xlib)(Display *, unsigned int *, unsigned int *);
+extern int (*XkbSetPerClientControls_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int *);
+extern int (*XkbGetPerClientControls_dylibloader_wrapper_xlib)(Display *, unsigned int *);
+extern int (*XkbCopyKeyType_dylibloader_wrapper_xlib)(XkbKeyTypePtr, XkbKeyTypePtr);
+extern int (*XkbCopyKeyTypes_dylibloader_wrapper_xlib)(XkbKeyTypePtr, XkbKeyTypePtr, int);
+extern int (*XkbResizeKeyType_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, int, int);
+extern KeySym *(*XkbResizeKeySyms_dylibloader_wrapper_xlib)(XkbDescPtr, int, int);
+extern XkbAction *(*XkbResizeKeyActions_dylibloader_wrapper_xlib)(XkbDescPtr, int, int);
+extern int (*XkbChangeTypesOfKey_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, unsigned int, int *, XkbMapChangesPtr);
+extern int (*XkbChangeKeycodeRange_dylibloader_wrapper_xlib)(XkbDescPtr, int, int, XkbChangesPtr);
+extern XkbComponentListPtr (*XkbListComponents_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbComponentNamesPtr, int *);
+extern void (*XkbFreeComponentList_dylibloader_wrapper_xlib)(XkbComponentListPtr);
+extern XkbDescPtr (*XkbGetKeyboard_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int);
+extern XkbDescPtr (*XkbGetKeyboardByName_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbComponentNamesPtr, unsigned int, unsigned int, int);
+extern int (*XkbKeyTypesForCoreSymbols_dylibloader_wrapper_xlib)(XkbDescPtr, int, KeySym *, unsigned int, int *, KeySym *);
+extern int (*XkbApplyCompatMapToKey_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, XkbChangesPtr);
+extern int (*XkbUpdateMapFromCore_dylibloader_wrapper_xlib)(XkbDescPtr, KeyCode, int, int, KeySym *, XkbChangesPtr);
+extern XkbDeviceLedInfoPtr (*XkbAddDeviceLedInfo_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int, unsigned int);
+extern int (*XkbResizeDeviceButtonActions_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int);
+extern XkbDeviceInfoPtr (*XkbAllocDeviceInfo_dylibloader_wrapper_xlib)(unsigned int, unsigned int, unsigned int);
+extern void (*XkbFreeDeviceInfo_dylibloader_wrapper_xlib)(XkbDeviceInfoPtr, unsigned int, int);
+extern void (*XkbNoteDeviceChanges_dylibloader_wrapper_xlib)(XkbDeviceChangesPtr, XkbExtensionDeviceNotifyEvent *, unsigned int);
+extern XkbDeviceInfoPtr (*XkbGetDeviceInfo_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, unsigned int, unsigned int);
+extern int (*XkbGetDeviceInfoChanges_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
+extern int (*XkbGetDeviceButtonActions_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, int, unsigned int, unsigned int);
+extern int (*XkbGetDeviceLedInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
+extern int (*XkbSetDeviceInfo_dylibloader_wrapper_xlib)(Display *, unsigned int, XkbDeviceInfoPtr);
+extern int (*XkbChangeDeviceInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, XkbDeviceChangesPtr);
+extern int (*XkbSetDeviceLedInfo_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int, unsigned int);
+extern int (*XkbSetDeviceButtonActions_dylibloader_wrapper_xlib)(Display *, XkbDeviceInfoPtr, unsigned int, unsigned int);
+extern char (*XkbToControl_dylibloader_wrapper_xlib)(char);
+extern int (*XkbSetDebuggingFlags_dylibloader_wrapper_xlib)(Display *, unsigned int, unsigned int, char *, unsigned int, unsigned int, unsigned int *, unsigned int *);
+extern int (*XkbApplyVirtualModChanges_dylibloader_wrapper_xlib)(XkbDescPtr, unsigned int, XkbChangesPtr);
+extern int (*XkbUpdateActionVirtualMods_dylibloader_wrapper_xlib)(XkbDescPtr, XkbAction *, unsigned int);
+extern void (*XkbUpdateKeyTypeVirtualMods_dylibloader_wrapper_xlib)(XkbDescPtr, XkbKeyTypePtr, unsigned int, XkbChangesPtr);
int initialize_xlib(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c
index 05f98d2506..bc9de62caa 100644
--- a/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c
@@ -1,12 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:13:54
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h" --soname libXrandr.so.2 --init-name xrandr --output-header ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:37
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --soname libXrandr.so.2 --init-name xrandr --output-header ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xrandr 1.5.2.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11 and libXrender, but absent in libXrandr.so.2, were removed.
#include <stdint.h>
#define XRRQueryExtension XRRQueryExtension_dylibloader_orig_xrandr
@@ -152,76 +148,76 @@
#undef XRRFreeMonitors
#include <dlfcn.h>
#include <stdio.h>
-int (*XRRQueryExtension_dylibloader_wrapper_xrandr)( Display*, int*, int*);
-int (*XRRQueryVersion_dylibloader_wrapper_xrandr)( Display*, int*, int*);
-XRRScreenConfiguration* (*XRRGetScreenInfo_dylibloader_wrapper_xrandr)( Display*, Window);
-void (*XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*);
-int (*XRRSetScreenConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, Time);
-int (*XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, short, Time);
-Rotation (*XRRConfigRotations_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*);
-Time (*XRRConfigTimes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Time*);
-XRRScreenSize* (*XRRConfigSizes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int*);
-short* (*XRRConfigRates_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int, int*);
-SizeID (*XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*);
-short (*XRRConfigCurrentRate_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*);
-int (*XRRRootToScreen_dylibloader_wrapper_xrandr)( Display*, Window);
-void (*XRRSelectInput_dylibloader_wrapper_xrandr)( Display*, Window, int);
-Rotation (*XRRRotations_dylibloader_wrapper_xrandr)( Display*, int, Rotation*);
-XRRScreenSize* (*XRRSizes_dylibloader_wrapper_xrandr)( Display*, int, int*);
-short* (*XRRRates_dylibloader_wrapper_xrandr)( Display*, int, int, int*);
-Time (*XRRTimes_dylibloader_wrapper_xrandr)( Display*, int, Time*);
-int (*XRRGetScreenSizeRange_dylibloader_wrapper_xrandr)( Display*, Window, int*, int*, int*, int*);
-void (*XRRSetScreenSize_dylibloader_wrapper_xrandr)( Display*, Window, int, int, int, int);
-XRRScreenResources* (*XRRGetScreenResources_dylibloader_wrapper_xrandr)( Display*, Window);
-void (*XRRFreeScreenResources_dylibloader_wrapper_xrandr)( XRRScreenResources*);
-XRROutputInfo* (*XRRGetOutputInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RROutput);
-void (*XRRFreeOutputInfo_dylibloader_wrapper_xrandr)( XRROutputInfo*);
-Atom* (*XRRListOutputProperties_dylibloader_wrapper_xrandr)( Display*, RROutput, int*);
-XRRPropertyInfo* (*XRRQueryOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom);
-void (*XRRConfigureOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, int, int, int, long*);
-void (*XRRChangeOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, Atom, int, int,const unsigned char*, int);
-void (*XRRDeleteOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom);
-int (*XRRGetOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-XRRModeInfo* (*XRRAllocModeInfo_dylibloader_wrapper_xrandr)(const char*, int);
-RRMode (*XRRCreateMode_dylibloader_wrapper_xrandr)( Display*, Window, XRRModeInfo*);
-void (*XRRDestroyMode_dylibloader_wrapper_xrandr)( Display*, RRMode);
-void (*XRRAddOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode);
-void (*XRRDeleteOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode);
-void (*XRRFreeModeInfo_dylibloader_wrapper_xrandr)( XRRModeInfo*);
-XRRCrtcInfo* (*XRRGetCrtcInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc);
-void (*XRRFreeCrtcInfo_dylibloader_wrapper_xrandr)( XRRCrtcInfo*);
-int (*XRRSetCrtcConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, Time, int, int, RRMode, Rotation, RROutput*, int);
-int (*XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr)( Display*, RRCrtc);
-XRRCrtcGamma* (*XRRGetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc);
-XRRCrtcGamma* (*XRRAllocGamma_dylibloader_wrapper_xrandr)( int);
-void (*XRRSetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcGamma*);
-void (*XRRFreeGamma_dylibloader_wrapper_xrandr)( XRRCrtcGamma*);
-XRRScreenResources* (*XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr)( Display*, Window);
-void (*XRRSetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XTransform*,const char*, XFixed*, int);
-int (*XRRGetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcTransformAttributes**);
-int (*XRRUpdateConfiguration_dylibloader_wrapper_xrandr)( XEvent*);
-XRRPanning* (*XRRGetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc);
-void (*XRRFreePanning_dylibloader_wrapper_xrandr)( XRRPanning*);
-int (*XRRSetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, XRRPanning*);
-void (*XRRSetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window, RROutput);
-RROutput (*XRRGetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window);
-XRRProviderResources* (*XRRGetProviderResources_dylibloader_wrapper_xrandr)( Display*, Window);
-void (*XRRFreeProviderResources_dylibloader_wrapper_xrandr)( XRRProviderResources*);
-XRRProviderInfo* (*XRRGetProviderInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRProvider);
-void (*XRRFreeProviderInfo_dylibloader_wrapper_xrandr)( XRRProviderInfo*);
-int (*XRRSetProviderOutputSource_dylibloader_wrapper_xrandr)( Display*, XID, XID);
-int (*XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr)( Display*, XID, XID);
-Atom* (*XRRListProviderProperties_dylibloader_wrapper_xrandr)( Display*, RRProvider, int*);
-XRRPropertyInfo* (*XRRQueryProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom);
-void (*XRRConfigureProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, int, int, int, long*);
-void (*XRRChangeProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, Atom, int, int,const unsigned char*, int);
-void (*XRRDeleteProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom);
-int (*XRRGetProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-XRRMonitorInfo* (*XRRAllocateMonitor_dylibloader_wrapper_xrandr)( Display*, int);
-XRRMonitorInfo* (*XRRGetMonitors_dylibloader_wrapper_xrandr)( Display*, Window, int, int*);
-void (*XRRSetMonitor_dylibloader_wrapper_xrandr)( Display*, Window, XRRMonitorInfo*);
-void (*XRRDeleteMonitor_dylibloader_wrapper_xrandr)( Display*, Window, Atom);
-void (*XRRFreeMonitors_dylibloader_wrapper_xrandr)( XRRMonitorInfo*);
+int (*XRRQueryExtension_dylibloader_wrapper_xrandr)(Display *, int *, int *);
+int (*XRRQueryVersion_dylibloader_wrapper_xrandr)(Display *, int *, int *);
+XRRScreenConfiguration *(*XRRGetScreenInfo_dylibloader_wrapper_xrandr)(Display *, Window);
+void (*XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *);
+int (*XRRSetScreenConfig_dylibloader_wrapper_xrandr)(Display *, XRRScreenConfiguration *, Drawable, int, Rotation, Time);
+int (*XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr)(Display *, XRRScreenConfiguration *, Drawable, int, Rotation, short, Time);
+Rotation (*XRRConfigRotations_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Rotation *);
+Time (*XRRConfigTimes_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Time *);
+XRRScreenSize *(*XRRConfigSizes_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, int *);
+short *(*XRRConfigRates_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, int, int *);
+SizeID (*XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Rotation *);
+short (*XRRConfigCurrentRate_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *);
+int (*XRRRootToScreen_dylibloader_wrapper_xrandr)(Display *, Window);
+void (*XRRSelectInput_dylibloader_wrapper_xrandr)(Display *, Window, int);
+Rotation (*XRRRotations_dylibloader_wrapper_xrandr)(Display *, int, Rotation *);
+XRRScreenSize *(*XRRSizes_dylibloader_wrapper_xrandr)(Display *, int, int *);
+short *(*XRRRates_dylibloader_wrapper_xrandr)(Display *, int, int, int *);
+Time (*XRRTimes_dylibloader_wrapper_xrandr)(Display *, int, Time *);
+int (*XRRGetScreenSizeRange_dylibloader_wrapper_xrandr)(Display *, Window, int *, int *, int *, int *);
+void (*XRRSetScreenSize_dylibloader_wrapper_xrandr)(Display *, Window, int, int, int, int);
+XRRScreenResources *(*XRRGetScreenResources_dylibloader_wrapper_xrandr)(Display *, Window);
+void (*XRRFreeScreenResources_dylibloader_wrapper_xrandr)(XRRScreenResources *);
+XRROutputInfo *(*XRRGetOutputInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RROutput);
+void (*XRRFreeOutputInfo_dylibloader_wrapper_xrandr)(XRROutputInfo *);
+Atom *(*XRRListOutputProperties_dylibloader_wrapper_xrandr)(Display *, RROutput, int *);
+XRRPropertyInfo *(*XRRQueryOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom);
+void (*XRRConfigureOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, int, int, int, long *);
+void (*XRRChangeOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, Atom, int, int, const unsigned char *, int);
+void (*XRRDeleteOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom);
+int (*XRRGetOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, long, long, int, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+XRRModeInfo *(*XRRAllocModeInfo_dylibloader_wrapper_xrandr)(const char *, int);
+RRMode (*XRRCreateMode_dylibloader_wrapper_xrandr)(Display *, Window, XRRModeInfo *);
+void (*XRRDestroyMode_dylibloader_wrapper_xrandr)(Display *, RRMode);
+void (*XRRAddOutputMode_dylibloader_wrapper_xrandr)(Display *, RROutput, RRMode);
+void (*XRRDeleteOutputMode_dylibloader_wrapper_xrandr)(Display *, RROutput, RRMode);
+void (*XRRFreeModeInfo_dylibloader_wrapper_xrandr)(XRRModeInfo *);
+XRRCrtcInfo *(*XRRGetCrtcInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc);
+void (*XRRFreeCrtcInfo_dylibloader_wrapper_xrandr)(XRRCrtcInfo *);
+int (*XRRSetCrtcConfig_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc, Time, int, int, RRMode, Rotation, RROutput *, int);
+int (*XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr)(Display *, RRCrtc);
+XRRCrtcGamma *(*XRRGetCrtcGamma_dylibloader_wrapper_xrandr)(Display *, RRCrtc);
+XRRCrtcGamma *(*XRRAllocGamma_dylibloader_wrapper_xrandr)(int);
+void (*XRRSetCrtcGamma_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XRRCrtcGamma *);
+void (*XRRFreeGamma_dylibloader_wrapper_xrandr)(XRRCrtcGamma *);
+XRRScreenResources *(*XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr)(Display *, Window);
+void (*XRRSetCrtcTransform_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XTransform *, const char *, XFixed *, int);
+int (*XRRGetCrtcTransform_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XRRCrtcTransformAttributes **);
+int (*XRRUpdateConfiguration_dylibloader_wrapper_xrandr)(XEvent *);
+XRRPanning *(*XRRGetPanning_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc);
+void (*XRRFreePanning_dylibloader_wrapper_xrandr)(XRRPanning *);
+int (*XRRSetPanning_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc, XRRPanning *);
+void (*XRRSetOutputPrimary_dylibloader_wrapper_xrandr)(Display *, Window, RROutput);
+RROutput (*XRRGetOutputPrimary_dylibloader_wrapper_xrandr)(Display *, Window);
+XRRProviderResources *(*XRRGetProviderResources_dylibloader_wrapper_xrandr)(Display *, Window);
+void (*XRRFreeProviderResources_dylibloader_wrapper_xrandr)(XRRProviderResources *);
+XRRProviderInfo *(*XRRGetProviderInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRProvider);
+void (*XRRFreeProviderInfo_dylibloader_wrapper_xrandr)(XRRProviderInfo *);
+int (*XRRSetProviderOutputSource_dylibloader_wrapper_xrandr)(Display *, XID, XID);
+int (*XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr)(Display *, XID, XID);
+Atom *(*XRRListProviderProperties_dylibloader_wrapper_xrandr)(Display *, RRProvider, int *);
+XRRPropertyInfo *(*XRRQueryProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom);
+void (*XRRConfigureProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, int, int, int, long *);
+void (*XRRChangeProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, Atom, int, int, const unsigned char *, int);
+void (*XRRDeleteProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom);
+int (*XRRGetProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, long, long, int, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+XRRMonitorInfo *(*XRRAllocateMonitor_dylibloader_wrapper_xrandr)(Display *, int);
+XRRMonitorInfo *(*XRRGetMonitors_dylibloader_wrapper_xrandr)(Display *, Window, int, int *);
+void (*XRRSetMonitor_dylibloader_wrapper_xrandr)(Display *, Window, XRRMonitorInfo *);
+void (*XRRDeleteMonitor_dylibloader_wrapper_xrandr)(Display *, Window, Atom);
+void (*XRRFreeMonitors_dylibloader_wrapper_xrandr)(XRRMonitorInfo *);
int initialize_xrandr(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h
index db5d44203d..c055705f69 100644
--- a/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h
@@ -2,13 +2,9 @@
#define DYLIBLOAD_WRAPPER_XRANDR
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:13:54
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h" --soname libXrandr.so.2 --init-name xrandr --output-header ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:37
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xrandr.h --soname libXrandr.so.2 --init-name xrandr --output-header ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrandr-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xrandr 1.5.2.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11 and libXrender, but absent in libXrandr.so.2, were removed.
#include <stdint.h>
#define XRRQueryExtension XRRQueryExtension_dylibloader_orig_xrandr
@@ -225,76 +221,76 @@ extern "C" {
#define XRRSetMonitor XRRSetMonitor_dylibloader_wrapper_xrandr
#define XRRDeleteMonitor XRRDeleteMonitor_dylibloader_wrapper_xrandr
#define XRRFreeMonitors XRRFreeMonitors_dylibloader_wrapper_xrandr
-extern int (*XRRQueryExtension_dylibloader_wrapper_xrandr)( Display*, int*, int*);
-extern int (*XRRQueryVersion_dylibloader_wrapper_xrandr)( Display*, int*, int*);
-extern XRRScreenConfiguration* (*XRRGetScreenInfo_dylibloader_wrapper_xrandr)( Display*, Window);
-extern void (*XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*);
-extern int (*XRRSetScreenConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, Time);
-extern int (*XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr)( Display*, XRRScreenConfiguration*, Drawable, int, Rotation, short, Time);
-extern Rotation (*XRRConfigRotations_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*);
-extern Time (*XRRConfigTimes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Time*);
-extern XRRScreenSize* (*XRRConfigSizes_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int*);
-extern short* (*XRRConfigRates_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, int, int*);
-extern SizeID (*XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*, Rotation*);
-extern short (*XRRConfigCurrentRate_dylibloader_wrapper_xrandr)( XRRScreenConfiguration*);
-extern int (*XRRRootToScreen_dylibloader_wrapper_xrandr)( Display*, Window);
-extern void (*XRRSelectInput_dylibloader_wrapper_xrandr)( Display*, Window, int);
-extern Rotation (*XRRRotations_dylibloader_wrapper_xrandr)( Display*, int, Rotation*);
-extern XRRScreenSize* (*XRRSizes_dylibloader_wrapper_xrandr)( Display*, int, int*);
-extern short* (*XRRRates_dylibloader_wrapper_xrandr)( Display*, int, int, int*);
-extern Time (*XRRTimes_dylibloader_wrapper_xrandr)( Display*, int, Time*);
-extern int (*XRRGetScreenSizeRange_dylibloader_wrapper_xrandr)( Display*, Window, int*, int*, int*, int*);
-extern void (*XRRSetScreenSize_dylibloader_wrapper_xrandr)( Display*, Window, int, int, int, int);
-extern XRRScreenResources* (*XRRGetScreenResources_dylibloader_wrapper_xrandr)( Display*, Window);
-extern void (*XRRFreeScreenResources_dylibloader_wrapper_xrandr)( XRRScreenResources*);
-extern XRROutputInfo* (*XRRGetOutputInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RROutput);
-extern void (*XRRFreeOutputInfo_dylibloader_wrapper_xrandr)( XRROutputInfo*);
-extern Atom* (*XRRListOutputProperties_dylibloader_wrapper_xrandr)( Display*, RROutput, int*);
-extern XRRPropertyInfo* (*XRRQueryOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom);
-extern void (*XRRConfigureOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, int, int, int, long*);
-extern void (*XRRChangeOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, Atom, int, int,const unsigned char*, int);
-extern void (*XRRDeleteOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom);
-extern int (*XRRGetOutputProperty_dylibloader_wrapper_xrandr)( Display*, RROutput, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-extern XRRModeInfo* (*XRRAllocModeInfo_dylibloader_wrapper_xrandr)(const char*, int);
-extern RRMode (*XRRCreateMode_dylibloader_wrapper_xrandr)( Display*, Window, XRRModeInfo*);
-extern void (*XRRDestroyMode_dylibloader_wrapper_xrandr)( Display*, RRMode);
-extern void (*XRRAddOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode);
-extern void (*XRRDeleteOutputMode_dylibloader_wrapper_xrandr)( Display*, RROutput, RRMode);
-extern void (*XRRFreeModeInfo_dylibloader_wrapper_xrandr)( XRRModeInfo*);
-extern XRRCrtcInfo* (*XRRGetCrtcInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc);
-extern void (*XRRFreeCrtcInfo_dylibloader_wrapper_xrandr)( XRRCrtcInfo*);
-extern int (*XRRSetCrtcConfig_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, Time, int, int, RRMode, Rotation, RROutput*, int);
-extern int (*XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr)( Display*, RRCrtc);
-extern XRRCrtcGamma* (*XRRGetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc);
-extern XRRCrtcGamma* (*XRRAllocGamma_dylibloader_wrapper_xrandr)( int);
-extern void (*XRRSetCrtcGamma_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcGamma*);
-extern void (*XRRFreeGamma_dylibloader_wrapper_xrandr)( XRRCrtcGamma*);
-extern XRRScreenResources* (*XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr)( Display*, Window);
-extern void (*XRRSetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XTransform*,const char*, XFixed*, int);
-extern int (*XRRGetCrtcTransform_dylibloader_wrapper_xrandr)( Display*, RRCrtc, XRRCrtcTransformAttributes**);
-extern int (*XRRUpdateConfiguration_dylibloader_wrapper_xrandr)( XEvent*);
-extern XRRPanning* (*XRRGetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc);
-extern void (*XRRFreePanning_dylibloader_wrapper_xrandr)( XRRPanning*);
-extern int (*XRRSetPanning_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRCrtc, XRRPanning*);
-extern void (*XRRSetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window, RROutput);
-extern RROutput (*XRRGetOutputPrimary_dylibloader_wrapper_xrandr)( Display*, Window);
-extern XRRProviderResources* (*XRRGetProviderResources_dylibloader_wrapper_xrandr)( Display*, Window);
-extern void (*XRRFreeProviderResources_dylibloader_wrapper_xrandr)( XRRProviderResources*);
-extern XRRProviderInfo* (*XRRGetProviderInfo_dylibloader_wrapper_xrandr)( Display*, XRRScreenResources*, RRProvider);
-extern void (*XRRFreeProviderInfo_dylibloader_wrapper_xrandr)( XRRProviderInfo*);
-extern int (*XRRSetProviderOutputSource_dylibloader_wrapper_xrandr)( Display*, XID, XID);
-extern int (*XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr)( Display*, XID, XID);
-extern Atom* (*XRRListProviderProperties_dylibloader_wrapper_xrandr)( Display*, RRProvider, int*);
-extern XRRPropertyInfo* (*XRRQueryProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom);
-extern void (*XRRConfigureProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, int, int, int, long*);
-extern void (*XRRChangeProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, Atom, int, int,const unsigned char*, int);
-extern void (*XRRDeleteProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom);
-extern int (*XRRGetProviderProperty_dylibloader_wrapper_xrandr)( Display*, RRProvider, Atom, long, long, int, int, Atom, Atom*, int*, unsigned long*, unsigned long*, unsigned char**);
-extern XRRMonitorInfo* (*XRRAllocateMonitor_dylibloader_wrapper_xrandr)( Display*, int);
-extern XRRMonitorInfo* (*XRRGetMonitors_dylibloader_wrapper_xrandr)( Display*, Window, int, int*);
-extern void (*XRRSetMonitor_dylibloader_wrapper_xrandr)( Display*, Window, XRRMonitorInfo*);
-extern void (*XRRDeleteMonitor_dylibloader_wrapper_xrandr)( Display*, Window, Atom);
-extern void (*XRRFreeMonitors_dylibloader_wrapper_xrandr)( XRRMonitorInfo*);
+extern int (*XRRQueryExtension_dylibloader_wrapper_xrandr)(Display *, int *, int *);
+extern int (*XRRQueryVersion_dylibloader_wrapper_xrandr)(Display *, int *, int *);
+extern XRRScreenConfiguration *(*XRRGetScreenInfo_dylibloader_wrapper_xrandr)(Display *, Window);
+extern void (*XRRFreeScreenConfigInfo_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *);
+extern int (*XRRSetScreenConfig_dylibloader_wrapper_xrandr)(Display *, XRRScreenConfiguration *, Drawable, int, Rotation, Time);
+extern int (*XRRSetScreenConfigAndRate_dylibloader_wrapper_xrandr)(Display *, XRRScreenConfiguration *, Drawable, int, Rotation, short, Time);
+extern Rotation (*XRRConfigRotations_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Rotation *);
+extern Time (*XRRConfigTimes_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Time *);
+extern XRRScreenSize *(*XRRConfigSizes_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, int *);
+extern short *(*XRRConfigRates_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, int, int *);
+extern SizeID (*XRRConfigCurrentConfiguration_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *, Rotation *);
+extern short (*XRRConfigCurrentRate_dylibloader_wrapper_xrandr)(XRRScreenConfiguration *);
+extern int (*XRRRootToScreen_dylibloader_wrapper_xrandr)(Display *, Window);
+extern void (*XRRSelectInput_dylibloader_wrapper_xrandr)(Display *, Window, int);
+extern Rotation (*XRRRotations_dylibloader_wrapper_xrandr)(Display *, int, Rotation *);
+extern XRRScreenSize *(*XRRSizes_dylibloader_wrapper_xrandr)(Display *, int, int *);
+extern short *(*XRRRates_dylibloader_wrapper_xrandr)(Display *, int, int, int *);
+extern Time (*XRRTimes_dylibloader_wrapper_xrandr)(Display *, int, Time *);
+extern int (*XRRGetScreenSizeRange_dylibloader_wrapper_xrandr)(Display *, Window, int *, int *, int *, int *);
+extern void (*XRRSetScreenSize_dylibloader_wrapper_xrandr)(Display *, Window, int, int, int, int);
+extern XRRScreenResources *(*XRRGetScreenResources_dylibloader_wrapper_xrandr)(Display *, Window);
+extern void (*XRRFreeScreenResources_dylibloader_wrapper_xrandr)(XRRScreenResources *);
+extern XRROutputInfo *(*XRRGetOutputInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RROutput);
+extern void (*XRRFreeOutputInfo_dylibloader_wrapper_xrandr)(XRROutputInfo *);
+extern Atom *(*XRRListOutputProperties_dylibloader_wrapper_xrandr)(Display *, RROutput, int *);
+extern XRRPropertyInfo *(*XRRQueryOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom);
+extern void (*XRRConfigureOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, int, int, int, long *);
+extern void (*XRRChangeOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, Atom, int, int, const unsigned char *, int);
+extern void (*XRRDeleteOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom);
+extern int (*XRRGetOutputProperty_dylibloader_wrapper_xrandr)(Display *, RROutput, Atom, long, long, int, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+extern XRRModeInfo *(*XRRAllocModeInfo_dylibloader_wrapper_xrandr)(const char *, int);
+extern RRMode (*XRRCreateMode_dylibloader_wrapper_xrandr)(Display *, Window, XRRModeInfo *);
+extern void (*XRRDestroyMode_dylibloader_wrapper_xrandr)(Display *, RRMode);
+extern void (*XRRAddOutputMode_dylibloader_wrapper_xrandr)(Display *, RROutput, RRMode);
+extern void (*XRRDeleteOutputMode_dylibloader_wrapper_xrandr)(Display *, RROutput, RRMode);
+extern void (*XRRFreeModeInfo_dylibloader_wrapper_xrandr)(XRRModeInfo *);
+extern XRRCrtcInfo *(*XRRGetCrtcInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc);
+extern void (*XRRFreeCrtcInfo_dylibloader_wrapper_xrandr)(XRRCrtcInfo *);
+extern int (*XRRSetCrtcConfig_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc, Time, int, int, RRMode, Rotation, RROutput *, int);
+extern int (*XRRGetCrtcGammaSize_dylibloader_wrapper_xrandr)(Display *, RRCrtc);
+extern XRRCrtcGamma *(*XRRGetCrtcGamma_dylibloader_wrapper_xrandr)(Display *, RRCrtc);
+extern XRRCrtcGamma *(*XRRAllocGamma_dylibloader_wrapper_xrandr)(int);
+extern void (*XRRSetCrtcGamma_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XRRCrtcGamma *);
+extern void (*XRRFreeGamma_dylibloader_wrapper_xrandr)(XRRCrtcGamma *);
+extern XRRScreenResources *(*XRRGetScreenResourcesCurrent_dylibloader_wrapper_xrandr)(Display *, Window);
+extern void (*XRRSetCrtcTransform_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XTransform *, const char *, XFixed *, int);
+extern int (*XRRGetCrtcTransform_dylibloader_wrapper_xrandr)(Display *, RRCrtc, XRRCrtcTransformAttributes **);
+extern int (*XRRUpdateConfiguration_dylibloader_wrapper_xrandr)(XEvent *);
+extern XRRPanning *(*XRRGetPanning_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc);
+extern void (*XRRFreePanning_dylibloader_wrapper_xrandr)(XRRPanning *);
+extern int (*XRRSetPanning_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRCrtc, XRRPanning *);
+extern void (*XRRSetOutputPrimary_dylibloader_wrapper_xrandr)(Display *, Window, RROutput);
+extern RROutput (*XRRGetOutputPrimary_dylibloader_wrapper_xrandr)(Display *, Window);
+extern XRRProviderResources *(*XRRGetProviderResources_dylibloader_wrapper_xrandr)(Display *, Window);
+extern void (*XRRFreeProviderResources_dylibloader_wrapper_xrandr)(XRRProviderResources *);
+extern XRRProviderInfo *(*XRRGetProviderInfo_dylibloader_wrapper_xrandr)(Display *, XRRScreenResources *, RRProvider);
+extern void (*XRRFreeProviderInfo_dylibloader_wrapper_xrandr)(XRRProviderInfo *);
+extern int (*XRRSetProviderOutputSource_dylibloader_wrapper_xrandr)(Display *, XID, XID);
+extern int (*XRRSetProviderOffloadSink_dylibloader_wrapper_xrandr)(Display *, XID, XID);
+extern Atom *(*XRRListProviderProperties_dylibloader_wrapper_xrandr)(Display *, RRProvider, int *);
+extern XRRPropertyInfo *(*XRRQueryProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom);
+extern void (*XRRConfigureProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, int, int, int, long *);
+extern void (*XRRChangeProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, Atom, int, int, const unsigned char *, int);
+extern void (*XRRDeleteProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom);
+extern int (*XRRGetProviderProperty_dylibloader_wrapper_xrandr)(Display *, RRProvider, Atom, long, long, int, int, Atom, Atom *, int *, unsigned long *, unsigned long *, unsigned char **);
+extern XRRMonitorInfo *(*XRRAllocateMonitor_dylibloader_wrapper_xrandr)(Display *, int);
+extern XRRMonitorInfo *(*XRRGetMonitors_dylibloader_wrapper_xrandr)(Display *, Window, int, int *);
+extern void (*XRRSetMonitor_dylibloader_wrapper_xrandr)(Display *, Window, XRRMonitorInfo *);
+extern void (*XRRDeleteMonitor_dylibloader_wrapper_xrandr)(Display *, Window, Atom);
+extern void (*XRRFreeMonitors_dylibloader_wrapper_xrandr)(XRRMonitorInfo *);
int initialize_xrandr(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c b/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c
index 7421f94601..e1cd987eca 100644
--- a/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c
+++ b/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c
@@ -1,12 +1,8 @@
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:14:14
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xrender.h" --soname libXrender.so.1 --init-name xrender --output-header ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c~
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:37
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --soname libXrender.so.1 --init-name xrender --output-header ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xrender 0.9.10.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXrender.so.1, were removed.
#include <stdint.h>
#define XRenderQueryExtension XRenderQueryExtension_dylibloader_orig_xrender
@@ -100,50 +96,50 @@
#undef XRenderCreateConicalGradient
#include <dlfcn.h>
#include <stdio.h>
-int (*XRenderQueryExtension_dylibloader_wrapper_xrender)( Display*, int*, int*);
-int (*XRenderQueryVersion_dylibloader_wrapper_xrender)( Display*, int*, int*);
-int (*XRenderQueryFormats_dylibloader_wrapper_xrender)( Display*);
-int (*XRenderQuerySubpixelOrder_dylibloader_wrapper_xrender)( Display*, int);
-int (*XRenderSetSubpixelOrder_dylibloader_wrapper_xrender)( Display*, int, int);
-XRenderPictFormat* (*XRenderFindVisualFormat_dylibloader_wrapper_xrender)( Display*,const Visual*);
-XRenderPictFormat* (*XRenderFindFormat_dylibloader_wrapper_xrender)( Display*, unsigned long,const XRenderPictFormat*, int);
-XRenderPictFormat* (*XRenderFindStandardFormat_dylibloader_wrapper_xrender)( Display*, int);
-XIndexValue* (*XRenderQueryPictIndexValues_dylibloader_wrapper_xrender)( Display*,const XRenderPictFormat*, int*);
-Picture (*XRenderCreatePicture_dylibloader_wrapper_xrender)( Display*, Drawable,const XRenderPictFormat*, unsigned long,const XRenderPictureAttributes*);
-void (*XRenderChangePicture_dylibloader_wrapper_xrender)( Display*, Picture, unsigned long,const XRenderPictureAttributes*);
-void (*XRenderSetPictureClipRectangles_dylibloader_wrapper_xrender)( Display*, Picture, int, int,const XRectangle*, int);
-void (*XRenderSetPictureClipRegion_dylibloader_wrapper_xrender)( Display*, Picture, Region);
-void (*XRenderSetPictureTransform_dylibloader_wrapper_xrender)( Display*, Picture, XTransform*);
-void (*XRenderFreePicture_dylibloader_wrapper_xrender)( Display*, Picture);
-void (*XRenderComposite_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture, Picture, int, int, int, int, int, int, unsigned int, unsigned int);
-GlyphSet (*XRenderCreateGlyphSet_dylibloader_wrapper_xrender)( Display*,const XRenderPictFormat*);
-GlyphSet (*XRenderReferenceGlyphSet_dylibloader_wrapper_xrender)( Display*, GlyphSet);
-void (*XRenderFreeGlyphSet_dylibloader_wrapper_xrender)( Display*, GlyphSet);
-void (*XRenderAddGlyphs_dylibloader_wrapper_xrender)( Display*, GlyphSet,const Glyph*,const XGlyphInfo*, int,const char*, int);
-void (*XRenderFreeGlyphs_dylibloader_wrapper_xrender)( Display*, GlyphSet,const Glyph*, int);
-void (*XRenderCompositeString8_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const char*, int);
-void (*XRenderCompositeString16_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const unsigned short*, int);
-void (*XRenderCompositeString32_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const unsigned int*, int);
-void (*XRenderCompositeText8_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt8*, int);
-void (*XRenderCompositeText16_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt16*, int);
-void (*XRenderCompositeText32_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt32*, int);
-void (*XRenderFillRectangle_dylibloader_wrapper_xrender)( Display*, int, Picture,const XRenderColor*, int, int, unsigned int, unsigned int);
-void (*XRenderFillRectangles_dylibloader_wrapper_xrender)( Display*, int, Picture,const XRenderColor*,const XRectangle*, int);
-void (*XRenderCompositeTrapezoids_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XTrapezoid*, int);
-void (*XRenderCompositeTriangles_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XTriangle*, int);
-void (*XRenderCompositeTriStrip_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XPointFixed*, int);
-void (*XRenderCompositeTriFan_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XPointFixed*, int);
-void (*XRenderCompositeDoublePoly_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XPointDouble*, int, int);
-int (*XRenderParseColor_dylibloader_wrapper_xrender)( Display*, char*, XRenderColor*);
-Cursor (*XRenderCreateCursor_dylibloader_wrapper_xrender)( Display*, Picture, unsigned int, unsigned int);
-XFilters* (*XRenderQueryFilters_dylibloader_wrapper_xrender)( Display*, Drawable);
-void (*XRenderSetPictureFilter_dylibloader_wrapper_xrender)( Display*, Picture,const char*, XFixed*, int);
-Cursor (*XRenderCreateAnimCursor_dylibloader_wrapper_xrender)( Display*, int, XAnimCursor*);
-void (*XRenderAddTraps_dylibloader_wrapper_xrender)( Display*, Picture, int, int,const XTrap*, int);
-Picture (*XRenderCreateSolidFill_dylibloader_wrapper_xrender)( Display*,const XRenderColor*);
-Picture (*XRenderCreateLinearGradient_dylibloader_wrapper_xrender)( Display*,const XLinearGradient*,const XFixed*,const XRenderColor*, int);
-Picture (*XRenderCreateRadialGradient_dylibloader_wrapper_xrender)( Display*,const XRadialGradient*,const XFixed*,const XRenderColor*, int);
-Picture (*XRenderCreateConicalGradient_dylibloader_wrapper_xrender)( Display*,const XConicalGradient*,const XFixed*,const XRenderColor*, int);
+int (*XRenderQueryExtension_dylibloader_wrapper_xrender)(Display *, int *, int *);
+int (*XRenderQueryVersion_dylibloader_wrapper_xrender)(Display *, int *, int *);
+int (*XRenderQueryFormats_dylibloader_wrapper_xrender)(Display *);
+int (*XRenderQuerySubpixelOrder_dylibloader_wrapper_xrender)(Display *, int);
+int (*XRenderSetSubpixelOrder_dylibloader_wrapper_xrender)(Display *, int, int);
+XRenderPictFormat *(*XRenderFindVisualFormat_dylibloader_wrapper_xrender)(Display *, const Visual *);
+XRenderPictFormat *(*XRenderFindFormat_dylibloader_wrapper_xrender)(Display *, unsigned long, const XRenderPictFormat *, int);
+XRenderPictFormat *(*XRenderFindStandardFormat_dylibloader_wrapper_xrender)(Display *, int);
+XIndexValue *(*XRenderQueryPictIndexValues_dylibloader_wrapper_xrender)(Display *, const XRenderPictFormat *, int *);
+Picture (*XRenderCreatePicture_dylibloader_wrapper_xrender)(Display *, Drawable, const XRenderPictFormat *, unsigned long, const XRenderPictureAttributes *);
+void (*XRenderChangePicture_dylibloader_wrapper_xrender)(Display *, Picture, unsigned long, const XRenderPictureAttributes *);
+void (*XRenderSetPictureClipRectangles_dylibloader_wrapper_xrender)(Display *, Picture, int, int, const XRectangle *, int);
+void (*XRenderSetPictureClipRegion_dylibloader_wrapper_xrender)(Display *, Picture, Region);
+void (*XRenderSetPictureTransform_dylibloader_wrapper_xrender)(Display *, Picture, XTransform *);
+void (*XRenderFreePicture_dylibloader_wrapper_xrender)(Display *, Picture);
+void (*XRenderComposite_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, Picture, int, int, int, int, int, int, unsigned int, unsigned int);
+GlyphSet (*XRenderCreateGlyphSet_dylibloader_wrapper_xrender)(Display *, const XRenderPictFormat *);
+GlyphSet (*XRenderReferenceGlyphSet_dylibloader_wrapper_xrender)(Display *, GlyphSet);
+void (*XRenderFreeGlyphSet_dylibloader_wrapper_xrender)(Display *, GlyphSet);
+void (*XRenderAddGlyphs_dylibloader_wrapper_xrender)(Display *, GlyphSet, const Glyph *, const XGlyphInfo *, int, const char *, int);
+void (*XRenderFreeGlyphs_dylibloader_wrapper_xrender)(Display *, GlyphSet, const Glyph *, int);
+void (*XRenderCompositeString8_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const char *, int);
+void (*XRenderCompositeString16_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const unsigned short *, int);
+void (*XRenderCompositeString32_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const unsigned int *, int);
+void (*XRenderCompositeText8_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt8 *, int);
+void (*XRenderCompositeText16_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt16 *, int);
+void (*XRenderCompositeText32_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt32 *, int);
+void (*XRenderFillRectangle_dylibloader_wrapper_xrender)(Display *, int, Picture, const XRenderColor *, int, int, unsigned int, unsigned int);
+void (*XRenderFillRectangles_dylibloader_wrapper_xrender)(Display *, int, Picture, const XRenderColor *, const XRectangle *, int);
+void (*XRenderCompositeTrapezoids_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XTrapezoid *, int);
+void (*XRenderCompositeTriangles_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XTriangle *, int);
+void (*XRenderCompositeTriStrip_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XPointFixed *, int);
+void (*XRenderCompositeTriFan_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XPointFixed *, int);
+void (*XRenderCompositeDoublePoly_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XPointDouble *, int, int);
+int (*XRenderParseColor_dylibloader_wrapper_xrender)(Display *, char *, XRenderColor *);
+Cursor (*XRenderCreateCursor_dylibloader_wrapper_xrender)(Display *, Picture, unsigned int, unsigned int);
+XFilters *(*XRenderQueryFilters_dylibloader_wrapper_xrender)(Display *, Drawable);
+void (*XRenderSetPictureFilter_dylibloader_wrapper_xrender)(Display *, Picture, const char *, XFixed *, int);
+Cursor (*XRenderCreateAnimCursor_dylibloader_wrapper_xrender)(Display *, int, XAnimCursor *);
+void (*XRenderAddTraps_dylibloader_wrapper_xrender)(Display *, Picture, int, int, const XTrap *, int);
+Picture (*XRenderCreateSolidFill_dylibloader_wrapper_xrender)(Display *, const XRenderColor *);
+Picture (*XRenderCreateLinearGradient_dylibloader_wrapper_xrender)(Display *, const XLinearGradient *, const XFixed *, const XRenderColor *, int);
+Picture (*XRenderCreateRadialGradient_dylibloader_wrapper_xrender)(Display *, const XRadialGradient *, const XFixed *, const XRenderColor *, int);
+Picture (*XRenderCreateConicalGradient_dylibloader_wrapper_xrender)(Display *, const XConicalGradient *, const XFixed *, const XRenderColor *, int);
int initialize_xrender(int verbose) {
void *handle;
char *error;
diff --git a/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h b/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h
index 5d3f695959..3d0e8901ea 100644
--- a/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h
+++ b/platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h
@@ -2,13 +2,9 @@
#define DYLIBLOAD_WRAPPER_XRENDER
// This file is generated. Do not edit!
// see https://github.com/hpvb/dynload-wrapper for details
-// generated by generate-wrapper.py 0.3 on 2023-01-23 15:14:14
-// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --sys-include "thirdparty/linuxbsd_headers/X11/extensions/Xrender.h" --soname libXrender.so.1 --init-name xrender --output-header ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c~
+// generated by generate-wrapper.py 0.6 on 2024-11-09 02:52:37
+// flags: generate-wrapper.py --include ./thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --sys-include thirdparty/linuxbsd_headers/X11/extensions/Xrender.h --soname libXrender.so.1 --init-name xrender --output-header ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.h --output-implementation ./platform/linuxbsd/x11/dynwrappers/xrender-so_wrap.c --ignore-other
//
-// NOTE: Generated from Xrender 0.9.10.
-// This has been handpatched to workaround some issues with the generator that
-// will be eventually fixed. In this case, non-existent symbols inherited from
-// libX11, but absent in libXrender.so.1, were removed.
#include <stdint.h>
#define XRenderQueryExtension XRenderQueryExtension_dylibloader_orig_xrender
@@ -147,50 +143,50 @@ extern "C" {
#define XRenderCreateLinearGradient XRenderCreateLinearGradient_dylibloader_wrapper_xrender
#define XRenderCreateRadialGradient XRenderCreateRadialGradient_dylibloader_wrapper_xrender
#define XRenderCreateConicalGradient XRenderCreateConicalGradient_dylibloader_wrapper_xrender
-extern int (*XRenderQueryExtension_dylibloader_wrapper_xrender)( Display*, int*, int*);
-extern int (*XRenderQueryVersion_dylibloader_wrapper_xrender)( Display*, int*, int*);
-extern int (*XRenderQueryFormats_dylibloader_wrapper_xrender)( Display*);
-extern int (*XRenderQuerySubpixelOrder_dylibloader_wrapper_xrender)( Display*, int);
-extern int (*XRenderSetSubpixelOrder_dylibloader_wrapper_xrender)( Display*, int, int);
-extern XRenderPictFormat* (*XRenderFindVisualFormat_dylibloader_wrapper_xrender)( Display*,const Visual*);
-extern XRenderPictFormat* (*XRenderFindFormat_dylibloader_wrapper_xrender)( Display*, unsigned long,const XRenderPictFormat*, int);
-extern XRenderPictFormat* (*XRenderFindStandardFormat_dylibloader_wrapper_xrender)( Display*, int);
-extern XIndexValue* (*XRenderQueryPictIndexValues_dylibloader_wrapper_xrender)( Display*,const XRenderPictFormat*, int*);
-extern Picture (*XRenderCreatePicture_dylibloader_wrapper_xrender)( Display*, Drawable,const XRenderPictFormat*, unsigned long,const XRenderPictureAttributes*);
-extern void (*XRenderChangePicture_dylibloader_wrapper_xrender)( Display*, Picture, unsigned long,const XRenderPictureAttributes*);
-extern void (*XRenderSetPictureClipRectangles_dylibloader_wrapper_xrender)( Display*, Picture, int, int,const XRectangle*, int);
-extern void (*XRenderSetPictureClipRegion_dylibloader_wrapper_xrender)( Display*, Picture, Region);
-extern void (*XRenderSetPictureTransform_dylibloader_wrapper_xrender)( Display*, Picture, XTransform*);
-extern void (*XRenderFreePicture_dylibloader_wrapper_xrender)( Display*, Picture);
-extern void (*XRenderComposite_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture, Picture, int, int, int, int, int, int, unsigned int, unsigned int);
-extern GlyphSet (*XRenderCreateGlyphSet_dylibloader_wrapper_xrender)( Display*,const XRenderPictFormat*);
-extern GlyphSet (*XRenderReferenceGlyphSet_dylibloader_wrapper_xrender)( Display*, GlyphSet);
-extern void (*XRenderFreeGlyphSet_dylibloader_wrapper_xrender)( Display*, GlyphSet);
-extern void (*XRenderAddGlyphs_dylibloader_wrapper_xrender)( Display*, GlyphSet,const Glyph*,const XGlyphInfo*, int,const char*, int);
-extern void (*XRenderFreeGlyphs_dylibloader_wrapper_xrender)( Display*, GlyphSet,const Glyph*, int);
-extern void (*XRenderCompositeString8_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const char*, int);
-extern void (*XRenderCompositeString16_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const unsigned short*, int);
-extern void (*XRenderCompositeString32_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, GlyphSet, int, int, int, int,const unsigned int*, int);
-extern void (*XRenderCompositeText8_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt8*, int);
-extern void (*XRenderCompositeText16_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt16*, int);
-extern void (*XRenderCompositeText32_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XGlyphElt32*, int);
-extern void (*XRenderFillRectangle_dylibloader_wrapper_xrender)( Display*, int, Picture,const XRenderColor*, int, int, unsigned int, unsigned int);
-extern void (*XRenderFillRectangles_dylibloader_wrapper_xrender)( Display*, int, Picture,const XRenderColor*,const XRectangle*, int);
-extern void (*XRenderCompositeTrapezoids_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XTrapezoid*, int);
-extern void (*XRenderCompositeTriangles_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XTriangle*, int);
-extern void (*XRenderCompositeTriStrip_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XPointFixed*, int);
-extern void (*XRenderCompositeTriFan_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int,const XPointFixed*, int);
-extern void (*XRenderCompositeDoublePoly_dylibloader_wrapper_xrender)( Display*, int, Picture, Picture,const XRenderPictFormat*, int, int, int, int,const XPointDouble*, int, int);
-extern int (*XRenderParseColor_dylibloader_wrapper_xrender)( Display*, char*, XRenderColor*);
-extern Cursor (*XRenderCreateCursor_dylibloader_wrapper_xrender)( Display*, Picture, unsigned int, unsigned int);
-extern XFilters* (*XRenderQueryFilters_dylibloader_wrapper_xrender)( Display*, Drawable);
-extern void (*XRenderSetPictureFilter_dylibloader_wrapper_xrender)( Display*, Picture,const char*, XFixed*, int);
-extern Cursor (*XRenderCreateAnimCursor_dylibloader_wrapper_xrender)( Display*, int, XAnimCursor*);
-extern void (*XRenderAddTraps_dylibloader_wrapper_xrender)( Display*, Picture, int, int,const XTrap*, int);
-extern Picture (*XRenderCreateSolidFill_dylibloader_wrapper_xrender)( Display*,const XRenderColor*);
-extern Picture (*XRenderCreateLinearGradient_dylibloader_wrapper_xrender)( Display*,const XLinearGradient*,const XFixed*,const XRenderColor*, int);
-extern Picture (*XRenderCreateRadialGradient_dylibloader_wrapper_xrender)( Display*,const XRadialGradient*,const XFixed*,const XRenderColor*, int);
-extern Picture (*XRenderCreateConicalGradient_dylibloader_wrapper_xrender)( Display*,const XConicalGradient*,const XFixed*,const XRenderColor*, int);
+extern int (*XRenderQueryExtension_dylibloader_wrapper_xrender)(Display *, int *, int *);
+extern int (*XRenderQueryVersion_dylibloader_wrapper_xrender)(Display *, int *, int *);
+extern int (*XRenderQueryFormats_dylibloader_wrapper_xrender)(Display *);
+extern int (*XRenderQuerySubpixelOrder_dylibloader_wrapper_xrender)(Display *, int);
+extern int (*XRenderSetSubpixelOrder_dylibloader_wrapper_xrender)(Display *, int, int);
+extern XRenderPictFormat *(*XRenderFindVisualFormat_dylibloader_wrapper_xrender)(Display *, const Visual *);
+extern XRenderPictFormat *(*XRenderFindFormat_dylibloader_wrapper_xrender)(Display *, unsigned long, const XRenderPictFormat *, int);
+extern XRenderPictFormat *(*XRenderFindStandardFormat_dylibloader_wrapper_xrender)(Display *, int);
+extern XIndexValue *(*XRenderQueryPictIndexValues_dylibloader_wrapper_xrender)(Display *, const XRenderPictFormat *, int *);
+extern Picture (*XRenderCreatePicture_dylibloader_wrapper_xrender)(Display *, Drawable, const XRenderPictFormat *, unsigned long, const XRenderPictureAttributes *);
+extern void (*XRenderChangePicture_dylibloader_wrapper_xrender)(Display *, Picture, unsigned long, const XRenderPictureAttributes *);
+extern void (*XRenderSetPictureClipRectangles_dylibloader_wrapper_xrender)(Display *, Picture, int, int, const XRectangle *, int);
+extern void (*XRenderSetPictureClipRegion_dylibloader_wrapper_xrender)(Display *, Picture, Region);
+extern void (*XRenderSetPictureTransform_dylibloader_wrapper_xrender)(Display *, Picture, XTransform *);
+extern void (*XRenderFreePicture_dylibloader_wrapper_xrender)(Display *, Picture);
+extern void (*XRenderComposite_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, Picture, int, int, int, int, int, int, unsigned int, unsigned int);
+extern GlyphSet (*XRenderCreateGlyphSet_dylibloader_wrapper_xrender)(Display *, const XRenderPictFormat *);
+extern GlyphSet (*XRenderReferenceGlyphSet_dylibloader_wrapper_xrender)(Display *, GlyphSet);
+extern void (*XRenderFreeGlyphSet_dylibloader_wrapper_xrender)(Display *, GlyphSet);
+extern void (*XRenderAddGlyphs_dylibloader_wrapper_xrender)(Display *, GlyphSet, const Glyph *, const XGlyphInfo *, int, const char *, int);
+extern void (*XRenderFreeGlyphs_dylibloader_wrapper_xrender)(Display *, GlyphSet, const Glyph *, int);
+extern void (*XRenderCompositeString8_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const char *, int);
+extern void (*XRenderCompositeString16_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const unsigned short *, int);
+extern void (*XRenderCompositeString32_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, GlyphSet, int, int, int, int, const unsigned int *, int);
+extern void (*XRenderCompositeText8_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt8 *, int);
+extern void (*XRenderCompositeText16_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt16 *, int);
+extern void (*XRenderCompositeText32_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XGlyphElt32 *, int);
+extern void (*XRenderFillRectangle_dylibloader_wrapper_xrender)(Display *, int, Picture, const XRenderColor *, int, int, unsigned int, unsigned int);
+extern void (*XRenderFillRectangles_dylibloader_wrapper_xrender)(Display *, int, Picture, const XRenderColor *, const XRectangle *, int);
+extern void (*XRenderCompositeTrapezoids_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XTrapezoid *, int);
+extern void (*XRenderCompositeTriangles_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XTriangle *, int);
+extern void (*XRenderCompositeTriStrip_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XPointFixed *, int);
+extern void (*XRenderCompositeTriFan_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, const XPointFixed *, int);
+extern void (*XRenderCompositeDoublePoly_dylibloader_wrapper_xrender)(Display *, int, Picture, Picture, const XRenderPictFormat *, int, int, int, int, const XPointDouble *, int, int);
+extern int (*XRenderParseColor_dylibloader_wrapper_xrender)(Display *, char *, XRenderColor *);
+extern Cursor (*XRenderCreateCursor_dylibloader_wrapper_xrender)(Display *, Picture, unsigned int, unsigned int);
+extern XFilters *(*XRenderQueryFilters_dylibloader_wrapper_xrender)(Display *, Drawable);
+extern void (*XRenderSetPictureFilter_dylibloader_wrapper_xrender)(Display *, Picture, const char *, XFixed *, int);
+extern Cursor (*XRenderCreateAnimCursor_dylibloader_wrapper_xrender)(Display *, int, XAnimCursor *);
+extern void (*XRenderAddTraps_dylibloader_wrapper_xrender)(Display *, Picture, int, int, const XTrap *, int);
+extern Picture (*XRenderCreateSolidFill_dylibloader_wrapper_xrender)(Display *, const XRenderColor *);
+extern Picture (*XRenderCreateLinearGradient_dylibloader_wrapper_xrender)(Display *, const XLinearGradient *, const XFixed *, const XRenderColor *, int);
+extern Picture (*XRenderCreateRadialGradient_dylibloader_wrapper_xrender)(Display *, const XRadialGradient *, const XFixed *, const XRenderColor *, int);
+extern Picture (*XRenderCreateConicalGradient_dylibloader_wrapper_xrender)(Display *, const XConicalGradient *, const XFixed *, const XRenderColor *, int);
int initialize_xrender(int verbose);
#ifdef __cplusplus
}
diff --git a/platform/macos/SCsub b/platform/macos/SCsub
index 7e807b14cd..f6132ea355 100644
--- a/platform/macos/SCsub
+++ b/platform/macos/SCsub
@@ -27,7 +27,9 @@ def generate_bundle(target, source, env):
target_bin = lipo(bin_dir + "/" + prefix, env.extra_suffix + env.module_version_string)
# Assemble .app bundle and update version info.
- app_dir = Dir("#bin/" + (prefix + env.extra_suffix + env.module_version_string).replace(".", "_") + ".app").abspath
+ app_dir = Dir(
+ "#bin/" + (prefix + env.extra_suffix + env.module_version_string).replace(".", "_") + ".app"
+ ).abspath
templ = Dir("#misc/dist/macos_tools.app").abspath
if os.path.exists(app_dir):
shutil.rmtree(app_dir)
diff --git a/platform/macos/os_macos.h b/platform/macos/os_macos.h
index d7162b12a9..0f9c0c87d4 100644
--- a/platform/macos/os_macos.h
+++ b/platform/macos/os_macos.h
@@ -116,6 +116,8 @@ public:
virtual String get_unique_id() const override;
virtual String get_processor_name() const override;
+ virtual String get_model_name() const override;
+
virtual bool is_sandboxed() const override;
virtual Vector<String> get_granted_permissions() const override;
virtual void revoke_granted_permissions() override;
diff --git a/platform/macos/os_macos.mm b/platform/macos/os_macos.mm
index 8b4c3a5360..ec9d9e18c0 100644
--- a/platform/macos/os_macos.mm
+++ b/platform/macos/os_macos.mm
@@ -69,6 +69,15 @@ void OS_MacOS::initialize() {
initialize_core();
}
+String OS_MacOS::get_model_name() const {
+ char buffer[256];
+ size_t buffer_len = 256;
+ if (sysctlbyname("hw.model", &buffer, &buffer_len, nullptr, 0) == 0 && buffer_len != 0) {
+ return String::utf8(buffer, buffer_len);
+ }
+ return OS_Unix::get_model_name();
+}
+
String OS_MacOS::get_processor_name() const {
char buffer[256];
size_t buffer_len = 256;
diff --git a/platform/web/doc_classes/EditorExportPlatformWeb.xml b/platform/web/doc_classes/EditorExportPlatformWeb.xml
index 755308de9a..955e3a0232 100644
--- a/platform/web/doc_classes/EditorExportPlatformWeb.xml
+++ b/platform/web/doc_classes/EditorExportPlatformWeb.xml
@@ -60,15 +60,15 @@
</member>
<member name="progressive_web_app/icon_144x144" type="String" setter="" getter="">
File path to the smallest icon for this web application. If not defined, defaults to the project icon.
- [b]Note:[/b] If the icon is not 144x144, it will be automatically resized for the final build.
+ [b]Note:[/b] If the icon is not 144×144, it will be automatically resized for the final build.
</member>
<member name="progressive_web_app/icon_180x180" type="String" setter="" getter="">
File path to the small icon for this web application. If not defined, defaults to the project icon.
- [b]Note:[/b] If the icon is not 180x180, it will be automatically resized for the final build.
+ [b]Note:[/b] If the icon is not 180×180, it will be automatically resized for the final build.
</member>
<member name="progressive_web_app/icon_512x512" type="String" setter="" getter="">
- File path to the smallest icon for this web application. If not defined, defaults to the project icon.
- [b]Note:[/b] If the icon is not 512x512, it will be automatically resized for the final build.
+ File path to the largest icon for this web application. If not defined, defaults to the project icon.
+ [b]Note:[/b] If the icon is not 512×512, it will be automatically resized for the final build.
</member>
<member name="progressive_web_app/offline_page" type="String" setter="" getter="">
The page to display, should the server hosting the page not be available. This page is saved in the client's machine.
diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp
index 8376805caa..145ce0dd2a 100644
--- a/platform/web/export/export_plugin.cpp
+++ b/platform/web/export/export_plugin.cpp
@@ -171,6 +171,7 @@ void EditorExportPlatformWeb::_fix_html(Vector<uint8_t> &p_html, const Ref<Edito
replaces["$GODOT_PROJECT_NAME"] = GLOBAL_GET("application/config/name");
replaces["$GODOT_HEAD_INCLUDE"] = head_include + custom_head_include;
replaces["$GODOT_CONFIG"] = str_config;
+ replaces["$GODOT_SPLASH_COLOR"] = "#" + Color(GLOBAL_GET("application/boot_splash/bg_color")).to_html(false);
replaces["$GODOT_SPLASH"] = p_name + ".png";
if (p_preset->get("variant/thread_support")) {
diff --git a/platform/web/js/libs/library_godot_input.js b/platform/web/js/libs/library_godot_input.js
index fe99f55141..1c640eb8f5 100644
--- a/platform/web/js/libs/library_godot_input.js
+++ b/platform/web/js/libs/library_godot_input.js
@@ -40,41 +40,57 @@ const GodotIME = {
$GodotIME: {
ime: null,
active: false,
+ focusTimerIntervalId: -1,
getModifiers: function (evt) {
return (evt.shiftKey + 0) + ((evt.altKey + 0) << 1) + ((evt.ctrlKey + 0) << 2) + ((evt.metaKey + 0) << 3);
},
ime_active: function (active) {
- function focus_timer() {
- GodotIME.active = true;
- GodotIME.ime.focus();
+ function clearFocusTimerInterval() {
+ clearInterval(GodotIME.focusTimerIntervalId);
+ GodotIME.focusTimerIntervalId = -1;
}
- if (GodotIME.ime) {
- if (active) {
- GodotIME.ime.style.display = 'block';
- setInterval(focus_timer, 100);
- } else {
- GodotIME.ime.style.display = 'none';
- GodotConfig.canvas.focus();
- GodotIME.active = false;
+ function focusTimer() {
+ if (GodotIME.ime == null) {
+ clearFocusTimerInterval();
+ return;
}
+ GodotIME.ime.focus();
+ }
+
+ if (GodotIME.focusTimerIntervalId > -1) {
+ clearFocusTimerInterval();
+ }
+
+ if (GodotIME.ime == null) {
+ return;
+ }
+
+ GodotIME.active = active;
+ if (active) {
+ GodotIME.ime.style.display = 'block';
+ GodotIME.focusTimerIntervalId = setInterval(focusTimer, 100);
+ } else {
+ GodotIME.ime.style.display = 'none';
+ GodotConfig.canvas.focus();
}
},
ime_position: function (x, y) {
- if (GodotIME.ime) {
- const canvas = GodotConfig.canvas;
- const rect = canvas.getBoundingClientRect();
- const rw = canvas.width / rect.width;
- const rh = canvas.height / rect.height;
- const clx = (x / rw) + rect.x;
- const cly = (y / rh) + rect.y;
-
- GodotIME.ime.style.left = `${clx}px`;
- GodotIME.ime.style.top = `${cly}px`;
+ if (GodotIME.ime == null) {
+ return;
}
+ const canvas = GodotConfig.canvas;
+ const rect = canvas.getBoundingClientRect();
+ const rw = canvas.width / rect.width;
+ const rh = canvas.height / rect.height;
+ const clx = (x / rw) + rect.x;
+ const cly = (y / rh) + rect.y;
+
+ GodotIME.ime.style.left = `${clx}px`;
+ GodotIME.ime.style.top = `${cly}px`;
},
init: function (ime_cb, key_cb, code, key) {
@@ -86,20 +102,27 @@ const GodotIME = {
evt.preventDefault();
}
function ime_event_cb(event) {
- if (GodotIME.ime) {
- if (event.type === 'compositionstart') {
- ime_cb(0, null);
- GodotIME.ime.innerHTML = '';
- } else if (event.type === 'compositionupdate') {
- const ptr = GodotRuntime.allocString(event.data);
- ime_cb(1, ptr);
- GodotRuntime.free(ptr);
- } else if (event.type === 'compositionend') {
- const ptr = GodotRuntime.allocString(event.data);
- ime_cb(2, ptr);
- GodotRuntime.free(ptr);
- GodotIME.ime.innerHTML = '';
- }
+ if (GodotIME.ime == null) {
+ return;
+ }
+ switch (event.type) {
+ case 'compositionstart':
+ ime_cb(0, null);
+ GodotIME.ime.innerHTML = '';
+ break;
+ case 'compositionupdate': {
+ const ptr = GodotRuntime.allocString(event.data);
+ ime_cb(1, ptr);
+ GodotRuntime.free(ptr);
+ } break;
+ case 'compositionend': {
+ const ptr = GodotRuntime.allocString(event.data);
+ ime_cb(2, ptr);
+ GodotRuntime.free(ptr);
+ GodotIME.ime.innerHTML = '';
+ } break;
+ default:
+ // Do nothing.
}
}
@@ -135,10 +158,15 @@ const GodotIME = {
},
clear: function () {
- if (GodotIME.ime) {
- GodotIME.ime.remove();
- GodotIME.ime = null;
+ if (GodotIME.ime == null) {
+ return;
+ }
+ if (GodotIME.focusTimerIntervalId > -1) {
+ clearInterval(GodotIME.focusTimerIntervalId);
+ GodotIME.focusTimerIntervalId = -1;
}
+ GodotIME.ime.remove();
+ GodotIME.ime = null;
},
},
};
diff --git a/platform/windows/SCsub b/platform/windows/SCsub
index fa846637a7..72ceeae201 100644
--- a/platform/windows/SCsub
+++ b/platform/windows/SCsub
@@ -60,6 +60,9 @@ sources += res_obj
prog = env.add_program("#bin/redot", sources, PROGSUFFIX=env["PROGSUFFIX"])
arrange_program_clean(prog)
+if env.msvc:
+ env.Depends(prog, "godot.natvis")
+
# Build console wrapper app.
if env["windows_subsystem"] == "gui":
env_wrap = env.Clone()
diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis
index fc34ad3cb3..e3a535580f 100644
--- a/platform/windows/godot.natvis
+++ b/platform/windows/godot.natvis
@@ -30,16 +30,6 @@
</Expand>
</Type>
- <Type Name="TypedArray&lt;*&gt;">
- <Expand>
- <Item Name="[size]"> _p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
- <ArrayItems>
- <Size>_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
- <ValuePointer >(Variant *) _p->array._cowdata._ptr</ValuePointer>
- </ArrayItems>
- </Expand>
- </Type>
-
<Type Name="Dictionary">
<Expand>
<Item Name="[size]">_p &amp;&amp; _p->variant_map.head_element ? _p->variant_map.num_elements : 0</Item>
@@ -153,7 +143,7 @@
<Type Name="HashMapElement&lt;*,*&gt;" IncludeView="MapHelper">
<DisplayString>{data.value}</DisplayString>
<Expand>
- <Item Name="[key]" >($T1 *) &amp;data.key</Item>
+ <Item Name="[key]">($T1 *) &amp;data.key</Item>
<Item Name="[value]">($T2 *) &amp;data.value</Item>
</Expand>
</Type>
@@ -285,39 +275,164 @@
</Type>
<Type Name="Vector2">
- <DisplayString>{{{x},{y}}}</DisplayString>
+ <DisplayString>({x,g}, {y,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ </Expand>
+ </Type>
+ <Type Name="Vector2i">
+ <DisplayString>({x}, {y})</DisplayString>
<Expand>
- <Item Name="x">x</Item>
- <Item Name="y">y</Item>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
</Expand>
</Type>
<Type Name="Vector3">
- <DisplayString>{{{x},{y},{z}}}</DisplayString>
+ <DisplayString>({x,g}, {y,g}, {z,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ <Item Name="[z]">z</Item>
+ </Expand>
+ </Type>
+ <Type Name="Vector3i">
+ <DisplayString>({x}, {y}, {z})</DisplayString>
<Expand>
- <Item Name="x">x</Item>
- <Item Name="y">y</Item>
- <Item Name="z">z</Item>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ <Item Name="[z]">z</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Vector4">
+ <DisplayString>({x,g}, {y,g}, {z,g}, {w,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ <Item Name="[z]">z</Item>
+ <Item Name="[w]">w</Item>
+ </Expand>
+ </Type>
+ <Type Name="Vector4i">
+ <DisplayString>({x}, {y}, {z}, {w})</DisplayString>
+ <Expand>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ <Item Name="[z]">z</Item>
+ <Item Name="[w]">w</Item>
</Expand>
</Type>
<Type Name="Quaternion">
- <DisplayString>Quaternion {{{x},{y},{z},{w}}}</DisplayString>
+ <DisplayString>({x,g}, {y,g}, {z,g}, {w,g})</DisplayString>
<Expand>
- <Item Name="x">x</Item>
- <Item Name="y">y</Item>
- <Item Name="z">z</Item>
- <Item Name="w">w</Item>
+ <Item Name="[x]">x</Item>
+ <Item Name="[y]">y</Item>
+ <Item Name="[z]">z</Item>
+ <Item Name="[w]">w</Item>
</Expand>
</Type>
<Type Name="Color">
- <DisplayString>Color {{{r},{g},{b},{a}}}</DisplayString>
+ <DisplayString>({r,g}, {g,g}, {b,g}, {a,g})</DisplayString>
+ <Expand>
+ <Item Name="[red]">r</Item>
+ <Item Name="[green]">g</Item>
+ <Item Name="[blue]">b</Item>
+ <Item Name="[alpha]">a</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Rect2">
+ <DisplayString>[P: {position}, S: {size}]</DisplayString>
+ <Expand>
+ <Item Name="[position]">position,nr</Item>
+ <Item Name="[size]">size,nr</Item>
+ </Expand>
+ </Type>
+ <Type Name="Rect2i">
+ <DisplayString>[P: {position}, S: {size}]</DisplayString>
+ <Expand>
+ <Item Name="[position]">position,nr</Item>
+ <Item Name="[size]">size,nr</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="AABB">
+ <DisplayString>[P: {position}, S: {size}]</DisplayString>
+ <Expand>
+ <Item Name="[position]">position,nr</Item>
+ <Item Name="[size]">size,nr</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Plane">
+ <DisplayString>[N: {normal}, D: {d,g}]</DisplayString>
+ <Expand>
+ <Item Name="[normal]">normal,nr</Item>
+ <Item Name="[d]">d</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Basis">
+ <DisplayString>[X: {rows[0]}, Y: {rows[1]}, Z: {rows[2]}]</DisplayString>
+ <Expand>
+ <Item Name="[x]">rows[0],nr</Item>
+ <Item Name="[y]">rows[1],nr</Item>
+ <Item Name="[z]">rows[2],nr</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Transform2D">
+ <DisplayString>[X: {columns[0]}, Y: {columns[1]}, O: {columns[2]}]</DisplayString>
+ <Expand>
+ <Item Name="[x]">columns[0],nr</Item>
+ <Item Name="[y]">columns[1],nr</Item>
+ <Item Name="[origin]">columns[2],nr</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Transform3D">
+ <!-- Can't call column functions, so just pretend we can via obscene code duplication. -->
+ <DisplayString>[X: ({basis.rows[0].x,g}, {basis.rows[1].x,g}, {basis.rows[2].x,g}), Y: ({basis.rows[0].y,g}, {basis.rows[1].y,g}, {basis.rows[2].y,g}), Z: ({basis.rows[0].z,g}, {basis.rows[1].z,g}, {basis.rows[2].z,g}), O: {origin}]</DisplayString>
+ <Expand>
+ <Synthetic Name="[x]">
+ <DisplayString>({basis.rows[0].x,g}, {basis.rows[1].x,g}, {basis.rows[2].x,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">basis.rows[0].x</Item>
+ <Item Name="[y]">basis.rows[1].x</Item>
+ <Item Name="[z]">basis.rows[2].x</Item>
+ </Expand>
+ </Synthetic>
+ <Synthetic Name="[y]">
+ <DisplayString>({basis.rows[0].y,g}, {basis.rows[1].y,g}, {basis.rows[2].y,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">basis.rows[0].y</Item>
+ <Item Name="[y]">basis.rows[1].y</Item>
+ <Item Name="[z]">basis.rows[2].y</Item>
+ </Expand>
+ </Synthetic>
+ <Synthetic Name="[z]">
+ <DisplayString>({basis.rows[0].z,g}, {basis.rows[1].z,g}, {basis.rows[2].z,g})</DisplayString>
+ <Expand>
+ <Item Name="[x]">basis.rows[0].z</Item>
+ <Item Name="[y]">basis.rows[1].z</Item>
+ <Item Name="[z]">basis.rows[2].z</Item>
+ </Expand>
+ </Synthetic>
+ <Item Name="[origin]">origin,nr</Item>
+ </Expand>
+ </Type>
+
+ <Type Name="Projection">
+ <DisplayString>[X: {columns[0]}, Y: {columns[1]}, Z: {columns[2]}, W: {columns[3]}]</DisplayString>
<Expand>
- <Item Name="red">r</Item>
- <Item Name="green">g</Item>
- <Item Name="blue">b</Item>
- <Item Name="alpha">a</Item>
+ <Item Name="[x]">columns[0],nr</Item>
+ <Item Name="[y]">columns[1],nr</Item>
+ <Item Name="[z]">columns[2],nr</Item>
+ <Item Name="[w]">columns[3],nr</Item>
</Expand>
</Type>
</AutoVisualizer>
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index a3af90c26d..7176acb6c5 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -42,10 +42,10 @@
#include "core/debugger/script_debugger.h"
#include "core/io/marshalls.h"
#include "core/version_generated.gen.h"
-#include "drivers/unix/net_socket_posix.h"
#include "drivers/windows/dir_access_windows.h"
#include "drivers/windows/file_access_windows.h"
#include "drivers/windows/file_access_windows_pipe.h"
+#include "drivers/windows/net_socket_winsock.h"
#include "main/main.h"
#include "servers/audio_server.h"
#include "servers/rendering/rendering_server_default.h"
@@ -158,6 +158,52 @@ void RedirectIOToConsole() {
}
}
+bool OS_Windows::is_using_con_wrapper() const {
+ static String exe_renames[] = {
+ ".console.exe",
+ "_console.exe",
+ " console.exe",
+ "console.exe",
+ String(),
+ };
+
+ bool found_exe = false;
+ bool found_conwrap_exe = false;
+ String exe_name = get_executable_path().to_lower();
+ String exe_dir = exe_name.get_base_dir();
+ String exe_fname = exe_name.get_file().get_basename();
+
+ DWORD pids[256];
+ DWORD count = GetConsoleProcessList(&pids[0], 256);
+ for (DWORD i = 0; i < count; i++) {
+ HANDLE process = OpenProcess(PROCESS_QUERY_LIMITED_INFORMATION, false, pids[i]);
+ if (process != NULL) {
+ WCHAR proc_name[MAX_PATH];
+ DWORD len = MAX_PATH;
+ if (QueryFullProcessImageNameW(process, 0, &proc_name[0], &len)) {
+ String name = String::utf16((const char16_t *)&proc_name[0], len).replace("\\", "/").to_lower();
+ if (name == exe_name) {
+ found_exe = true;
+ }
+ for (int j = 0; !exe_renames[j].is_empty(); j++) {
+ if (name == exe_dir.path_join(exe_fname + exe_renames[j])) {
+ found_conwrap_exe = true;
+ }
+ }
+ }
+ CloseHandle(process);
+ if (found_conwrap_exe && found_exe) {
+ break;
+ }
+ }
+ }
+ if (!found_exe) {
+ return true; // Unable to read console info, assume true.
+ }
+
+ return found_conwrap_exe;
+}
+
BOOL WINAPI HandlerRoutine(_In_ DWORD dwCtrlType) {
if (!EngineDebugger::is_active()) {
return FALSE;
@@ -211,7 +257,7 @@ void OS_Windows::initialize() {
DirAccess::make_default<DirAccessWindows>(DirAccess::ACCESS_USERDATA);
DirAccess::make_default<DirAccessWindows>(DirAccess::ACCESS_FILESYSTEM);
- NetSocketPosix::make_default();
+ NetSocketWinSock::make_default();
// We need to know how often the clock is updated
QueryPerformanceFrequency((LARGE_INTEGER *)&ticks_per_second);
@@ -305,7 +351,7 @@ void OS_Windows::finalize_core() {
timeEndPeriod(1);
memdelete(process_map);
- NetSocketPosix::cleanup();
+ NetSocketWinSock::cleanup();
#ifdef WINDOWS_DEBUG_OUTPUT_ENABLED
remove_error_handler(&error_handlers);
@@ -920,18 +966,10 @@ Dictionary OS_Windows::execute_with_pipe(const String &p_path, const List<String
sa.lpSecurityDescriptor = nullptr;
ERR_FAIL_COND_V(!CreatePipe(&pipe_in[0], &pipe_in[1], &sa, 0), ret);
- if (!SetHandleInformation(pipe_in[1], HANDLE_FLAG_INHERIT, 0)) {
- CLEAN_PIPES
- ERR_FAIL_V(ret);
- }
if (!CreatePipe(&pipe_out[0], &pipe_out[1], &sa, 0)) {
CLEAN_PIPES
ERR_FAIL_V(ret);
}
- if (!SetHandleInformation(pipe_out[0], HANDLE_FLAG_INHERIT, 0)) {
- CLEAN_PIPES
- ERR_FAIL_V(ret);
- }
if (!CreatePipe(&pipe_err[0], &pipe_err[1], &sa, 0)) {
CLEAN_PIPES
ERR_FAIL_V(ret);
@@ -941,16 +979,37 @@ Dictionary OS_Windows::execute_with_pipe(const String &p_path, const List<String
// Create process.
ProcessInfo pi;
ZeroMemory(&pi.si, sizeof(pi.si));
- pi.si.cb = sizeof(pi.si);
+ pi.si.StartupInfo.cb = sizeof(pi.si);
ZeroMemory(&pi.pi, sizeof(pi.pi));
- LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si;
+ LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si.StartupInfo;
- pi.si.dwFlags |= STARTF_USESTDHANDLES;
- pi.si.hStdInput = pipe_in[0];
- pi.si.hStdOutput = pipe_out[1];
- pi.si.hStdError = pipe_err[1];
+ pi.si.StartupInfo.dwFlags |= STARTF_USESTDHANDLES;
+ pi.si.StartupInfo.hStdInput = pipe_in[0];
+ pi.si.StartupInfo.hStdOutput = pipe_out[1];
+ pi.si.StartupInfo.hStdError = pipe_err[1];
- DWORD creation_flags = NORMAL_PRIORITY_CLASS | CREATE_NO_WINDOW;
+ size_t attr_list_size = 0;
+ InitializeProcThreadAttributeList(nullptr, 1, 0, &attr_list_size);
+ pi.si.lpAttributeList = (LPPROC_THREAD_ATTRIBUTE_LIST)alloca(attr_list_size);
+ if (!InitializeProcThreadAttributeList(pi.si.lpAttributeList, 1, 0, &attr_list_size)) {
+ CLEAN_PIPES
+ ERR_FAIL_V(ret);
+ }
+ HANDLE handles_to_inherit[] = { pipe_in[0], pipe_out[1], pipe_err[1] };
+ if (!UpdateProcThreadAttribute(
+ pi.si.lpAttributeList,
+ 0,
+ PROC_THREAD_ATTRIBUTE_HANDLE_LIST,
+ handles_to_inherit,
+ sizeof(handles_to_inherit),
+ nullptr,
+ nullptr)) {
+ CLEAN_PIPES
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
+ ERR_FAIL_V(ret);
+ }
+
+ DWORD creation_flags = NORMAL_PRIORITY_CLASS | CREATE_NO_WINDOW | EXTENDED_STARTUPINFO_PRESENT;
Char16String current_dir_name;
size_t str_len = GetCurrentDirectoryW(0, nullptr);
@@ -966,11 +1025,13 @@ Dictionary OS_Windows::execute_with_pipe(const String &p_path, const List<String
if (!CreateProcessW(nullptr, (LPWSTR)(command.utf16().ptrw()), nullptr, nullptr, true, creation_flags, nullptr, (LPWSTR)current_dir_name.ptr(), si_w, &pi.pi)) {
CLEAN_PIPES
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
ERR_FAIL_V_MSG(ret, "Could not create child process: " + command);
}
CloseHandle(pipe_in[0]);
CloseHandle(pipe_out[1]);
CloseHandle(pipe_err[1]);
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
ProcessID pid = pi.pi.dwProcessId;
process_map_mutex.lock();
@@ -1002,9 +1063,9 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
ProcessInfo pi;
ZeroMemory(&pi.si, sizeof(pi.si));
- pi.si.cb = sizeof(pi.si);
+ pi.si.StartupInfo.cb = sizeof(pi.si);
ZeroMemory(&pi.pi, sizeof(pi.pi));
- LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si;
+ LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si.StartupInfo;
bool inherit_handles = false;
HANDLE pipe[2] = { nullptr, nullptr };
@@ -1016,16 +1077,40 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
sa.lpSecurityDescriptor = nullptr;
ERR_FAIL_COND_V(!CreatePipe(&pipe[0], &pipe[1], &sa, 0), ERR_CANT_FORK);
- ERR_FAIL_COND_V(!SetHandleInformation(pipe[0], HANDLE_FLAG_INHERIT, 0), ERR_CANT_FORK); // Read handle is for host process only and should not be inherited.
- pi.si.dwFlags |= STARTF_USESTDHANDLES;
- pi.si.hStdOutput = pipe[1];
+ pi.si.StartupInfo.dwFlags |= STARTF_USESTDHANDLES;
+ pi.si.StartupInfo.hStdOutput = pipe[1];
if (read_stderr) {
- pi.si.hStdError = pipe[1];
+ pi.si.StartupInfo.hStdError = pipe[1];
+ }
+
+ size_t attr_list_size = 0;
+ InitializeProcThreadAttributeList(nullptr, 1, 0, &attr_list_size);
+ pi.si.lpAttributeList = (LPPROC_THREAD_ATTRIBUTE_LIST)alloca(attr_list_size);
+ if (!InitializeProcThreadAttributeList(pi.si.lpAttributeList, 1, 0, &attr_list_size)) {
+ CloseHandle(pipe[0]); // Cleanup pipe handles.
+ CloseHandle(pipe[1]);
+ ERR_FAIL_V(ERR_CANT_FORK);
+ }
+ if (!UpdateProcThreadAttribute(
+ pi.si.lpAttributeList,
+ 0,
+ PROC_THREAD_ATTRIBUTE_HANDLE_LIST,
+ &pipe[1],
+ sizeof(HANDLE),
+ nullptr,
+ nullptr)) {
+ CloseHandle(pipe[0]); // Cleanup pipe handles.
+ CloseHandle(pipe[1]);
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
+ ERR_FAIL_V(ERR_CANT_FORK);
}
inherit_handles = true;
}
DWORD creation_flags = NORMAL_PRIORITY_CLASS;
+ if (inherit_handles) {
+ creation_flags |= EXTENDED_STARTUPINFO_PRESENT;
+ }
if (p_open_console) {
creation_flags |= CREATE_NEW_CONSOLE;
} else {
@@ -1048,6 +1133,7 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
if (!ret && r_pipe) {
CloseHandle(pipe[0]); // Cleanup pipe handles.
CloseHandle(pipe[1]);
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
}
ERR_FAIL_COND_V_MSG(ret == 0, ERR_CANT_FORK, "Could not create child process: " + command);
@@ -1103,6 +1189,9 @@ Error OS_Windows::execute(const String &p_path, const List<String> &p_arguments,
CloseHandle(pi.pi.hProcess);
CloseHandle(pi.pi.hThread);
+ if (r_pipe) {
+ DeleteProcThreadAttributeList(pi.si.lpAttributeList);
+ }
return OK;
}
@@ -1116,9 +1205,9 @@ Error OS_Windows::create_process(const String &p_path, const List<String> &p_arg
ProcessInfo pi;
ZeroMemory(&pi.si, sizeof(pi.si));
- pi.si.cb = sizeof(pi.si);
+ pi.si.StartupInfo.cb = sizeof(pi.si.StartupInfo);
ZeroMemory(&pi.pi, sizeof(pi.pi));
- LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si;
+ LPSTARTUPINFOW si_w = (LPSTARTUPINFOW)&pi.si.StartupInfo;
DWORD creation_flags = NORMAL_PRIORITY_CLASS;
if (p_open_console) {
@@ -1641,16 +1730,115 @@ void OS_Windows::unset_environment(const String &p_var) const {
SetEnvironmentVariableW((LPCWSTR)(p_var.utf16().get_data()), nullptr); // Null to delete.
}
-String OS_Windows::get_stdin_string() {
- char buff[1024];
+String OS_Windows::get_stdin_string(int64_t p_buffer_size) {
+ if (get_stdin_type() == STD_HANDLE_INVALID) {
+ return String();
+ }
+
+ Vector<uint8_t> data;
+ data.resize(p_buffer_size);
DWORD count = 0;
- if (ReadFile(GetStdHandle(STD_INPUT_HANDLE), buff, 1024, &count, nullptr)) {
- return String::utf8((const char *)buff, count);
+ if (ReadFile(GetStdHandle(STD_INPUT_HANDLE), data.ptrw(), data.size(), &count, nullptr)) {
+ return String::utf8((const char *)data.ptr(), count);
}
return String();
}
+PackedByteArray OS_Windows::get_stdin_buffer(int64_t p_buffer_size) {
+ Vector<uint8_t> data;
+ data.resize(p_buffer_size);
+ DWORD count = 0;
+ if (ReadFile(GetStdHandle(STD_INPUT_HANDLE), data.ptrw(), data.size(), &count, nullptr)) {
+ return data;
+ }
+
+ return PackedByteArray();
+}
+
+OS_Windows::StdHandleType OS_Windows::get_stdin_type() const {
+ HANDLE h = GetStdHandle(STD_INPUT_HANDLE);
+ if (h == 0 || h == INVALID_HANDLE_VALUE) {
+ return STD_HANDLE_INVALID;
+ }
+ DWORD ftype = GetFileType(h);
+ if (ftype == FILE_TYPE_UNKNOWN && GetLastError() != ERROR_SUCCESS) {
+ return STD_HANDLE_UNKNOWN;
+ }
+ ftype &= ~(FILE_TYPE_REMOTE);
+
+ if (ftype == FILE_TYPE_DISK) {
+ return STD_HANDLE_FILE;
+ } else if (ftype == FILE_TYPE_PIPE) {
+ return STD_HANDLE_PIPE;
+ } else {
+ DWORD conmode = 0;
+ BOOL res = GetConsoleMode(h, &conmode);
+ if (!res && (GetLastError() == ERROR_INVALID_HANDLE)) {
+ return STD_HANDLE_UNKNOWN; // Unknown character device.
+ } else {
+#ifndef WINDOWS_SUBSYSTEM_CONSOLE
+ if (!is_using_con_wrapper()) {
+ return STD_HANDLE_INVALID; // Window app can't read stdin input without werapper.
+ }
+#endif
+ return STD_HANDLE_CONSOLE;
+ }
+ }
+}
+
+OS_Windows::StdHandleType OS_Windows::get_stdout_type() const {
+ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
+ if (h == 0 || h == INVALID_HANDLE_VALUE) {
+ return STD_HANDLE_INVALID;
+ }
+ DWORD ftype = GetFileType(h);
+ if (ftype == FILE_TYPE_UNKNOWN && GetLastError() != ERROR_SUCCESS) {
+ return STD_HANDLE_UNKNOWN;
+ }
+ ftype &= ~(FILE_TYPE_REMOTE);
+
+ if (ftype == FILE_TYPE_DISK) {
+ return STD_HANDLE_FILE;
+ } else if (ftype == FILE_TYPE_PIPE) {
+ return STD_HANDLE_PIPE;
+ } else {
+ DWORD conmode = 0;
+ BOOL res = GetConsoleMode(h, &conmode);
+ if (!res && (GetLastError() == ERROR_INVALID_HANDLE)) {
+ return STD_HANDLE_UNKNOWN; // Unknown character device.
+ } else {
+ return STD_HANDLE_CONSOLE;
+ }
+ }
+}
+
+OS_Windows::StdHandleType OS_Windows::get_stderr_type() const {
+ HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
+ if (h == 0 || h == INVALID_HANDLE_VALUE) {
+ return STD_HANDLE_INVALID;
+ }
+ DWORD ftype = GetFileType(h);
+ if (ftype == FILE_TYPE_UNKNOWN && GetLastError() != ERROR_SUCCESS) {
+ return STD_HANDLE_UNKNOWN;
+ }
+ ftype &= ~(FILE_TYPE_REMOTE);
+
+ if (ftype == FILE_TYPE_DISK) {
+ return STD_HANDLE_FILE;
+ } else if (ftype == FILE_TYPE_PIPE) {
+ return STD_HANDLE_PIPE;
+ } else {
+ DWORD conmode = 0;
+ BOOL res = GetConsoleMode(h, &conmode);
+ if (!res && (GetLastError() == ERROR_INVALID_HANDLE)) {
+ return STD_HANDLE_UNKNOWN; // Unknown character device.
+ } else {
+ return STD_HANDLE_CONSOLE;
+ }
+ }
+}
+
Error OS_Windows::shell_open(const String &p_uri) {
INT_PTR ret = (INT_PTR)ShellExecuteW(nullptr, nullptr, (LPCWSTR)(p_uri.utf16().get_data()), nullptr, nullptr, SW_SHOWNORMAL);
if (ret > 32) {
@@ -1742,6 +1930,34 @@ String OS_Windows::get_locale() const {
return "en";
}
+String OS_Windows::get_model_name() const {
+ HKEY hkey;
+ if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"Hardware\\Description\\System\\BIOS", 0, KEY_QUERY_VALUE, &hkey) != ERROR_SUCCESS) {
+ return OS::get_model_name();
+ }
+
+ String sys_name;
+ String board_name;
+ WCHAR buffer[256];
+ DWORD buffer_len = 256;
+ DWORD vtype = REG_SZ;
+ if (RegQueryValueExW(hkey, L"SystemProductName", nullptr, &vtype, (LPBYTE)buffer, &buffer_len) == ERROR_SUCCESS && buffer_len != 0) {
+ sys_name = String::utf16((const char16_t *)buffer, buffer_len).strip_edges();
+ }
+ buffer_len = 256;
+ if (RegQueryValueExW(hkey, L"BaseBoardProduct", nullptr, &vtype, (LPBYTE)buffer, &buffer_len) == ERROR_SUCCESS && buffer_len != 0) {
+ board_name = String::utf16((const char16_t *)buffer, buffer_len).strip_edges();
+ }
+ RegCloseKey(hkey);
+ if (!sys_name.is_empty() && sys_name.to_lower() != "system product name") {
+ return sys_name;
+ }
+ if (!board_name.is_empty() && board_name.to_lower() != "base board product") {
+ return board_name;
+ }
+ return OS::get_model_name();
+}
+
String OS_Windows::get_processor_name() const {
const String id = "Hardware\\Description\\System\\CentralProcessor\\0";
diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h
index ebfb214893..c51cb78d57 100644
--- a/platform/windows/os_windows.h
+++ b/platform/windows/os_windows.h
@@ -136,6 +136,8 @@ class OS_Windows : public OS {
DWRITE_FONT_WEIGHT _weight_to_dw(int p_weight) const;
DWRITE_FONT_STRETCH _stretch_to_dw(int p_stretch) const;
+ bool is_using_con_wrapper() const;
+
// functions used by main to initialize/deinitialize the OS
protected:
virtual void initialize() override;
@@ -145,12 +147,17 @@ protected:
virtual void finalize() override;
virtual void finalize_core() override;
- virtual String get_stdin_string() override;
+
+ virtual String get_stdin_string(int64_t p_buffer_size = 1024) override;
+ virtual PackedByteArray get_stdin_buffer(int64_t p_buffer_size = 1024) override;
+ virtual StdHandleType get_stdin_type() const override;
+ virtual StdHandleType get_stdout_type() const override;
+ virtual StdHandleType get_stderr_type() const override;
String _quote_command_line_argument(const String &p_text) const;
struct ProcessInfo {
- STARTUPINFO si;
+ STARTUPINFOEX si;
PROCESS_INFORMATION pi;
mutable bool is_running = true;
mutable int exit_code = -1;
@@ -212,6 +219,8 @@ public:
virtual String get_processor_name() const override;
+ virtual String get_model_name() const override;
+
virtual uint64_t get_embedded_pck_offset() const override;
virtual String get_config_path() const override;
diff --git a/platform/windows/windows_terminal_logger.cpp b/platform/windows/windows_terminal_logger.cpp
index 7be5e494d4..fc5e1ac475 100644
--- a/platform/windows/windows_terminal_logger.cpp
+++ b/platform/windows/windows_terminal_logger.cpp
@@ -32,6 +32,8 @@
#include "windows_terminal_logger.h"
+#include "core/os/os.h"
+
#ifdef WINDOWS_ENABLED
#include <stdio.h>
@@ -80,7 +82,7 @@ void WindowsTerminalLogger::log_error(const char *p_function, const char *p_file
}
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
- if (!hCon || hCon == INVALID_HANDLE_VALUE) {
+ if (OS::get_singleton()->get_stdout_type() != OS::STD_HANDLE_CONSOLE || !hCon || hCon == INVALID_HANDLE_VALUE) {
StdLogger::log_error(p_function, p_file, p_line, p_code, p_rationale, p_type);
} else {
CONSOLE_SCREEN_BUFFER_INFO sbi; //original