1SD_BUS_CAN_SEND(3)              sd_bus_can_send             SD_BUS_CAN_SEND(3)
2
3
4

NAME

6       sd_bus_can_send - Check which types can be sent over a bus object
7

SYNOPSIS

9       #include <systemd/sd-bus.h>
10
11       void sd_bus_can_send(sd_bus *bus, char type);
12

DESCRIPTION

14       sd_bus_can_send() is mostly used for checking if file descriptor
15       passing is available on the given bus.  type can be any of the
16       SD_BUS_TYPE constants.
17

RETURN VALUE

19       On failure, sd_bus_can_send() returns a negative errno-style error
20       code. If values of the given type can be sent over the given bus, it
21       returns a positive integer. Otherwise, it returns zero.
22
23   Errors
24       Returned errors may indicate the following problems:
25
26       -ENOPKG
27           The bus object bus could not be resolved.
28
29       -ENOTCONN
30           The input parameter bus is NULL or the bus is not connected.
31
32       -ECHILD
33           The bus object bus was created in a different process.
34

NOTES

36       Functions described here are available as a shared library, which can
37       be compiled against and linked to with the libsystemd pkg-config(1)
38       file.
39
40       The code described here uses getenv(3), which is declared to be not
41       multi-thread-safe. This means that the code calling the functions
42       described here must not call setenv(3) from a parallel thread. It is
43       recommended to only do calls to setenv() from an early phase of the
44       program when no other threads have been started.
45

SEE ALSO

47       systemd(1), sd-bus(3)
48
49
50
51systemd 254                                                 SD_BUS_CAN_SEND(3)
Impressum