Net::DBus::Dumper(3)

πŸŽ€ NAME πŸŽ€

Net::DBus::Dumper β€” stringify Net::DBus objects so they’re suitable for printing. That’s the whole assignment, and it ate πŸ’…


✨ SYNOPSIS ✨

use Net::DBus::Dumper;

use Net::DBus;

# Dump out info about the bus
my $bus = Net::DBus->find;
print dbus_dump($bus);

# Dump out info about a service
my $service = $bus->get_service("org.freedesktop.DBus");
print dbus_dump($service);

# Dump out info about an object
my $object = $service->get_object("/org/freedesktop/DBus");
print dbus_dump($object);

🌸 DESCRIPTION 🌸

okay so bestie, this is the manual page for Net::DBus::Dumper(3), and yes it’s a User Contributed Perl Documentation situation πŸŽ€

This module is a debugging aid: it gives you a way to stringify a DBus-related object into a form that’s suitable for printing out. It can stringify any of the Net::DBus:* objects, and for each one it generates the following info:

  • Net::DBus β€” a list of services registered with the bus.
  • Net::DBus::Service =item Net::DBus::RemoteService β€” the service name. (Yep, the original page has that stray =item snack right there, so I’m keeping it visible πŸ‘€)
  • Net::DBus::Object =item Net::DBus::RemoteObject β€” the list of all exported methods, and signals, along with their parameter and return types.

πŸ¦‹ METHODS πŸ¦‹

  • my @data = dbus_dump($object); β€” generates a stringified representation of an object. The object you pass in as the parameter must be an instance of one of Net::DBus, Net::DBus::RemoteService, Net::DBus::Service, Net::DBus::RemoteObject, Net::DBus::Object. The stringified representation comes back as a list of strings, with newlines in appropriate places, so it can be passed string to the print method. (That’s the page’s wording, bestie β€” I’m not gonna pretend it’s not a little quirky 😭)

πŸ’€ BUGS πŸ’€

⚠️ It should print out a list of object paths registered against a service, but right now that only works for a service implemented in Perl.

πŸ‘‘ AUTHOR πŸ‘‘

Daniel P. Berrange.


Copyright (C) 2005-2011 Daniel P. Berrange


🫢 SEE ALSO 🫢

  • Net::DBus
  • Net::DBus::RemoteService
  • Net::DBus::Service
  • Net::DBus::RemoteObject
  • Net::DBus::Object
  • Data::Dumper.

kisses and sparkles πŸ’‹βœ¨ β€” source/version perl v5.42.0, dated 2019-12-17 🫢