MCPcopy Create free account
hub / github.com/ValveSoftware/Proton / queue_cdecl_func_callback

Function queue_cdecl_func_callback

lsteamclient/unixlib.cpp:155–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void queue_cdecl_func_callback( w_cdecl_func func, void *data, uint32_t data_size )
156{
157 uint32_t size = data_size;
158 struct callback_entry *entry;
159
160 size += sizeof(struct callback_entry);
161 if (!(entry = (struct callback_entry *)calloc( 1, size ))) return;
162
163 entry->callback.type = CALL_CDECL_FUNC_DATA;
164 size -= offsetof( struct callback_entry, callback );
165 entry->callback.size = size;
166
167 entry->callback.call_cdecl_func_data.pFunc = func;
168 memcpy( (char *)entry->callback.call_cdecl_func_data.data, data, data_size );
169
170 pthread_mutex_lock( &callbacks_lock );
171 list_add_tail( &callbacks, &entry->entry );
172 pthread_mutex_unlock( &callbacks_lock );
173}
174
175u_FSteamNetworkingSocketsDebugOutput manual_convert_SetDebugOutputFunction_pfnFunc( w_FSteamNetworkingSocketsDebugOutput w_func )
176{

Callers 2

u_callbackMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected