[gtk-vnc/encoding: 2/4] Added get_last_encoding() to VncDisplay.
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-vnc/encoding: 2/4] Added get_last_encoding() to VncDisplay.
- Date: Mon, 31 Aug 2009 20:17:02 +0000 (UTC)
commit 2de1aca1a9ecfd7e2680a78333e3d8f8c043bd9e
Author: Jonh Wendell <jwendell gnome org>
Date: Mon Aug 31 13:47:44 2009 -0300
Added get_last_encoding() to VncDisplay.
Also added some well-known encodings enum tp vncdisplay.h
src/vncdisplay.c | 7 +++++++
src/vncdisplay.h | 12 ++++++++++++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 1f080fe..7bcf018 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -2197,6 +2197,13 @@ gboolean vnc_display_get_lossy_encoding(VncDisplay *obj)
return obj->priv->allow_lossy;
}
+int vnc_display_get_last_encoding(VncDisplay *obj)
+{
+ g_return_val_if_fail (VNC_IS_DISPLAY (obj), 0);
+
+ return gvnc_get_last_encoding (obj->priv->gvnc);
+}
+
gboolean vnc_display_get_shared_flag(VncDisplay *obj)
{
g_return_val_if_fail (VNC_IS_DISPLAY (obj), FALSE);
diff --git a/src/vncdisplay.h b/src/vncdisplay.h
index 7c6a64e..18f4fa3 100644
--- a/src/vncdisplay.h
+++ b/src/vncdisplay.h
@@ -79,6 +79,16 @@ typedef enum
VNC_DISPLAY_KEY_EVENT_CLICK = 3,
} VncDisplayKeyEvent;
+enum {
+ VNC_DISPLAY_ENCODING_RAW = 0,
+ VNC_DISPLAY_ENCODING_COPY_RECT = 1,
+ VNC_DISPLAY_ENCODING_RRE = 2,
+ VNC_DISPLAY_ENCODING_CORRE = 4,
+ VNC_DISPLAY_ENCODING_HEXTILE = 5,
+ VNC_DISPLAY_ENCODING_TIGHT = 7,
+ VNC_DISPLAY_ENCODING_ZRLE = 16
+};
+
G_BEGIN_DECLS
GType vnc_display_get_type(void);
@@ -123,6 +133,8 @@ void vnc_display_client_cut_text(VncDisplay *obj, const gchar *text);
void vnc_display_set_lossy_encoding(VncDisplay *obj, gboolean enable);
gboolean vnc_display_get_lossy_encoding(VncDisplay *obj);
+int vnc_display_get_last_encoding(VncDisplay *obj);
+
gboolean vnc_display_set_scaling(VncDisplay *obj, gboolean enable);
gboolean vnc_display_get_scaling(VncDisplay *obj);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]