From fd6e54d1a007bc56a6ebe2a020a58565ba6a4413 Mon Sep 17 00:00:00 2001 From: Nick Owens Date: Sun, 15 Sep 2024 00:05:52 -0700 Subject: [PATCH] introspect: add Peer to introspection without this, there's no Peer interface in the introspection data, even though the interface is already internally handled by this package. --- introspect/introspect.go | 16 ++++++++++++++++ introspect/introspectable.go | 26 +++++++++++++++++++++----- 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/introspect/introspect.go b/introspect/introspect.go index 8ee61055..a81f8459 100644 --- a/introspect/introspect.go +++ b/introspect/introspect.go @@ -17,6 +17,22 @@ var IntrospectData = Interface{ }, } +// PeerData is the introspection data for the org.freedesktop.DBus.Peer interface. +var PeerData = Interface{ + Name: "org.freedesktop.DBus.Peer", + Methods: []Method{ + { + Name: "Ping", + }, + { + Name: "GetMachineId", + Args: []Arg{ + {"machine_uuid", "s", "out"}, + }, + }, + }, +} + // XML document type declaration of the introspection format version 1.0 const IntrospectDeclarationString = `