From 8f0b3d1a97d235c9da9601a00222e5b51be3738b Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Mon, 5 Oct 2009 18:21:35 -0400 Subject: Getting the client and the root item --- tools/dbusmenu-dumper.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'tools/dbusmenu-dumper.c') 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; } -- cgit v1.2.3