Other Alias
sd_event_source_set_userdataSYNOPSIS
#include <systemd/sd-event.h>
-
void* sd_event_source_set_userdata(sd_event_source *source, void *userdata);
- void* sd_event_source_get_userdata(sd_event_source *source);
DESCRIPTION
sd_event_source_set_userdata()
sd_event_source_get_userdata() may be used to query the current user data pointer assigned to the event source object source.
RETURN VALUE
On success, sd_event_source_set_userdata() and sd_event_source_get_userdata() return the previously set user data pointer. On failure, they return NULL.
NOTES
These APIs are implemented as a shared library, which can be compiled and linked to with the libsystemd pkg-config(1) file.