diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-10 17:16:10 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-12 08:17:33 -0600 |
commit | 5118f7b47cdb388f7411713d56865a0e610d0abd (patch) | |
tree | 066afc4b96acd45dd065fa3ebc1b8269e8f9f64e /console.h | |
parent | 1c1d7bda2cd507aec72057a1c16094541add9dd6 (diff) |
VNC: Convert do_info_vnc() to QObject
Return a QDict with server information. Connected clients are returned
as a QList of QDicts.
The new functions (vnc_qdict_remote_addr(), vnc_qdict_local_addr() and
put_addr_qdict()) are used to insert 'host' and 'service' information
in the returned QDict.
This patch is big, but I don't see how to split it.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit d96fd29cca420d1ff3d34cde233cf41a3818c550)
Diffstat (limited to 'console.h')
-rw-r--r-- | console.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -323,7 +323,8 @@ void vnc_display_init(DisplayState *ds); void vnc_display_close(DisplayState *ds); int vnc_display_open(DisplayState *ds, const char *display); int vnc_display_password(DisplayState *ds, const char *password); -void do_info_vnc(Monitor *mon); +void do_info_vnc_print(Monitor *mon, const QObject *data); +void do_info_vnc(Monitor *mon, QObject **ret_data); char *vnc_display_local_addr(DisplayState *ds); /* curses.c */ |