]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/shared/varlink-io.systemd.c
hwdb: Add mapping for Xiaomi Mipad 2 bottom bezel capacitive buttons
[thirdparty/systemd.git] / src / shared / varlink-io.systemd.c
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2
3 #include "varlink-io.systemd.h"
4
5 /* These are local errors that never cross the wire, and are our own invention */
6 static VARLINK_DEFINE_ERROR(Disconnected);
7 static VARLINK_DEFINE_ERROR(TimedOut);
8 static VARLINK_DEFINE_ERROR(Protocol);
9
10 /* This one we invented, and use for generically propagating system errors (errno) to clients */
11 static VARLINK_DEFINE_ERROR(
12 System,
13 VARLINK_DEFINE_FIELD(errno, VARLINK_INT, 0));
14
15 VARLINK_DEFINE_INTERFACE(
16 io_systemd,
17 "io.systemd",
18 &vl_error_Disconnected,
19 &vl_error_TimedOut,
20 &vl_error_Protocol,
21 &vl_error_System);