HALF ECHO LEARN / REFERENCE COLLECTION
v262.2src/shared/varlink-io.systemd.MuteConsole.c
Git blob: 2500e2cfa059b4dc3e54f1021b999e8b9d3abac2
Lines 1–19 of 19
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#include "varlink-io.systemd.MuteConsole.h"
static SD_VARLINK_DEFINE_METHOD_FULL(
Mute,
SD_VARLINK_REQUIRES_MORE,
SD_VARLINK_FIELD_COMMENT("Whether to mute the kernel's output to the console (defaults to true)."),
SD_VARLINK_DEFINE_INPUT(kernel, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE),
SD_VARLINK_FIELD_COMMENT("Whether to mute PID1's output to the console (defaults to true)."),
SD_VARLINK_DEFINE_INPUT(pid1, SD_VARLINK_BOOL, SD_VARLINK_NULLABLE));
SD_VARLINK_DEFINE_INTERFACE(
io_systemd_MuteConsole,
"io.systemd.MuteConsole",
SD_VARLINK_INTERFACE_COMMENT("API for temporarily muting noisy output to the main kernel console"),
SD_VARLINK_SYMBOL_COMMENT("Mute kernel and PID 1 output to the main kernel console"),
&vl_method_Mute);