|
1 |
| -// This file is part of tacd, the LXA TAC system daemon |
2 |
| -// Copyright (C) 2022 Pengutronix e.K. |
3 |
| -// |
4 |
| -// This program is free software; you can redistribute it and/or modify |
5 |
| -// it under the terms of the GNU General Public License as published by |
6 |
| -// the Free Software Foundation; either version 2 of the License, or |
7 |
| -// (at your option) any later version. |
8 |
| -// |
9 |
| -// This program is distributed in the hope that it will be useful, |
10 |
| -// but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 |
| -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 |
| -// GNU General Public License for more details. |
13 |
| -// |
14 |
| -// You should have received a copy of the GNU General Public License along |
15 |
| -// with this program; if not, write to the Free Software Foundation, Inc., |
16 |
| -// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 1 | +//! This code was generated by `zbus-xmlgen` `3.1.1` from DBus introspection data. |
| 2 | +//! |
| 3 | +//! By running `zbus-xmlgen --system org.freedesktop.hostname1 /org/freedesktop/hostname1` |
| 4 | +//! on the LXA TAC. |
17 | 5 |
|
18 | 6 | use zbus::dbus_proxy;
|
19 | 7 |
|
20 | 8 | #[dbus_proxy(
|
21 |
| - default_service = "org.freedesktop.hostname1", |
22 | 9 | interface = "org.freedesktop.hostname1",
|
| 10 | + default_service = "org.freedesktop.hostname1", |
23 | 11 | default_path = "/org/freedesktop/hostname1"
|
24 | 12 | )]
|
25 | 13 | trait Hostname {
|
| 14 | + /// Describe method |
| 15 | + fn describe(&self) -> zbus::Result<String>; |
| 16 | + |
| 17 | + /// GetHardwareSerial method |
| 18 | + fn get_hardware_serial(&self) -> zbus::Result<String>; |
| 19 | + |
| 20 | + /// GetProductUUID method |
| 21 | + #[dbus_proxy(name = "GetProductUUID")] |
| 22 | + fn get_product_uuid(&self, interactive: bool) -> zbus::Result<Vec<u8>>; |
| 23 | + |
| 24 | + /// SetChassis method |
| 25 | + fn set_chassis(&self, chassis: &str, interactive: bool) -> zbus::Result<()>; |
| 26 | + |
| 27 | + /// SetDeployment method |
| 28 | + fn set_deployment(&self, deployment: &str, interactive: bool) -> zbus::Result<()>; |
| 29 | + |
| 30 | + /// SetHostname method |
| 31 | + fn set_hostname(&self, hostname: &str, interactive: bool) -> zbus::Result<()>; |
| 32 | + |
| 33 | + /// SetIconName method |
| 34 | + fn set_icon_name(&self, icon: &str, interactive: bool) -> zbus::Result<()>; |
| 35 | + |
| 36 | + /// SetLocation method |
| 37 | + fn set_location(&self, location: &str, interactive: bool) -> zbus::Result<()>; |
| 38 | + |
| 39 | + /// SetPrettyHostname method |
| 40 | + fn set_pretty_hostname(&self, hostname: &str, interactive: bool) -> zbus::Result<()>; |
| 41 | + |
| 42 | + /// SetStaticHostname method |
| 43 | + fn set_static_hostname(&self, hostname: &str, interactive: bool) -> zbus::Result<()>; |
| 44 | + |
| 45 | + /// Chassis property |
| 46 | + #[dbus_proxy(property)] |
| 47 | + fn chassis(&self) -> zbus::Result<String>; |
| 48 | + |
| 49 | + /// DefaultHostname property |
| 50 | + #[dbus_proxy(property)] |
| 51 | + fn default_hostname(&self) -> zbus::Result<String>; |
| 52 | + |
| 53 | + /// Deployment property |
| 54 | + #[dbus_proxy(property)] |
| 55 | + fn deployment(&self) -> zbus::Result<String>; |
| 56 | + |
| 57 | + /// FirmwareVersion property |
| 58 | + #[dbus_proxy(property)] |
| 59 | + fn firmware_version(&self) -> zbus::Result<String>; |
| 60 | + |
| 61 | + /// HardwareModel property |
| 62 | + #[dbus_proxy(property)] |
| 63 | + fn hardware_model(&self) -> zbus::Result<String>; |
| 64 | + |
| 65 | + /// HardwareVendor property |
| 66 | + #[dbus_proxy(property)] |
| 67 | + fn hardware_vendor(&self) -> zbus::Result<String>; |
| 68 | + |
| 69 | + /// HomeURL property |
| 70 | + #[dbus_proxy(property, name = "HomeURL")] |
| 71 | + fn home_url(&self) -> zbus::Result<String>; |
| 72 | + |
| 73 | + /// Hostname property |
26 | 74 | #[dbus_proxy(property)]
|
27 | 75 | fn hostname(&self) -> zbus::Result<String>;
|
| 76 | + |
| 77 | + /// HostnameSource property |
| 78 | + #[dbus_proxy(property)] |
| 79 | + fn hostname_source(&self) -> zbus::Result<String>; |
| 80 | + |
| 81 | + /// IconName property |
| 82 | + #[dbus_proxy(property)] |
| 83 | + fn icon_name(&self) -> zbus::Result<String>; |
| 84 | + |
| 85 | + /// KernelName property |
| 86 | + #[dbus_proxy(property)] |
| 87 | + fn kernel_name(&self) -> zbus::Result<String>; |
| 88 | + |
| 89 | + /// KernelRelease property |
| 90 | + #[dbus_proxy(property)] |
| 91 | + fn kernel_release(&self) -> zbus::Result<String>; |
| 92 | + |
| 93 | + /// KernelVersion property |
| 94 | + #[dbus_proxy(property)] |
| 95 | + fn kernel_version(&self) -> zbus::Result<String>; |
| 96 | + |
| 97 | + /// Location property |
| 98 | + #[dbus_proxy(property)] |
| 99 | + fn location(&self) -> zbus::Result<String>; |
| 100 | + |
| 101 | + /// OperatingSystemCPEName property |
| 102 | + #[dbus_proxy(property, name = "OperatingSystemCPEName")] |
| 103 | + fn operating_system_cpename(&self) -> zbus::Result<String>; |
| 104 | + |
| 105 | + /// OperatingSystemPrettyName property |
| 106 | + #[dbus_proxy(property)] |
| 107 | + fn operating_system_pretty_name(&self) -> zbus::Result<String>; |
| 108 | + |
| 109 | + /// PrettyHostname property |
| 110 | + #[dbus_proxy(property)] |
| 111 | + fn pretty_hostname(&self) -> zbus::Result<String>; |
| 112 | + |
| 113 | + /// StaticHostname property |
| 114 | + #[dbus_proxy(property)] |
| 115 | + fn static_hostname(&self) -> zbus::Result<String>; |
28 | 116 | }
|
0 commit comments