| 1 |
/* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 |
|
| 3 |
#include "varlink-io.systemd.MuteConsole.h" |
| 4 |
|
| 5 |
static SD_VARLINK_DEFINE_METHOD_FULL( |
| 6 |
Mute, |
| 7 |
SD_VARLINK_REQUIRES_MORE, |
| 8 |
SD_VARLINK_FIELD_COMMENT("Whether to mute the kernel's output to the console (defaults to true)."), |
| 9 |
SD_VARLINK_DEFINE_INPUT(kernel, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE), |
| 10 |
SD_VARLINK_FIELD_COMMENT("Whether to mute PID1's output to the console (defaults to true)."), |
| 11 |
SD_VARLINK_DEFINE_INPUT(pid1, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE)); |
| 12 |
|
| 13 |
SD_VARLINK_DEFINE_INTERFACE( |
| 14 |
io_systemd_MuteConsole, |
| 15 |
"io.systemd.MuteConsole", |
| 16 |
SD_VARLINK_INTERFACE_COMMENT("API for temporarily muting noisy output to the main kernel console"), |
| 17 |
SD_VARLINK_SYMBOL_COMMENT("Mute kernel and PID 1 output to the main kernel console"), |
| 18 |
&vl_method_Mute); |