[Xcb-commit] xcb

Ian Osgood iano at kemper.freedesktop.org
Mon Mar 13 17:49:00 PST 2006


 xcb/src/xcb.h      |   14 +++++++++++++-
 xcb/src/xcb_auth.c |    2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)

New commits:
diff-tree 76da031f5f6d05d8ccaf67ccc36bb5dc31d97a86 (from bd1050627c6fd808d56e173bb01090bfb6212560)
Author: Ian Osgood <iano at quirkster.com>
Date:   Mon Mar 13 17:49:17 2006 -0800

    Remove dependencies on Xmd.h and X.h
    (Still including X.h until defs are moved to xproto.xml
     and xcb-util and xcb-demo are fixed to use them.)

diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
index 68c32a8..18785ab 100644
--- a/xcb/src/xcb.h
+++ b/xcb/src/xcb.h
@@ -28,7 +28,19 @@
 #ifndef __XCB_H
 #define __XCB_H
 #include <sys/types.h>
-#include <X11/Xmd.h>
+
+/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#include <stdint.h>
+
+typedef uint8_t  BYTE;
+typedef uint8_t  BOOL;
+typedef uint8_t  CARD8;
+typedef uint16_t CARD16;
+typedef uint32_t CARD32;
+typedef int8_t   INT8;
+typedef int16_t  INT16;
+typedef int32_t  INT32;
+
 #include <X11/X.h>
 #include <sys/uio.h>
 #include <pthread.h>
diff --git a/xcb/src/xcb_auth.c b/xcb/src/xcb_auth.c
index 3971010..d72d780 100644
--- a/xcb/src/xcb_auth.c
+++ b/xcb/src/xcb_auth.c
@@ -97,7 +97,7 @@ static Xauth *get_authptr(struct sockadd
 	     addr = (char *) &si->sin_addr;
 	     addrlen = 4;
 	     if (ntohl(si->sin_addr.s_addr) != 0x7f000001)
-		 family = FamilyInternet; /* 0 */
+		 family = 0; /* X.h: FamilyInternet */
 	     snprintf(dispbuf, sizeof(dispbuf), "%d", ntohs(si->sin_port) - X_TCP_PORT);
 	     display = dispbuf;
         }


More information about the xcb-commit mailing list