diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2023-06-14 01:25:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-13 19:25:30 +0200 |
| commit | e0dc494e71eacffc3a53ab59335298795752c740 (patch) | |
| tree | d41bb982d3efec0d81637f4750371d4ac24f24c4 /src/wrapped/generated | |
| parent | 4110956ddaf3c58a1e8e50aa7adba2ed43e3a6b7 (diff) | |
| download | box64-e0dc494e71eacffc3a53ab59335298795752c740.tar.gz box64-e0dc494e71eacffc3a53ab59335298795752c740.zip | |
[WRAPPER] Rework on libharfbuzz wrapper (#836)
* Rework of libharfbuzz, part 1 * Rework of libharfbuzz, part 2 * Rework of libharfbuzz, part 3 * Rework of libharfbuzz, part 4 * Rework of libharfbuzz, part 5 * Fixed typo * Fixed typo * Rework of libharfbuzz, part 6 * Rework of libharfbuzz, part 7 * Done
Diffstat (limited to 'src/wrapped/generated')
| -rw-r--r-- | src/wrapped/generated/functions_list.txt | 55 | ||||
| -rw-r--r-- | src/wrapped/generated/wrappedlibharfbuzztypes.h | 56 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.c | 2 | ||||
| -rw-r--r-- | src/wrapped/generated/wrapper.h | 1 |
4 files changed, 113 insertions, 1 deletions
diff --git a/src/wrapped/generated/functions_list.txt b/src/wrapped/generated/functions_list.txt index 9d5b7bb0..e4ff0b86 100644 --- a/src/wrapped/generated/functions_list.txt +++ b/src/wrapped/generated/functions_list.txt @@ -1831,6 +1831,7 @@ #() iFEpIppp #() iFEpuppp #() iFEpUppp +#() iFEppppi #() iFEppppp #() iFiiiiip #() iFiiiipp @@ -3938,6 +3939,60 @@ wrappedlibglx: - glXGetProcAddress - glXGetProcAddressARB wrappedlibharfbuzz: +- vFp: + - hb_draw_funcs_destroy + - hb_font_funcs_destroy +- pFp: + - hb_unicode_funcs_reference +- vFppp: + - hb_font_set_funcs_data +- pFppp: + - hb_face_create_for_tables +- vFpppp: + - hb_buffer_set_message_func + - hb_draw_funcs_set_close_path_func + - hb_draw_funcs_set_cubic_to_func + - hb_draw_funcs_set_line_to_func + - hb_draw_funcs_set_move_to_func + - hb_draw_funcs_set_quadratic_to_func + - hb_font_funcs_set_font_h_extents_func + - hb_font_funcs_set_font_v_extents_func + - hb_font_funcs_set_glyph_contour_point_func + - hb_font_funcs_set_glyph_extents_func + - hb_font_funcs_set_glyph_from_name_func + - hb_font_funcs_set_glyph_func + - hb_font_funcs_set_glyph_h_advance_func + - hb_font_funcs_set_glyph_h_advances_func + - hb_font_funcs_set_glyph_h_kerning_func + - hb_font_funcs_set_glyph_h_origin_func + - hb_font_funcs_set_glyph_name_func + - hb_font_funcs_set_glyph_shape_func + - hb_font_funcs_set_glyph_v_advance_func + - hb_font_funcs_set_glyph_v_advances_func + - hb_font_funcs_set_glyph_v_kerning_func + - hb_font_funcs_set_glyph_v_origin_func + - hb_font_funcs_set_nominal_glyph_func + - hb_font_funcs_set_nominal_glyphs_func + - hb_font_funcs_set_variation_glyph_func + - hb_font_set_funcs + - hb_unicode_funcs_set_combining_class_func + - hb_unicode_funcs_set_compose_func + - hb_unicode_funcs_set_decompose_compatibility_func + - hb_unicode_funcs_set_decompose_func + - hb_unicode_funcs_set_eastasian_width_func + - hb_unicode_funcs_set_general_category_func + - hb_unicode_funcs_set_mirroring_func + - hb_unicode_funcs_set_script_func +- iFppppi: + - hb_blob_set_user_data + - hb_buffer_set_user_data + - hb_face_set_user_data + - hb_font_funcs_set_user_data + - hb_font_set_user_data + - hb_unicode_funcs_set_user_data +- pFpuupp: + - hb_blob_create + - hb_blob_create_or_fail wrappedlibibus: - vFpippp: - ibus_bus_current_input_context_async diff --git a/src/wrapped/generated/wrappedlibharfbuzztypes.h b/src/wrapped/generated/wrappedlibharfbuzztypes.h index c3c430d0..250c9c15 100644 --- a/src/wrapped/generated/wrappedlibharfbuzztypes.h +++ b/src/wrapped/generated/wrappedlibharfbuzztypes.h @@ -11,7 +11,61 @@ #define ADDED_FUNCTIONS() #endif +typedef void (*vFp_t)(void*); +typedef void* (*pFp_t)(void*); +typedef void (*vFppp_t)(void*, void*, void*); +typedef void* (*pFppp_t)(void*, void*, void*); +typedef void (*vFpppp_t)(void*, void*, void*, void*); +typedef int32_t (*iFppppi_t)(void*, void*, void*, void*, int32_t); +typedef void* (*pFpuupp_t)(void*, uint32_t, uint32_t, void*, void*); -#define SUPER() ADDED_FUNCTIONS() +#define SUPER() ADDED_FUNCTIONS() \ + GO(hb_draw_funcs_destroy, vFp_t) \ + GO(hb_font_funcs_destroy, vFp_t) \ + GO(hb_unicode_funcs_reference, pFp_t) \ + GO(hb_font_set_funcs_data, vFppp_t) \ + GO(hb_face_create_for_tables, pFppp_t) \ + GO(hb_buffer_set_message_func, vFpppp_t) \ + GO(hb_draw_funcs_set_close_path_func, vFpppp_t) \ + GO(hb_draw_funcs_set_cubic_to_func, vFpppp_t) \ + GO(hb_draw_funcs_set_line_to_func, vFpppp_t) \ + GO(hb_draw_funcs_set_move_to_func, vFpppp_t) \ + GO(hb_draw_funcs_set_quadratic_to_func, vFpppp_t) \ + GO(hb_font_funcs_set_font_h_extents_func, vFpppp_t) \ + GO(hb_font_funcs_set_font_v_extents_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_contour_point_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_extents_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_from_name_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_h_advance_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_h_advances_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_h_kerning_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_h_origin_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_name_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_shape_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_v_advance_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_v_advances_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_v_kerning_func, vFpppp_t) \ + GO(hb_font_funcs_set_glyph_v_origin_func, vFpppp_t) \ + GO(hb_font_funcs_set_nominal_glyph_func, vFpppp_t) \ + GO(hb_font_funcs_set_nominal_glyphs_func, vFpppp_t) \ + GO(hb_font_funcs_set_variation_glyph_func, vFpppp_t) \ + GO(hb_font_set_funcs, vFpppp_t) \ + GO(hb_unicode_funcs_set_combining_class_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_compose_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_decompose_compatibility_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_decompose_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_eastasian_width_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_general_category_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_mirroring_func, vFpppp_t) \ + GO(hb_unicode_funcs_set_script_func, vFpppp_t) \ + GO(hb_blob_set_user_data, iFppppi_t) \ + GO(hb_buffer_set_user_data, iFppppi_t) \ + GO(hb_face_set_user_data, iFppppi_t) \ + GO(hb_font_funcs_set_user_data, iFppppi_t) \ + GO(hb_font_set_user_data, iFppppi_t) \ + GO(hb_unicode_funcs_set_user_data, iFppppi_t) \ + GO(hb_blob_create, pFpuupp_t) \ + GO(hb_blob_create_or_fail, pFpuupp_t) #endif // __wrappedlibharfbuzzTYPES_H_ diff --git a/src/wrapped/generated/wrapper.c b/src/wrapped/generated/wrapper.c index 75c5a9da..c652f42c 100644 --- a/src/wrapped/generated/wrapper.c +++ b/src/wrapped/generated/wrapper.c @@ -1867,6 +1867,7 @@ typedef int32_t (*iFEpippi_t)(x64emu_t*, void*, int32_t, void*, void*, int32_t); typedef int32_t (*iFEpIppp_t)(x64emu_t*, void*, int64_t, void*, void*, void*); typedef int32_t (*iFEpuppp_t)(x64emu_t*, void*, uint32_t, void*, void*, void*); typedef int32_t (*iFEpUppp_t)(x64emu_t*, void*, uint64_t, void*, void*, void*); +typedef int32_t (*iFEppppi_t)(x64emu_t*, void*, void*, void*, void*, int32_t); typedef int32_t (*iFEppppp_t)(x64emu_t*, void*, void*, void*, void*, void*); typedef int32_t (*iFiiiiip_t)(int32_t, int32_t, int32_t, int32_t, int32_t, void*); typedef int32_t (*iFiiiipp_t)(int32_t, int32_t, int32_t, int32_t, void*, void*); @@ -4684,6 +4685,7 @@ void iFEpippi(x64emu_t *emu, uintptr_t fcn) { iFEpippi_t fn = (iFEpippi_t)fcn; R void iFEpIppp(x64emu_t *emu, uintptr_t fcn) { iFEpIppp_t fn = (iFEpIppp_t)fcn; R_RAX=(int32_t)fn(emu, (void*)R_RDI, (int64_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } void iFEpuppp(x64emu_t *emu, uintptr_t fcn) { iFEpuppp_t fn = (iFEpuppp_t)fcn; R_RAX=(int32_t)fn(emu, (void*)R_RDI, (uint32_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } void iFEpUppp(x64emu_t *emu, uintptr_t fcn) { iFEpUppp_t fn = (iFEpUppp_t)fcn; R_RAX=(int32_t)fn(emu, (void*)R_RDI, (uint64_t)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } +void iFEppppi(x64emu_t *emu, uintptr_t fcn) { iFEppppi_t fn = (iFEppppi_t)fcn; R_RAX=(int32_t)fn(emu, (void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (int32_t)R_R8); } void iFEppppp(x64emu_t *emu, uintptr_t fcn) { iFEppppp_t fn = (iFEppppp_t)fcn; R_RAX=(int32_t)fn(emu, (void*)R_RDI, (void*)R_RSI, (void*)R_RDX, (void*)R_RCX, (void*)R_R8); } void iFiiiiip(x64emu_t *emu, uintptr_t fcn) { iFiiiiip_t fn = (iFiiiiip_t)fcn; R_RAX=(int32_t)fn((int32_t)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX, (int32_t)R_R8, (void*)R_R9); } void iFiiiipp(x64emu_t *emu, uintptr_t fcn) { iFiiiipp_t fn = (iFiiiipp_t)fcn; R_RAX=(int32_t)fn((int32_t)R_RDI, (int32_t)R_RSI, (int32_t)R_RDX, (int32_t)R_RCX, (void*)R_R8, (void*)R_R9); } diff --git a/src/wrapped/generated/wrapper.h b/src/wrapped/generated/wrapper.h index 3d13ace0..f0e08c35 100644 --- a/src/wrapped/generated/wrapper.h +++ b/src/wrapped/generated/wrapper.h @@ -1868,6 +1868,7 @@ void iFEpippi(x64emu_t *emu, uintptr_t fnc); void iFEpIppp(x64emu_t *emu, uintptr_t fnc); void iFEpuppp(x64emu_t *emu, uintptr_t fnc); void iFEpUppp(x64emu_t *emu, uintptr_t fnc); +void iFEppppi(x64emu_t *emu, uintptr_t fnc); void iFEppppp(x64emu_t *emu, uintptr_t fnc); void iFiiiiip(x64emu_t *emu, uintptr_t fnc); void iFiiiipp(x64emu_t *emu, uintptr_t fnc); |