webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Store custom user data within a SRTP session. More...
Functions | |
void | srtp_set_user_data (srtp_t ctx, void *data) |
srtp_set_user_data() stores the given pointer into the SRTP session for later retrieval. More... | |
void * | srtp_get_user_data (srtp_t ctx) |
srtp_get_user_data() retrieves the pointer to the custom data previously stored with srtp_set_user_data(). More... | |
Store custom user data within a SRTP session.
srtp_get_user_data() retrieves the pointer to the custom data previously stored with srtp_set_user_data().
This function is mostly useful for retrieving data associated to a SRTP session when an event fires. The user can then get such a custom data by calling this function with the session field of the srtp_event_data_t struct as argument.
ctx | is the srtp_t context in which the given data pointer was stored. |
srtp_set_user_data() stores the given pointer into the SRTP session for later retrieval.
ctx | is the srtp_t context in which the given data pointer is stored. |
data | is a pointer to the custom information (struct, function, etc) associated with the SRTP session. |