commit
This commit is contained in:
parent
f21b3ea172
commit
5edffaaa4c
@ -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}");
|
||||||
|
Loading…
Reference in New Issue
Block a user