1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include "sd-bus.h" 5 6 void bus_socket_setup(sd_bus *b); 7 8 int bus_socket_connect(sd_bus *b); 9 int bus_socket_exec(sd_bus *b); 10 int bus_socket_take_fd(sd_bus *b); 11 int bus_socket_start_auth(sd_bus *b); 12 13 int bus_socket_write_message(sd_bus *bus, sd_bus_message *m, size_t *idx); 14 int bus_socket_read_message(sd_bus *bus); 15 16 int bus_socket_process_opening(sd_bus *b); 17 int bus_socket_process_authenticating(sd_bus *b); 18 int bus_socket_process_watch_bind(sd_bus *b); 19 20 bool bus_socket_auth_needs_write(sd_bus *b); 21