summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Osgood <iano@quirkster.com>2006-04-28 15:27:09 -0700
committerIan Osgood <iano@quirkster.com>2006-04-28 15:27:09 -0700
commite6132aff2fdcd0ab1ef5d7ac84a3c597dc07d370 (patch)
treef8655a19317d44ffd70c5381222db7aa1466b2d0 /src
parent162c7593adf1577ca8aecfcd53fd5644b6182609 (diff)
Move the remainder of the constants in X.h into XML enumerations.
Fix xcb_auth to use one of the new enumerations.
Diffstat (limited to 'src')
-rw-r--r--src/xcb.h20
-rw-r--r--src/xcb_auth.c2
2 files changed, 14 insertions, 8 deletions
diff --git a/src/xcb.h b/src/xcb.h
index 096cff5..8e990fd 100644
--- a/src/xcb.h
+++ b/src/xcb.h
@@ -83,13 +83,6 @@ extern "C" {
#define XCB_TYPE_PAD(T,I) (-(I) & (sizeof(T) > 4 ? 3 : sizeof(T) - 1))
-
-/** XCBNone is the universal null resource or null atom parameter value for many core X requests */
-#define XCBNone 0L
-
-/** XCBCopyFromParent can be used for many CreateWindow parameters */
-#define XCBCopyFromParent 0L
-
/* Opaque structures */
/**
@@ -166,6 +159,19 @@ typedef struct {
#include "xproto.h"
+/** XCBNone is the universal null resource or null atom parameter value for many core X requests */
+#define XCBNone 0L
+
+/** XCBCopyFromParent can be used for many CreateWindow parameters */
+#define XCBCopyFromParent 0L
+
+/** XCBCurrentTime can be used in most requests that take an XCBTIMESTAMP */
+#define XCBCurrentTime 0L
+
+/** XCBNoSymbol fills in unused entries in XCBKEYSYM tables */
+#define XCBNoSymbol 0L
+
+
/* xcb_auth.c */
/**
diff --git a/src/xcb_auth.c b/src/xcb_auth.c
index f42400d..46c85fd 100644
--- a/src/xcb_auth.c
+++ b/src/xcb_auth.c
@@ -105,7 +105,7 @@ static Xauth *get_authptr(struct sockaddr *sockname, unsigned int socknamelen)
addr = (char *) &si->sin_addr;
addrlen = 4;
if (ntohl(si->sin_addr.s_addr) != 0x7f000001)
- family = 0; /* X.h: FamilyInternet */
+ family = XCBFamilyInternet;
snprintf(dispbuf, sizeof(dispbuf), "%d", ntohs(si->sin_port) - X_TCP_PORT);
display = dispbuf;
}