yev_set_user_data()#
yev_set_user_data() associates a user-defined data pointer with a given event, allowing custom data storage and retrieval.
Prototype
int yev_set_user_data(
yev_event_h yev_event,
void *user_data
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The event handle to which the user data will be associated. |
|
|
A pointer to the user-defined data to be stored in the event. |
Return Value
Returns 0 on success, or -1 if an error occurs.
Notes
The user data set with yev_set_user_data() can be retrieved using yev_get_user_data().
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples