| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
#pragma once |
| 3 |
|
| 4 |
#include "shared-forward.h" |
| 5 |
#include "nspawn-settings.h" |
| 6 |
|
| 7 |
typedef enum AllocateScopeFlags { |
| 8 |
ALLOCATE_SCOPE_ALLOW_PIDFD = 1 << 0, |
| 9 |
} AllocateScopeFlags; |
| 10 |
|
| 11 |
int allocate_scope( |
| 12 |
sd_bus *bus, |
| 13 |
const char *machine_name, |
| 14 |
const PidRef *pid, |
| 15 |
const char *slice, |
| 16 |
CustomMount *mounts, unsigned n_mounts, |
| 17 |
int kill_signal, |
| 18 |
char **properties, |
| 19 |
sd_bus_message *properties_message, |
| 20 |
StartMode start_mode, |
| 21 |
AllocateScopeFlags flags); |
| 22 |
int terminate_scope(sd_bus *bus, const char *machine_name); |