[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH virt-viewer 5/9] Add virt_viewer_app_get_session()



---
 src/virt-viewer-app.c |    8 ++++++++
 src/virt-viewer-app.h |    1 +
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index 0ba57b6..540675e 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -1666,6 +1666,14 @@ virt_viewer_app_get_enable_accel(VirtViewerApp *self)
     return self->priv->enable_accel;
 }
 
+VirtViewerSession*
+virt_viewer_app_get_session(VirtViewerApp *self)
+{
+    g_return_val_if_fail(VIRT_VIEWER_IS_APP(self), FALSE);
+
+    return self->priv->session;
+}
+
 GHashTable*
 virt_viewer_app_get_windows(VirtViewerApp *self)
 {
diff --git a/src/virt-viewer-app.h b/src/virt-viewer-app.h
index 52f43ea..3e48953 100644
--- a/src/virt-viewer-app.h
+++ b/src/virt-viewer-app.h
@@ -95,6 +95,7 @@ GHashTable* virt_viewer_app_get_windows(VirtViewerApp *self);
 void virt_viewer_app_usb_device_selection(VirtViewerApp   *self,
                                           GtkWindow       *parent);
 gboolean virt_viewer_app_get_enable_accel(VirtViewerApp *self);
+VirtViewerSession* virt_viewer_app_get_session(VirtViewerApp *self);
 
 G_END_DECLS
 
-- 
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]