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       These APIs are implemented as a shared library, which can be compiled
37       and linked to with the libsystemd pkg-config(1) file.
38

SEE ALSO

40       systemd(1), sd-bus(3)
41
42
43
44systemd 253                                                 SD_BUS_CAN_SEND(3)
Impressum