aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-10-05 18:21:35 -0400
committerTed Gould <ted@canonical.com>2009-10-05 18:21:35 -0400
commit8f0b3d1a97d235c9da9601a00222e5b51be3738b (patch)
treecdb1cabdafd9ce48f543dda3f9b591d065c0ca03 /tools
parent0eda58a6e59f479c788e05cc781b2a178d6ff8c0 (diff)
downloadlibdbusmenu-8f0b3d1a97d235c9da9601a00222e5b51be3738b.tar.gz
libdbusmenu-8f0b3d1a97d235c9da9601a00222e5b51be3738b.tar.bz2
libdbusmenu-8f0b3d1a97d235c9da9601a00222e5b51be3738b.zip
Getting the client and the root item
Diffstat (limited to 'tools')
-rw-r--r--tools/dbusmenu-dumper.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/dbusmenu-dumper.c b/tools/dbusmenu-dumper.c
index ed3b4b3..9768b7d 100644
--- a/tools/dbusmenu-dumper.c
+++ b/tools/dbusmenu-dumper.c
@@ -92,6 +92,22 @@ main (int argc, char ** argv)
return 1;
}
+ DbusmenuClient * client = dbusmenu_client_new (dbusname, dbusobject);
+ if (client == NULL) {
+ g_print("ERROR: Unable to create Dbusmenu Client\n");
+ return 1;
+ }
+
+ DbusmenuMenuitem * root = dbusmenu_client_get_root(client);
+ if (root == NULL) {
+ g_print("ERROR: Unable to create Dbusmenu Root\n");
+ return 1;
+ }
+
+ g_print("{\n");
+
+ g_print("}\n");
+
return 0;
}