Skip to content

rc_client_set_userdata

Jamiras edited this page May 30, 2023 · 1 revision

Associates external data to the rc_client_t object that can be retrieved via rc_client_get_userdata in the various callbacks.

Syntax

void rc_client_set_userdata(
    rc_client_t* client,
    void* userdata
);

Parameters

client

The rc_client_t to modify.

userdata

A pointer to custom data that can be retrieved in callbacks.

Remarks

The rc_client_t only holds the pointer reference. The caller is responsible for ensuring the data is scoped such that it will be available when the callback is called. The caller is also responsible for allocating/deallocating the data if necessary.

Minimum version: 11.0.0

See also

rc_client_get_userdata

rcheevos

rc_client

Integration guide

client

user

game

processing

rc_client_raintegration

Integration guide

rc_runtime

rhash

rapi

common

user

runtime

info

Clone this wiki locally