mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-05-02 07:34:30 +02:00
lsteamclient: Drop unused vtable callback argument.
This commit is contained in:
parent
c52283497f
commit
c059a702ae
@ -21,7 +21,7 @@ extern "C"
|
||||
#endif /* __cplusplus */
|
||||
|
||||
struct w_iface;
|
||||
extern void queue_vtable_callback( struct w_iface *w_iface, enum callback_type type, uint64_t arg0, uint64_t arg1, uint64_t arg2 );
|
||||
extern void queue_vtable_callback( struct w_iface *w_iface, enum callback_type type, uint64_t arg0, uint64_t arg1 );
|
||||
extern void queue_vtable_callback_0_server_responded( struct w_iface *w_iface, gameserveritem_t_105 *server );
|
||||
extern void queue_vtable_callback_0_add_player_to_list( struct w_iface *w_iface, const char *pchName, int nScore, float flTimePlayed );
|
||||
extern void queue_vtable_callback_0_rules_responded( struct w_iface *w_iface, const char *pchRule, const char *pchValue );
|
||||
|
@ -647,17 +647,17 @@ struct SteamMatchmakingServerListResponse_099u : u_ISteamMatchmakingServerListRe
|
||||
|
||||
void SteamMatchmakingServerListResponse_099u::ServerResponded( int32_t iServer )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_0_1, (intptr_t)iServer, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_0_1, (intptr_t)iServer, 0 );
|
||||
}
|
||||
|
||||
void SteamMatchmakingServerListResponse_099u::ServerFailedToRespond( int32_t iServer )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_1, (intptr_t)iServer, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_1, (intptr_t)iServer, 0 );
|
||||
}
|
||||
|
||||
void SteamMatchmakingServerListResponse_099u::RefreshComplete( uint32_t response )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_1, (intptr_t)response, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_1, (intptr_t)response, 0 );
|
||||
TRACE( "RefreshComplete this %p, w_iface %p.\n", this, this->w_iface );
|
||||
}
|
||||
|
||||
@ -701,17 +701,17 @@ class callback_obj_tracker<SteamMatchmakingServerListResponse_106> SteamMatchmak
|
||||
|
||||
void SteamMatchmakingServerListResponse_106::ServerResponded( void *hRequest, int32_t iServer )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_0_2, (intptr_t)hRequest, (intptr_t)iServer, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_0_2, (intptr_t)hRequest, (intptr_t)iServer );
|
||||
}
|
||||
|
||||
void SteamMatchmakingServerListResponse_106::ServerFailedToRespond( void *hRequest, int32_t iServer )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_2, (intptr_t)hRequest, (intptr_t)iServer, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_2, (intptr_t)hRequest, (intptr_t)iServer );
|
||||
}
|
||||
|
||||
void SteamMatchmakingServerListResponse_106::RefreshComplete( void *hRequest, uint32_t response )
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_2, (intptr_t)hRequest, (intptr_t)response, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_2, (intptr_t)hRequest, (intptr_t)response );
|
||||
TRACE( "RefreshComplete this %p, w_iface %p.\n", this, this->w_iface );
|
||||
}
|
||||
|
||||
@ -744,7 +744,7 @@ void SteamMatchmakingPingResponse::ServerResponded( gameserveritem_t_105 *server
|
||||
|
||||
void SteamMatchmakingPingResponse::ServerFailedToRespond(void)
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0 );
|
||||
TRACE("Deleting this %p, w_iface %p.\n", this, this->w_iface);
|
||||
free_callback_obj(this);
|
||||
}
|
||||
@ -776,14 +776,14 @@ void SteamMatchmakingPlayersResponse::AddPlayerToList(const char *pchName, int n
|
||||
|
||||
void SteamMatchmakingPlayersResponse::PlayersFailedToRespond(void)
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0 );
|
||||
TRACE("Deleting this %p, w_iface %p.\n", this, this->w_iface);
|
||||
free_callback_obj(this);
|
||||
}
|
||||
|
||||
void SteamMatchmakingPlayersResponse::PlayersRefreshComplete(void)
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_0, 0, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_0, 0, 0 );
|
||||
TRACE("Deleting this %p, w_iface %p.\n", this, this->w_iface);
|
||||
free_callback_obj(this);
|
||||
}
|
||||
@ -815,14 +815,14 @@ void SteamMatchmakingRulesResponse::RulesResponded(const char *pchRule, const ch
|
||||
|
||||
void SteamMatchmakingRulesResponse::RulesFailedToRespond(void)
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_1_0, 0, 0 );
|
||||
TRACE("Deleting this %p, w_iface %p.\n", this, this->w_iface);
|
||||
free_callback_obj(this);
|
||||
}
|
||||
|
||||
void SteamMatchmakingRulesResponse::RulesRefreshComplete(void)
|
||||
{
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_0, 0, 0, 0 );
|
||||
queue_vtable_callback( this->w_iface, CALL_IFACE_VTABLE_2_0, 0, 0 );
|
||||
TRACE("Deleting this %p, w_iface %p.\n", this, this->w_iface);
|
||||
free_callback_obj(this);
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ static int callback_len_utow( int cb_id, int u_len )
|
||||
return find_first_callback_def_by_id( cb_id )->w_callback_len;
|
||||
}
|
||||
|
||||
void queue_vtable_callback( struct w_iface *w_iface, enum callback_type type, uint64_t arg0, uint64_t arg1, uint64_t arg2 )
|
||||
void queue_vtable_callback( struct w_iface *w_iface, enum callback_type type, uint64_t arg0, uint64_t arg1 )
|
||||
{
|
||||
struct callback_entry *entry;
|
||||
uint32_t size = 0;
|
||||
@ -58,7 +58,6 @@ void queue_vtable_callback( struct w_iface *w_iface, enum callback_type type, ui
|
||||
entry->callback.call_iface_vtable.iface = w_iface;
|
||||
entry->callback.call_iface_vtable.arg0 = arg0;
|
||||
entry->callback.call_iface_vtable.arg1 = arg1;
|
||||
entry->callback.call_iface_vtable.arg2 = arg2;
|
||||
|
||||
pthread_mutex_lock( &callbacks_lock );
|
||||
list_add_tail( &callbacks, &entry->entry );
|
||||
|
@ -89,7 +89,6 @@ struct callback
|
||||
struct w_iface *iface;
|
||||
uint64_t arg0;
|
||||
uint64_t arg1;
|
||||
uint64_t arg2;
|
||||
} call_iface_vtable;
|
||||
|
||||
struct
|
||||
|
Loading…
x
Reference in New Issue
Block a user