Used wrapperhelper on wrapped pulseaudio

This commit is contained in:
ptitSeb 2023-04-24 17:53:36 +02:00
parent 009ffd609d
commit b53b71a8ad
4 changed files with 24 additions and 34 deletions

View File

@ -217,7 +217,6 @@
#() uFui
#() uFuu
#() uFup
#() uFUp
#() uFpw
#() uFpi
#() uFpC
@ -229,7 +228,6 @@
#() uFpp
#() UFEp
#() UFuu
#() UFUp
#() UFpi
#() UFpp
#() fFEp

View File

@ -253,7 +253,6 @@ typedef uint32_t (*uFip_t)(int32_t, void*);
typedef uint32_t (*uFui_t)(uint32_t, int32_t);
typedef uint32_t (*uFuu_t)(uint32_t, uint32_t);
typedef uint32_t (*uFup_t)(uint32_t, void*);
typedef uint32_t (*uFUp_t)(uint64_t, void*);
typedef uint32_t (*uFpw_t)(void*, int16_t);
typedef uint32_t (*uFpi_t)(void*, int32_t);
typedef uint32_t (*uFpC_t)(void*, uint8_t);
@ -265,7 +264,6 @@ typedef uint32_t (*uFpL_t)(void*, uintptr_t);
typedef uint32_t (*uFpp_t)(void*, void*);
typedef uint64_t (*UFEp_t)(x64emu_t*, void*);
typedef uint64_t (*UFuu_t)(uint32_t, uint32_t);
typedef uint64_t (*UFUp_t)(uint64_t, void*);
typedef uint64_t (*UFpi_t)(void*, int32_t);
typedef uint64_t (*UFpp_t)(void*, void*);
typedef float (*fFEp_t)(x64emu_t*, void*);
@ -2944,7 +2942,6 @@ void uFip(x64emu_t *emu, uintptr_t fcn) { uFip_t fn = (uFip_t)fcn; R_RAX=(uint32
void uFui(x64emu_t *emu, uintptr_t fcn) { uFui_t fn = (uFui_t)fcn; R_RAX=(uint32_t)fn((uint32_t)R_RDI, (int32_t)R_RSI); }
void uFuu(x64emu_t *emu, uintptr_t fcn) { uFuu_t fn = (uFuu_t)fcn; R_RAX=(uint32_t)fn((uint32_t)R_RDI, (uint32_t)R_RSI); }
void uFup(x64emu_t *emu, uintptr_t fcn) { uFup_t fn = (uFup_t)fcn; R_RAX=(uint32_t)fn((uint32_t)R_RDI, (void*)R_RSI); }
void uFUp(x64emu_t *emu, uintptr_t fcn) { uFUp_t fn = (uFUp_t)fcn; R_RAX=(uint32_t)fn((uint64_t)R_RDI, (void*)R_RSI); }
void uFpw(x64emu_t *emu, uintptr_t fcn) { uFpw_t fn = (uFpw_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int16_t)R_RSI); }
void uFpi(x64emu_t *emu, uintptr_t fcn) { uFpi_t fn = (uFpi_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (int32_t)R_RSI); }
void uFpC(x64emu_t *emu, uintptr_t fcn) { uFpC_t fn = (uFpC_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (uint8_t)R_RSI); }
@ -2956,7 +2953,6 @@ void uFpL(x64emu_t *emu, uintptr_t fcn) { uFpL_t fn = (uFpL_t)fcn; R_RAX=(uint32
void uFpp(x64emu_t *emu, uintptr_t fcn) { uFpp_t fn = (uFpp_t)fcn; R_RAX=(uint32_t)fn((void*)R_RDI, (void*)R_RSI); }
void UFEp(x64emu_t *emu, uintptr_t fcn) { UFEp_t fn = (UFEp_t)fcn; R_RAX=fn(emu, (void*)R_RDI); }
void UFuu(x64emu_t *emu, uintptr_t fcn) { UFuu_t fn = (UFuu_t)fcn; R_RAX=fn((uint32_t)R_RDI, (uint32_t)R_RSI); }
void UFUp(x64emu_t *emu, uintptr_t fcn) { UFUp_t fn = (UFUp_t)fcn; R_RAX=fn((uint64_t)R_RDI, (void*)R_RSI); }
void UFpi(x64emu_t *emu, uintptr_t fcn) { UFpi_t fn = (UFpi_t)fcn; R_RAX=fn((void*)R_RDI, (int32_t)R_RSI); }
void UFpp(x64emu_t *emu, uintptr_t fcn) { UFpp_t fn = (UFpp_t)fcn; R_RAX=fn((void*)R_RDI, (void*)R_RSI); }
void fFEp(x64emu_t *emu, uintptr_t fcn) { fFEp_t fn = (fFEp_t)fcn; emu->xmm[0].f[0]=fn(emu, (void*)R_RDI); }
@ -5618,7 +5614,6 @@ int isSimpleWrapper(wrapper_t fun) {
if (fun == &uFui) return 1;
if (fun == &uFuu) return 1;
if (fun == &uFup) return 1;
if (fun == &uFUp) return 1;
if (fun == &uFpw) return 1;
if (fun == &uFpi) return 1;
if (fun == &uFpC) return 1;
@ -5629,7 +5624,6 @@ int isSimpleWrapper(wrapper_t fun) {
if (fun == &uFpL) return 1;
if (fun == &uFpp) return 1;
if (fun == &UFuu) return 1;
if (fun == &UFUp) return 1;
if (fun == &UFpi) return 1;
if (fun == &UFpp) return 1;
if (fun == &fFif) return -2;

View File

@ -254,7 +254,6 @@ void uFip(x64emu_t *emu, uintptr_t fnc);
void uFui(x64emu_t *emu, uintptr_t fnc);
void uFuu(x64emu_t *emu, uintptr_t fnc);
void uFup(x64emu_t *emu, uintptr_t fnc);
void uFUp(x64emu_t *emu, uintptr_t fnc);
void uFpw(x64emu_t *emu, uintptr_t fnc);
void uFpi(x64emu_t *emu, uintptr_t fnc);
void uFpC(x64emu_t *emu, uintptr_t fnc);
@ -266,7 +265,6 @@ void uFpL(x64emu_t *emu, uintptr_t fnc);
void uFpp(x64emu_t *emu, uintptr_t fnc);
void UFEp(x64emu_t *emu, uintptr_t fnc);
void UFuu(x64emu_t *emu, uintptr_t fnc);
void UFUp(x64emu_t *emu, uintptr_t fnc);
void UFpi(x64emu_t *emu, uintptr_t fnc);
void UFpp(x64emu_t *emu, uintptr_t fnc);
void fFEp(x64emu_t *emu, uintptr_t fnc);

View File

@ -6,18 +6,18 @@ GO(pa_ascii_filter, pFp)
GO(pa_ascii_valid, pFp)
GO(pa_bytes_per_second, LFp)
GO(pa_bytes_snprint, pFpLu)
GO(pa_bytes_to_usec, UFUp)
GO(pa_bytes_to_usec, LFLp)
GO(pa_channel_map_can_balance, iFp)
GO(pa_channel_map_can_fade, iFp)
GO(pa_channel_map_compatible, iFpp)
GO(pa_channel_map_equal, iFpp)
GO(pa_channel_map_init, pFp)
GO(pa_channel_map_init_auto, pFpui)
GO(pa_channel_map_init_extend, pFpui)
GO(pa_channel_map_init_extend, pFpuu)
GO(pa_channel_map_init_mono, pFp)
GO(pa_channel_map_init_stereo, pFp)
GO(pa_channel_map_parse, pFpp)
GO(pa_channel_map_snprint, pFpup)
GO(pa_channel_map_snprint, pFpLp)
GO(pa_channel_map_superset, iFpp)
GO(pa_channel_map_to_name, pFp)
GO(pa_channel_map_to_pretty_name, pFp)
@ -58,7 +58,7 @@ GOM(pa_context_get_source_info_by_name, pFEpppp)
GOM(pa_context_get_source_info_list, pFEppp)
GOM(pa_context_get_source_output_info, pFEpupp)
GOM(pa_context_get_source_output_info_list, pFEppp)
GO(pa_context_get_state, iFp)
GO(pa_context_get_state, uFp)
GO(pa_context_is_local, iFp)
GO(pa_context_is_pending, iFp)
//GO(pa_context_kill_client,
@ -158,22 +158,22 @@ GO(pa_mainloop_quit, vFpi)
GO(pa_mainloop_run, iFpp)
GOM(pa_mainloop_set_poll_func, vFEppp) //B is typedef int(*pa_poll_func) (struct pollfd *ufds, unsigned long nfds, int timeout, void *userdata)
GO(pa_mainloop_wakeup, vFp)
//GO(pa_msleep,
GO(pa_msleep, iFL)
GO(pa_operation_cancel, vFp)
GO(pa_operation_get_state, iFp)
GO(pa_operation_get_state, uFp)
GO(pa_operation_ref, pFp)
GO(pa_operation_unref, vFp)
GO(pa_parse_sample_format, iFp)
GO(pa_path_get_filename, pFp)
//GO(pa_proplist_clear,
//GO(pa_proplist_contains,
//GO(pa_proplist_copy,
GO(pa_proplist_clear, vFp)
GO(pa_proplist_contains, iFpp)
GO(pa_proplist_copy, pFp)
GO(pa_proplist_free, vFp)
//GO(pa_proplist_from_string,
//GO(pa_proplist_get,
GO(pa_proplist_from_string, pFp)
GO(pa_proplist_get, iFpppp)
GO(pa_proplist_gets, pFpp)
//GO(pa_proplist_isempty,
//GO(pa_proplist_iterate,
GO(pa_proplist_isempty, iFp)
GO(pa_proplist_iterate, pFpp)
GO(pa_proplist_new, pFv)
GO(pa_proplist_set, iFpppL)
GOM(pa_proplist_setf, iFEpppV)
@ -183,10 +183,10 @@ GO(pa_proplist_to_string, pFp)
GO(pa_proplist_to_string_sep, pFpp)
GO(pa_proplist_unset, iFpp)
GO(pa_proplist_unset_many, iFpp)
GO(pa_proplist_update, vFpip)
GO(pa_proplist_update, vFpup)
GO(pa_sample_format_to_string, pFi)
GO(pa_sample_size, LFp)
GO(pa_sample_size_of_format, LFp)
GO(pa_sample_size_of_format, LFi)
GO(pa_sample_spec_equal, iFpp)
GO(pa_sample_spec_init, pFp)
GO(pa_sample_spec_snprint, pFpLp)
@ -196,8 +196,8 @@ GO(pa_signal_free, vFp)
GOM(pa_signal_init, iFEp)
GOM(pa_signal_new, pFEipp)
GOM(pa_signal_set_destroy, vFEpp)
GO(pa_stream_connect_playback, iFpppipp)
GO(pa_stream_connect_record, iFpppi)
GO(pa_stream_connect_playback, iFpppupp)
GO(pa_stream_connect_record, iFpppu)
GO(pa_stream_connect_upload, iFpL)
GOM(pa_stream_cork, pFEpipp)
GO(pa_stream_disconnect, iFp)
@ -214,7 +214,7 @@ GO(pa_stream_get_index, uFp)
GO(pa_stream_get_latency, iFppp)
GO(pa_stream_get_monitor_stream, uFp)
GO(pa_stream_get_sample_spec, pFp)
GO(pa_stream_get_state, iFp)
GO(pa_stream_get_state, uFp)
GO(pa_stream_get_time, iFpp)
GO(pa_stream_get_timing_info, pFp)
GO(pa_stream_is_corked, iFp)
@ -255,7 +255,7 @@ GO(pa_sw_volume_divide, uFuu)
GO(pa_sw_volume_from_dB, uFd)
GO(pa_sw_volume_from_linear, uFd)
GO(pa_sw_volume_multiply, uFuu)
GO(pa_sw_volume_snprint_dB, pFpuu)
GO(pa_sw_volume_snprint_dB, pFpLu)
GO(pa_sw_volume_to_dB, dFu)
GO(pa_sw_volume_to_linear, dFu)
GO(pa_threaded_mainloop_accept, vFp)
@ -273,11 +273,11 @@ GO(pa_threaded_mainloop_wait, vFp)
GO(pa_timeval_add, pFpU)
GO(pa_timeval_age, UFp)
GO(pa_timeval_cmp, iFpp)
GO(pa_timeval_diff, UFpp)
GO(pa_timeval_load, UFp)
GO(pa_timeval_store, pFpU)
GO(pa_timeval_diff, LFpp)
GO(pa_timeval_load, LFp)
GO(pa_timeval_store, pFpL)
GO(pa_timeval_sub, pFpU)
GO(pa_usec_to_bytes, uFUp)
GO(pa_usec_to_bytes, LFLp)
GO(pa_utf8_filter, pFp)
GO(pa_utf8_to_locale, pFp)
GO(pa_utf8_valid, pFp)
@ -294,4 +294,4 @@ GO(pa_stream_begin_write, iFppp) // 0.9.16+
GO(pa_stream_cancel_write, iFp) // 0.9.16+
GO(dummy_io_new, pFpiipp) // dumy function to create Wrapper
GO(dummy_io_new2, vFppiip) // and another one
GO(dummy_io_new2, vFppiip) // and another one