]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/machine/machine-dbus.h
catalog: don't say "systemd" when we mean "system"
[thirdparty/systemd.git] / src / machine / machine-dbus.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
003dffde
LP
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright 2013 Lennart Poettering
8
9 systemd is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Lesser General Public License as published by
11 the Free Software Foundation; either version 2.1 of the License, or
12 (at your option) any later version.
13
14 systemd is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public License
20 along with systemd; If not, see <http://www.gnu.org/licenses/>.
21***/
22
23#include "sd-bus.h"
003dffde 24
66cb2fde
LP
25#include "machine.h"
26
003dffde
LP
27extern const sd_bus_vtable machine_vtable[];
28
29char *machine_bus_path(Machine *s);
30int machine_object_find(sd_bus *bus, const char *path, const char *interface, void *userdata, void **found, sd_bus_error *error);
31int machine_node_enumerator(sd_bus *bus, const char *path, void *userdata, char ***nodes, sd_bus_error *error);
32
19070062
LP
33int bus_machine_method_terminate(sd_bus_message *message, void *userdata, sd_bus_error *error);
34int bus_machine_method_kill(sd_bus_message *message, void *userdata, sd_bus_error *error);
35int bus_machine_method_get_addresses(sd_bus_message *message, void *userdata, sd_bus_error *error);
36int bus_machine_method_get_os_release(sd_bus_message *message, void *userdata, sd_bus_error *error);
37int bus_machine_method_open_pty(sd_bus_message *message, void *userdata, sd_bus_error *error);
38int bus_machine_method_open_login(sd_bus_message *message, void *userdata, sd_bus_error *error);
49af9e13 39int bus_machine_method_open_shell(sd_bus_message *message, void *userdata, sd_bus_error *error);
19070062
LP
40int bus_machine_method_bind_mount(sd_bus_message *message, void *userdata, sd_bus_error *error);
41int bus_machine_method_copy(sd_bus_message *message, void *userdata, sd_bus_error *error);
ae203207 42int bus_machine_method_open_root_directory(sd_bus_message *message, void *userdata, sd_bus_error *error);
3401419b 43int bus_machine_method_get_uid_shift(sd_bus_message *message, void *userdata, sd_bus_error *error);
003dffde
LP
44
45int machine_send_signal(Machine *m, bool new_machine);
46int machine_send_create_reply(Machine *m, sd_bus_error *error);
9153b02b
LP
47
48int bus_reply_pair_array(sd_bus_message *m, char **l);