1Net::DBus::Dumper(3)  User Contributed Perl Documentation Net::DBus::Dumper(3)
2
3
4

NAME

6       Net::DBus::Dumper - Stringify Net::DBus objects suitable for printing
7

SYNOPSIS

9         use Net::DBus::Dumper;
10
11         use Net::DBus;
12
13         # Dump out info about the bus
14         my $bus = Net::DBus->find;
15         print dbus_dump($bus);
16
17         # Dump out info about a service
18         my $service = $bus->get_service("org.freedesktop.DBus");
19         print dbus_dump($service);
20
21         # Dump out info about an object
22         my $object = $service->get_object("/org/freedesktop/DBus");
23         print dbus_dump($object);
24

DESCRIPTION

26       This module serves as a debugging aid, providing a means to stringify a
27       DBus related object in a form suitable for printing out. It can
28       stringify any of the Net::DBus:* objects, generating the following
29       information for each
30
31       Net::DBus
32           A list of services registered with the bus
33
34       Net::DBus::Service =item Net::DBus::RemoteService
35           The service name
36
37       Net::DBus::Object =item Net::DBus::RemoteObject
38           The list of all exported methods, and signals, along with their
39           parameter and return types.
40

METHODS

42       my @data = dbus_dump($object);
43           Generates a stringified representation of an object. The object
44           passed in as the parameter must be an instance of one of Net::DBus,
45           Net::DBus::RemoteService, Net::DBus::Service,
46           Net::DBus::RemoteObject, Net::DBus::Object. The stringified
47           representation will be returned as a list of strings, with newlines
48           in appropriate places, such that it can be passed string to the
49           "print" method.
50

BUGS

52       It should print out a list of object paths registered against a
53       service, but this only currently works for service implemented in Perl
54

AUTHOR

56       Daniel P. Berrange
57
59       Copyright (C) 2005-2011 Daniel P. Berrange
60

SEE ALSO

62       Net::DBus, Net::DBus::RemoteService, Net::DBus::Service,
63       Net::DBus::RemoteObject, Net::DBus::Object, Data::Dumper.
64
65
66
67perl v5.36.0                      2022-07-22              Net::DBus::Dumper(3)
Impressum