1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3 
4 #include "sd-bus.h"
5 
6 #include "bus-util.h"
7 #include "machine.h"
8 
9 extern const BusObjectImplementation machine_object;
10 
11 char *machine_bus_path(Machine *s);
12 
13 int bus_machine_method_unregister(sd_bus_message *message, void *userdata, sd_bus_error *error);
14 int bus_machine_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error);
15 int bus_machine_method_kill(sd_bus_message *message, void *userdata, sd_bus_error *error);
16 int bus_machine_method_get_addresses(sd_bus_message *message, void *userdata, sd_bus_error *error);
17 int bus_machine_method_get_os_release(sd_bus_message *message, void *userdata, sd_bus_error *error);
18 int bus_machine_method_open_pty(sd_bus_message *message, void *userdata, sd_bus_error *error);
19 int bus_machine_method_open_login(sd_bus_message *message, void *userdata, sd_bus_error *error);
20 int bus_machine_method_open_shell(sd_bus_message *message, void *userdata, sd_bus_error *error);
21 int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bus_error *error);
22 int bus_machine_method_copy(sd_bus_message *message, void *userdata, sd_bus_error *error);
23 int bus_machine_method_open_root_directory(sd_bus_message *message, void *userdata, sd_bus_error *error);
24 int bus_machine_method_get_uid_shift(sd_bus_message *message, void *userdata, sd_bus_error *error);
25 
26 int machine_send_signal(Machine *m, bool new_machine);
27 int machine_send_create_reply(Machine *m, sd_bus_error *error);
28