This commit is contained in:
Candifloss 2024-09-18 16:55:08 +05:30
parent f21b3ea172
commit 5edffaaa4c

View File

@ -24,8 +24,7 @@ async fn main() -> Result<()> {
let member_name = member.as_str(); let member_name = member.as_str();
match member_name { match member_name {
"GetServerInformation" => { "GetServerInformation" => {
// Respond with server information // Respond with server information: (name, vendor, version, dbus_spec_version)
// (name, vendor, version, dbus_spec_version)
let response = (SERVER_NAME, VENDOR, VERSION, SPEC_VERSION); let response = (SERVER_NAME, VENDOR, VERSION, SPEC_VERSION);
connection.reply(&msg, &response).await?; connection.reply(&msg, &response).await?;
println!("Request received: {member}\n\tName: {SERVER_NAME}, Vendor: {VENDOR}, Version: {VERSION}, DBus spec version: {SPEC_VERSION}"); println!("Request received: {member}\n\tName: {SERVER_NAME}, Vendor: {VENDOR}, Version: {VERSION}, DBus spec version: {SPEC_VERSION}");