[Xcb] [PATCH 2/2] Add defines for boolean constants to mirror Xlib usage

Klemens Baum klemensbaum at gmail.com
Fri Dec 25 10:23:52 PST 2015


This patch adds XCB_TRUE and XCB_FALSE, intended to be used in place of Xlib's True and False
values respectively.
---
 src/xcb.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/xcb.h b/src/xcb.h
index b8e51bb..5583b5e 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -198,6 +198,11 @@ typedef struct {
 /* Include the generated xproto header. */
 #include "xproto.h"
 
+/** XCB_TRUE corresponds to the True value in Xlib */
+#define XCB_TRUE 1
+
+/** XCB_FALSE corresponds to the False value in Xlib */
+#define XCB_FALSE 0
 
 /** XCB_NONE is the universal null resource or null atom parameter value for many core X requests */
 #define XCB_NONE 0L
-- 
2.4.6



More information about the Xcb mailing list