mirror of
https://github.com/ValveSoftware/Proton
synced 2025-08-31 14:45:23 +00:00
lsteamclient: Use unixlib interface for C API functions.
CW-Bug-Id: #22729
This commit is contained in:
committed by
Arkadiusz Hiler
parent
4e8556ae62
commit
cf89fdf018
@@ -200,6 +200,23 @@ MANUAL_STRUCTS = [
|
||||
"SteamNetworkingMessage_t"
|
||||
]
|
||||
|
||||
UNIX_FUNCS = [
|
||||
'steamclient_init',
|
||||
'steamclient_next_callback',
|
||||
'steamclient_CreateInterface',
|
||||
'steamclient_Steam_GetAPICallResult',
|
||||
'steamclient_Steam_BGetCallback',
|
||||
'steamclient_callback_message_receive',
|
||||
'steamclient_Steam_FreeLastCallback',
|
||||
'steamclient_Steam_ReleaseThreadLocalMemory',
|
||||
'steamclient_Steam_IsKnownInterface',
|
||||
'steamclient_Steam_NotifyMissingInterface',
|
||||
'steamclient_networking_messages_receive_144',
|
||||
'steamclient_networking_messages_receive_147',
|
||||
'steamclient_networking_messages_receive_153a',
|
||||
'steamclient_networking_message_release_147',
|
||||
'steamclient_networking_message_release_153a',
|
||||
]
|
||||
|
||||
MANUAL_METHODS = {
|
||||
#TODO: 001 005 007
|
||||
@@ -1497,6 +1514,8 @@ with open(u"unixlib_generated.h", "w") as file:
|
||||
|
||||
out(u'enum unix_funcs\n')
|
||||
out(u'{\n')
|
||||
for func in UNIX_FUNCS:
|
||||
out(f' unix_{func},\n')
|
||||
for klass, method in all_methods:
|
||||
sdkver = klass._sdkver
|
||||
if type(method) is Destructor:
|
||||
@@ -1518,6 +1537,8 @@ with open('unixlib_generated.cpp', 'w') as file:
|
||||
|
||||
out(u'extern "C" const unixlib_entry_t __wine_unix_call_funcs[] =\n')
|
||||
out(u'{\n')
|
||||
for func in UNIX_FUNCS:
|
||||
out(f' {func},\n')
|
||||
for klass, method in all_methods:
|
||||
sdkver = klass._sdkver
|
||||
if type(method) is Destructor:
|
||||
|
Reference in New Issue
Block a user