1Net::DBus::Dumper(3) User Contributed Perl Documentation Net::DBus::Dumper(3)
2
3
4
6 Net::DBus::Dumper - Stringify Net::DBus objects suitable for printing
7
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
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
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, Net::DBus::RemoteOb‐
46 ject, Net::DBus::Object. The stringified representation will be
47 returned as a list of strings, with newlines in appropriate places,
48 such that it can be passed string to the "print" method.
49
51 It should print out a list of object paths registered against a ser‐
52 vice, but this only currently works for service implemented in Perl
53
55 Net::DBus, Net::DBus::RemoteService, Net::DBus::Service,
56 Net::DBus::RemoteObject, Net::DBus::Object, Data::Dumper.
57
59 Copyright 2005 Daniel Berrange <dan@berrange.com>
60
61
62
63perl v5.8.8 2008-02-20 Net::DBus::Dumper(3)