1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include "sd-bus.h" 5 6 #include "manager.h" 7 8 int bus_send_pending_reload_message(Manager *m); 9 10 int bus_init_private(Manager *m); 11 int bus_init_api(Manager *m); 12 int bus_init_system(Manager *m); 13 14 void bus_done_private(Manager *m); 15 void bus_done_api(Manager *m); 16 void bus_done_system(Manager *m); 17 void bus_done(Manager *m); 18 19 int bus_fdset_add_all(Manager *m, FDSet *fds); 20 21 void bus_track_serialize(sd_bus_track *t, FILE *f, const char *prefix); 22 int bus_track_coldplug(Manager *m, sd_bus_track **t, bool recursive, char **l); 23 24 int bus_foreach_bus(Manager *m, sd_bus_track *subscribed2, int (*send_message)(sd_bus *bus, void *userdata), void *userdata); 25 26 int bus_verify_manage_units_async(Manager *m, sd_bus_message *call, sd_bus_error *error); 27 int bus_verify_manage_unit_files_async(Manager *m, sd_bus_message *call, sd_bus_error *error); 28 int bus_verify_reload_daemon_async(Manager *m, sd_bus_message *call, sd_bus_error *error); 29 int bus_verify_set_environment_async(Manager *m, sd_bus_message *call, sd_bus_error *error); 30 31 int bus_forward_agent_released(Manager *m, const char *path); 32 33 uint64_t manager_bus_n_queued_write(Manager *m); 34 35 void dump_bus_properties(FILE *f); 36 int bus_manager_introspect_implementations(FILE *out, const char *pattern); 37