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

Submitted by Klemens Baum on Dec. 25, 2015, 6:23 p.m.

Details

Message ID 1451067832-2927-3-git-send-email-klemens.baum@gmail.com
State New
Headers show
Series "New defines for missing opcodes and True/False" ( rev: 2 1 ) in XCB

Not browsing as part of any series.

Commit Message

Klemens Baum Dec. 25, 2015, 6:23 p.m.
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(+)

Patch hide | download patch | download mbox

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