[PATCH 02/25] Add ABI warning to vncdisplay.h



---
 src/vncdisplay.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/vncdisplay.h b/src/vncdisplay.h
index 53bb246..52078e4 100644
--- a/src/vncdisplay.h
+++ b/src/vncdisplay.h
@@ -75,6 +75,9 @@ typedef enum
 	VNC_DISPLAY_KEY_EVENT_PRESS = 1,
 	VNC_DISPLAY_KEY_EVENT_RELEASE = 2,
 	VNC_DISPLAY_KEY_EVENT_CLICK = 3,
+
+	/* NB don't add more than 8 options here,
+	 * or the enum changes size breaking ABI on send_keys_ex() */
 } VncDisplayKeyEvent;
 
 typedef enum
@@ -84,6 +87,8 @@ typedef enum
 	VNC_DISPLAY_DEPTH_COLOR_MEDIUM,
 	VNC_DISPLAY_DEPTH_COLOR_LOW,
 	VNC_DISPLAY_DEPTH_COLOR_ULTRA_LOW
+	/* NB don't add more than 8 options here,
+	 * or the enum changes size breaking ABI on set/get_depth() */
 } VncDisplayDepthColor;
 
 G_BEGIN_DECLS
-- 
1.6.5.2



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