1SD_EVENT_SOURCE_GET_EVENT(3)sd_event_source_get_evenStD_EVENT_SOURCE_GET_EVENT(3)
2
3
4

NAME

6       sd_event_source_get_event - Retrieve the event loop of an event source
7

SYNOPSIS

9       #include <systemd/sd-event.h>
10
11       sd_event* sd_event_source_get_event(sd_event_source *source);
12

DESCRIPTION

14       sd_event_source_get_event() may be used to retrieve the event loop
15       object the event source object specified as source is associated with.
16       The event loop object is specified when creating an event source object
17       with calls such as sd_event_add_io(3) or sd_event_add_time(3).
18

RETURN VALUE

20       On success, sd_event_source_get_event() returns the associated event
21       loop object. On failure, it returns NULL.
22

NOTES

24       Functions described here are available as a shared library, which can
25       be compiled against and linked to with the libsystemd pkg-config(1)
26       file.
27
28       The code described here uses getenv(3), which is declared to be not
29       multi-thread-safe. This means that the code calling the functions
30       described here must not call setenv(3) from a parallel thread. It is
31       recommended to only do calls to setenv() from an early phase of the
32       program when no other threads have been started.
33

SEE ALSO

35       sd-event(3), sd_event_add_io(3), sd_event_add_time(3),
36       sd_event_add_signal(3), sd_event_add_child(3), sd_event_add_inotify(3),
37       sd_event_add_defer(3), sd_event_source_set_userdata(3)
38
39
40
41systemd 254                                       SD_EVENT_SOURCE_GET_EVENT(3)
Impressum