diff options
author | Ted Gould <ted@canonical.com> | 2009-05-12 09:08:06 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-05-12 09:08:06 -0500 |
commit | 0b3833cbe0a21ced36de5ec90437949385f5d5a4 (patch) | |
tree | 09456904b5684503a88b06b0370d1240ffca4d76 /libdbusmenu-glib | |
parent | a2f612da2fe73e6e22abf2fadbe18d4a12e52b1f (diff) | |
download | libdbusmenu-0b3833cbe0a21ced36de5ec90437949385f5d5a4.tar.gz libdbusmenu-0b3833cbe0a21ced36de5ec90437949385f5d5a4.tar.bz2 libdbusmenu-0b3833cbe0a21ced36de5ec90437949385f5d5a4.zip |
Public API functions documentation
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r-- | libdbusmenu-glib/client.c | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index c25f5f2..44312a8 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -52,7 +52,6 @@ enum { static guint signals[LAST_SIGNAL] = { 0 }; typedef struct _DbusmenuClientPrivate DbusmenuClientPrivate; - struct _DbusmenuClientPrivate { DbusmenuMenuitem * root; @@ -444,6 +443,19 @@ update_layout (DbusmenuClient * client) } /* Public API */ +/** + dbusmenu_client_new: + @name: The DBus name for the server to connect to + @object: The object on the server to monitor + + This function creates a new client that connects to a specific + server on DBus. That server is at a specific location sharing + a known object. The interface is assumed by the code to be + the DBus menu interface. The newly created client will start + sending out events as it syncs up with the server. + + Return value: A brand new #DbusmenuClient +*/ DbusmenuClient * dbusmenu_client_new (const gchar * name, const gchar * object) { @@ -456,6 +468,21 @@ dbusmenu_client_new (const gchar * name, const gchar * object) return self; } +/** + dbusmenu_client_get_root: + @client: The #DbusmenuClient to get the root node from + + Grabs the root node for the specified client @client. This + function may block. It will block if there is currently a + call to update the layout, it will block on that layout + updated and then return the newly updated layout. Chances + are that this update is in the queue for the mainloop as + it would have been requested some time ago, but in theory + it could block longer. + + Return value: A #DbusmenuMenuitem representing the root of + menu on the server. +*/ DbusmenuMenuitem * dbusmenu_client_get_root (DbusmenuClient * client) { |