[gnome-boxes] display: Allow connecting through FD
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] display: Allow connecting through FD
- Date: Mon, 23 Feb 2015 17:28:15 +0000 (UTC)
commit af7f8766039c83e992e91723def9a513c939491d
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 19 00:55:00 2014 +0000
display: Allow connecting through FD
Implementation classes can now support connecting through a file
descriptor.
https://bugzilla.gnome.org/show_bug.cgi?id=738573
src/display.vala | 4 +++-
src/spice-display.vala | 2 +-
src/vnc-display.vala | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/display.vala b/src/display.vala
index 0f168c4..fe90632 100644
--- a/src/display.vala
+++ b/src/display.vala
@@ -20,6 +20,8 @@ private abstract class Boxes.Display: GLib.Object, Boxes.IPropertiesProvider {
public signal void disconnected (bool connection_failed);
public signal void got_error (string message);
+ public delegate int OpenFDFunc ();
+
public abstract Gtk.Widget get_display (int n);
public abstract Gdk.Pixbuf? get_pixbuf (int n) throws Boxes.Error;
public abstract void set_enable_inputs (Gtk.Widget widget, bool enable);
@@ -29,7 +31,7 @@ private abstract class Boxes.Display: GLib.Object, Boxes.IPropertiesProvider {
return false;
}
- public abstract void connect_it () throws GLib.Error;
+ public abstract void connect_it (OpenFDFunc? open_fd = null) throws GLib.Error;
public abstract void disconnect_it ();
public virtual void collect_logs (StringBuilder builder) {
diff --git a/src/spice-display.vala b/src/spice-display.vala
index c3eb5e1..1872e56 100644
--- a/src/spice-display.vala
+++ b/src/spice-display.vala
@@ -191,7 +191,7 @@ private class Boxes.SpiceDisplay: Boxes.Display {
}
}
- public override void connect_it () {
+ public override void connect_it (Display.OpenFDFunc? open_fd = null) {
// We only initiate connection once
if (connected)
return;
diff --git a/src/vnc-display.vala b/src/vnc-display.vala
index b95ea04..8eae5b8 100644
--- a/src/vnc-display.vala
+++ b/src/vnc-display.vala
@@ -114,7 +114,7 @@ private class Boxes.VncDisplay: Boxes.Display {
return display.get_pixbuf ();
}
- public override void connect_it () throws GLib.Error {
+ public override void connect_it (Display.OpenFDFunc? open_fd = null) throws GLib.Error {
// We only initiate connection once
if (connected)
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]