[gnome-boxes] add vnc bindings, temporarily
- From: Marc-Andre Lureau <malureau src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] add vnc bindings, temporarily
- Date: Tue, 25 Oct 2011 19:15:19 +0000 (UTC)
commit fbbb548dddbf048ab21ebb72c2a92fc74608b273
Author: Marc-Andrà Lureau <marcandre lureau gmail com>
Date: Tue Oct 25 21:15:13 2011 +0200
add vnc bindings, temporarily
vapi/gtk-vnc-2.0.deps | 2 +
vapi/gtk-vnc-2.0.vapi | 115 ++++++++++++++++++++++++++
vapi/gvnc-1.0.vapi | 218 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 335 insertions(+), 0 deletions(-)
---
diff --git a/vapi/gtk-vnc-2.0.deps b/vapi/gtk-vnc-2.0.deps
new file mode 100644
index 0000000..9aacb86
--- /dev/null
+++ b/vapi/gtk-vnc-2.0.deps
@@ -0,0 +1,2 @@
+gvnc-1.0
+gtk+-3.0
diff --git a/vapi/gtk-vnc-2.0.vapi b/vapi/gtk-vnc-2.0.vapi
new file mode 100644
index 0000000..1bb2e4e
--- /dev/null
+++ b/vapi/gtk-vnc-2.0.vapi
@@ -0,0 +1,115 @@
+/* gtk-vnc-2.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Vnc", gir_namespace = "GtkVnc", gir_version = "2.0", lower_case_cprefix = "vnc_")]
+namespace Vnc {
+ [CCode (cheader_filename = "gtk-vnc.h", type_id = "vnc_cairo_framebuffer_get_type ()")]
+ public class CairoFramebuffer : Vnc.BaseFramebuffer, Vnc.Framebuffer {
+ [CCode (has_construct_function = false)]
+ public CairoFramebuffer (uint16 width, uint16 height, Vnc.PixelFormat remoteFormat);
+ public Cairo.Surface get_surface ();
+ public void* surface { get; construct; }
+ }
+ [CCode (cheader_filename = "gtk-vnc.h", type_id = "vnc_display_get_type ()")]
+ public class Display : Gtk.DrawingArea, Atk.Implementor, Gtk.Buildable {
+ [CCode (has_construct_function = false, type = "GtkWidget*")]
+ public Display ();
+ public void client_cut_text (string text);
+ public void close ();
+ public void force_grab (bool enable);
+ public Vnc.DisplayDepthColor get_depth ();
+ public bool get_force_size ();
+ public Vnc.GrabSequence get_grab_keys ();
+ public int get_height ();
+ public bool get_keyboard_grab ();
+ public bool get_lossy_encoding ();
+ public static GLib.OptionEntry get_option_entries ();
+ public bool get_pointer_grab ();
+ public bool get_pointer_local ();
+ public bool get_read_only ();
+ public bool get_scaling ();
+ public bool get_shared_flag ();
+ public int get_width ();
+ public bool is_open ();
+ public bool is_pointer_absolute ();
+ public bool open_fd (int fd);
+ public bool open_host (string host, string port);
+ public bool request_update ();
+ public void send_keys (uint keyvals, int nkeyvals);
+ public void send_keys_ex (uint keyvals, int nkeyvals, Vnc.DisplayKeyEvent kind);
+ public void send_pointer (int x, int y, int button_mask);
+ public bool set_credential (int type, string data);
+ public void set_depth (Vnc.DisplayDepthColor depth);
+ public void set_force_size (bool enable);
+ public void set_grab_keys (Vnc.GrabSequence seq);
+ public void set_keyboard_grab (bool enable);
+ public void set_lossy_encoding (bool enable);
+ public void set_pointer_grab (bool enable);
+ public void set_pointer_local (bool enable);
+ public void set_read_only (bool enable);
+ public bool set_scaling (bool enable);
+ public void set_shared_flag (bool shared);
+ public Vnc.DisplayDepthColor depth { get; set construct; }
+ public bool force_size { get; set construct; }
+ [NoAccessorMethod]
+ public bool grab_keyboard { get; set construct; }
+ public Vnc.GrabSequence grab_keys { owned get; set construct; }
+ [NoAccessorMethod]
+ public bool grab_pointer { get; set construct; }
+ public int height { get; }
+ [NoAccessorMethod]
+ public bool local_pointer { get; set construct; }
+ public bool lossy_encoding { get; set construct; }
+ public string name { get; }
+ public bool read_only { get; set construct; }
+ [NoAccessorMethod]
+ public bool scaling { get; set construct; }
+ public bool shared_flag { get; set construct; }
+ public int width { get; }
+ public virtual signal void vnc_auth_credential (GLib.ValueArray credList);
+ public signal void vnc_auth_failure (string object);
+ public signal void vnc_auth_unsupported (uint object);
+ public signal void vnc_bell ();
+ public virtual signal void vnc_connected ();
+ public signal void vnc_desktop_resize (int object, int p0);
+ public virtual signal void vnc_disconnected ();
+ public virtual signal void vnc_initialized ();
+ public signal void vnc_keyboard_grab ();
+ public signal void vnc_keyboard_ungrab ();
+ public signal void vnc_pointer_grab ();
+ public signal void vnc_pointer_ungrab ();
+ public signal void vnc_server_cut_text (string object);
+ }
+ [CCode (cheader_filename = "gtk-vnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_grab_sequence_get_type ()")]
+ [Compact]
+ public class GrabSequence {
+ public uint keysyms;
+ public uint nkeysyms;
+ [CCode (has_construct_function = false)]
+ public GrabSequence (uint nkeysyms, uint keysyms);
+ public string as_string ();
+ public Vnc.GrabSequence copy ();
+ public void free ();
+ [CCode (has_construct_function = false)]
+ public GrabSequence.from_string (string str);
+ }
+ [CCode (cheader_filename = "gtk-vnc.h", cprefix = "VNC_DISPLAY_CREDENTIAL_")]
+ public enum DisplayCredential {
+ PASSWORD,
+ USERNAME,
+ CLIENTNAME
+ }
+ [CCode (cheader_filename = "gtk-vnc.h", cprefix = "VNC_DISPLAY_DEPTH_COLOR_")]
+ public enum DisplayDepthColor {
+ DEFAULT,
+ FULL,
+ MEDIUM,
+ LOW,
+ ULTRA_LOW
+ }
+ [CCode (cheader_filename = "gtk-vnc.h", cprefix = "VNC_DISPLAY_KEY_EVENT_")]
+ public enum DisplayKeyEvent {
+ PRESS,
+ RELEASE,
+ CLICK
+ }
+}
diff --git a/vapi/gvnc-1.0.vapi b/vapi/gvnc-1.0.vapi
new file mode 100644
index 0000000..bfb82b6
--- /dev/null
+++ b/vapi/gvnc-1.0.vapi
@@ -0,0 +1,218 @@
+/* gvnc-1.0.vapi generated by vapigen, do not modify. */
+
+[CCode (cprefix = "Vnc", gir_namespace = "GVnc", gir_version = "1.0", lower_case_cprefix = "vnc_")]
+namespace Vnc {
+ [CCode (cheader_filename = "gvnc.h", type_id = "vnc_base_framebuffer_get_type ()")]
+ public class BaseFramebuffer : GLib.Object, Vnc.Framebuffer {
+ [CCode (has_construct_function = false)]
+ public BaseFramebuffer (uint8 buffer, uint16 width, uint16 height, int rowstride, Vnc.PixelFormat localFormat, Vnc.PixelFormat remoteFormat);
+ [NoAccessorMethod]
+ public void* buffer { get; construct; }
+ [NoAccessorMethod]
+ public Vnc.ColorMap color_map { owned get; set; }
+ [NoAccessorMethod]
+ public int height { get; construct; }
+ [NoAccessorMethod]
+ public Vnc.PixelFormat local_format { owned get; construct; }
+ [NoAccessorMethod]
+ public Vnc.PixelFormat remote_format { owned get; construct; }
+ [NoAccessorMethod]
+ public int rowstride { get; construct; }
+ [NoAccessorMethod]
+ public int width { get; construct; }
+ }
+ [CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_color_map_get_type ()")]
+ [Compact]
+ public class ColorMap {
+ public Vnc.ColorMapEntry colors;
+ public uint16 offset;
+ public uint16 size;
+ [CCode (has_construct_function = false)]
+ public ColorMap (uint16 offset, uint16 nentries);
+ public Vnc.ColorMap copy ();
+ public void free ();
+ public bool lookup (uint16 idx, uint16 red, uint16 green, uint16 blue);
+ public bool @set (uint16 idx, uint16 red, uint16 green, uint16 blue);
+ }
+ [CCode (cheader_filename = "gvnc.h", type_id = "vnc_connection_get_type ()")]
+ public class Connection : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Connection ();
+ public bool client_cut_text (void* data, ulong length);
+ public bool framebuffer_update_request (bool incremental, uint16 x, uint16 y, uint16 width, uint16 height);
+ public bool get_abs_pointer ();
+ public bool get_ext_key_event ();
+ public int get_height ();
+ public unowned string get_name ();
+ public unowned Vnc.PixelFormat get_pixel_format ();
+ public bool get_shared ();
+ public int get_width ();
+ public bool has_error ();
+ public bool is_initialized ();
+ public bool is_open ();
+ public bool key_event (bool down_flag, uint32 key, uint16 scancode);
+ public bool open_fd (int fd);
+ public bool open_host (string host, string port);
+ public bool pointer_event (uint8 button_mask, uint16 x, uint16 y);
+ public bool set_auth_subtype (uint type);
+ public bool set_auth_type (uint type);
+ public bool set_credential (int type, string data);
+ public bool set_encodings (int n_encoding, int32 encoding);
+ public bool set_framebuffer (Vnc.Framebuffer fb);
+ public bool set_pixel_format (Vnc.PixelFormat fmt);
+ public bool set_shared (bool sharedFlag);
+ public void shutdown ();
+ [NoAccessorMethod]
+ public Vnc.Framebuffer framebuffer { owned get; set; }
+ public virtual signal void vnc_auth_choose_subtype (uint type, GLib.ValueArray subtypes);
+ public virtual signal void vnc_auth_choose_type (GLib.ValueArray types);
+ public virtual signal void vnc_auth_credential (GLib.ValueArray creds);
+ public virtual signal void vnc_auth_failure (string reason);
+ public virtual signal void vnc_auth_unsupported (uint authType);
+ public virtual signal void vnc_bell ();
+ public virtual signal void vnc_connected ();
+ public virtual signal void vnc_cursor_changed (Vnc.Cursor cursor);
+ public virtual signal void vnc_desktop_resize (int width, int height);
+ public virtual signal void vnc_disconnected ();
+ public virtual signal void vnc_framebuffer_update (int x, int y, int width, int height);
+ public virtual signal void vnc_initialized ();
+ public virtual signal void vnc_pixel_format_changed (void* format);
+ public virtual signal void vnc_pointer_mode_changed (bool absPointer);
+ public virtual signal void vnc_server_cut_text (string text);
+ }
+ [CCode (cheader_filename = "gvnc.h", type_id = "vnc_cursor_get_type ()")]
+ public class Cursor : GLib.Object {
+ [CCode (has_construct_function = false)]
+ public Cursor (uint8 rgba24data, uint16 hotx, uint16 hoty, uint16 width, uint16 height);
+ public uint8 get_data ();
+ public uint16 get_height ();
+ public uint16 get_hotx ();
+ public uint16 get_hoty ();
+ public uint16 get_width ();
+ [NoAccessorMethod]
+ public void* data { get; set construct; }
+ [NoAccessorMethod]
+ public int height { get; set construct; }
+ [NoAccessorMethod]
+ public int hotx { get; set construct; }
+ [NoAccessorMethod]
+ public int hoty { get; set construct; }
+ [NoAccessorMethod]
+ public int width { get; set construct; }
+ }
+ [CCode (cheader_filename = "gvnc.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "vnc_pixel_format_get_type ()")]
+ [Compact]
+ public class PixelFormat {
+ public uint8 bits_per_pixel;
+ public uint16 blue_max;
+ public uint8 blue_shift;
+ public uint16 byte_order;
+ public uint8 depth;
+ public uint16 green_max;
+ public uint8 green_shift;
+ public uint16 red_max;
+ public uint8 red_shift;
+ public uint8 true_color_flag;
+ [CCode (has_construct_function = false)]
+ public PixelFormat ();
+ public Vnc.PixelFormat copy ();
+ public void free ();
+ }
+ [CCode (cheader_filename = "gvnc.h", type_cname = "VncFramebufferInterface", type_id = "vnc_framebuffer_get_type ()")]
+ public interface Framebuffer : GLib.Object {
+ public abstract void blt (uint8 src, int rowstride, uint16 x, uint16 y, uint16 width, uint16 height);
+ public abstract void copyrect (uint16 srcx, uint16 srcy, uint16 dstx, uint16 dsty, uint16 width, uint16 height);
+ public abstract void fill (uint8 src, uint16 x, uint16 y, uint16 width, uint16 height);
+ public abstract uint8 get_buffer ();
+ public abstract uint16 get_height ();
+ public abstract unowned Vnc.PixelFormat get_local_format ();
+ public abstract unowned Vnc.PixelFormat get_remote_format ();
+ public abstract int get_rowstride ();
+ public abstract uint16 get_width ();
+ public abstract bool perfect_format_match ();
+ public abstract void rgb24_blt (uint8 src, int rowstride, uint16 x, uint16 y, uint16 width, uint16 height);
+ public abstract void set_color_map (Vnc.ColorMap map);
+ public abstract void set_pixel_at (uint8 src, uint16 x, uint16 y);
+ }
+ [CCode (cheader_filename = "gvnc.h", has_type_id = false)]
+ public struct ColorMapEntry {
+ public uint16 red;
+ public uint16 green;
+ public uint16 blue;
+ }
+ [CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_AUTH_")]
+ public enum ConnectionAuth {
+ INVALID,
+ NONE,
+ VNC,
+ RA2,
+ RA2NE,
+ TIGHT,
+ ULTRA,
+ TLS,
+ VENCRYPT,
+ SASL,
+ ARD,
+ MSLOGON
+ }
+ [CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_AUTH_VENCRYPT_")]
+ public enum ConnectionAuthVencrypt {
+ PLAIN,
+ TLSNONE,
+ TLSVNC,
+ TLSPLAIN,
+ X509NONE,
+ X509VNC,
+ X509PLAIN,
+ X509SASL,
+ TLSSASL
+ }
+ [CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_CREDENTIAL_")]
+ public enum ConnectionCredential {
+ PASSWORD,
+ USERNAME,
+ CLIENTNAME
+ }
+ [CCode (cheader_filename = "gvnc.h", cprefix = "VNC_CONNECTION_ENCODING_")]
+ public enum ConnectionEncoding {
+ RAW,
+ COPY_RECT,
+ RRE,
+ CORRE,
+ HEXTILE,
+ TIGHT,
+ ZRLE,
+ TIGHT_JPEG0,
+ TIGHT_JPEG1,
+ TIGHT_JPEG2,
+ TIGHT_JPEG3,
+ TIGHT_JPEG4,
+ TIGHT_JPEG5,
+ TIGHT_JPEG6,
+ TIGHT_JPEG7,
+ TIGHT_JPEG8,
+ TIGHT_JPEG9,
+ DESKTOP_RESIZE,
+ [CCode (cname = "VNC_CONNECTION_ENCODING_WMVi")]
+ WMVI,
+ CURSOR_POS,
+ RICH_CURSOR,
+ XCURSOR,
+ POINTER_CHANGE,
+ EXT_KEY_EVENT
+ }
+ [CCode (cheader_filename = "gvnc.h")]
+ public const int PADDING;
+ [CCode (cheader_filename = "gvnc.h")]
+ public const int PADDING_LARGE;
+ [CCode (cheader_filename = "gvnc.h")]
+ public static bool util_check_version (int major, int minor, int micro);
+ [CCode (cheader_filename = "gvnc.h")]
+ public static bool util_get_debug ();
+ [CCode (cheader_filename = "gvnc.h")]
+ public static int util_get_version ();
+ [CCode (cheader_filename = "gvnc.h")]
+ public static unowned string util_get_version_string ();
+ [CCode (cheader_filename = "gvnc.h")]
+ public static void util_set_debug (bool enabled);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]