Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src Add missing xcb files to build.



details:   https://anonhg.NetBSD.org/src/rev/9b7cf844ef3a
branches:  trunk
changeset: 323299:9b7cf844ef3a
user:      rjs <rjs%NetBSD.org@localhost>
date:      Thu Jun 07 18:16:55 2018 +0000

description:
Add missing xcb files to build.

Fixes xsrc/53337.

diffstat:

 distrib/sets/lists/xcomp/mi                         |     6 +-
 external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs |     4 +-
 external/mit/xorg/lib/libxcb/files/ge.c             |    83 +
 external/mit/xorg/lib/libxcb/files/ge.h             |   117 +
 external/mit/xorg/lib/libxcb/files/xf86vidmode.c    |  2560 +++++++++++++++++++
 external/mit/xorg/lib/libxcb/files/xf86vidmode.h    |  2013 ++++++++++++++
 external/mit/xorg/lib/libxcb/libxcb/Makefile        |     6 +-
 7 files changed, 4786 insertions(+), 3 deletions(-)

diffs (truncated from 4870 to 300 lines):

diff -r 0753ae927665 -r 9b7cf844ef3a distrib/sets/lists/xcomp/mi
--- a/distrib/sets/lists/xcomp/mi       Thu Jun 07 17:02:12 2018 +0000
+++ b/distrib/sets/lists/xcomp/mi       Thu Jun 07 18:16:55 2018 +0000
@@ -1,4 +1,4 @@
-#       $NetBSD: mi,v 1.198 2018/05/09 07:28:45 maya Exp $
+#       $NetBSD: mi,v 1.199 2018/06/07 18:16:55 rjs Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -726,7 +726,10 @@
 ./usr/X11R7/include/xcb/damage.h                       -unknown-       xorg
 ./usr/X11R7/include/xcb/dpms.h                         -unknown-       xorg
 ./usr/X11R7/include/xcb/dri2.h                         -unknown-       xorg
+./usr/X11R7/include/xcb/dri3.h                         -unknown-       xorg
+./usr/X11R7/include/xcb/ge.h                           -unknown-       xorg
 ./usr/X11R7/include/xcb/glx.h                          -unknown-       xorg
+./usr/X11R7/include/xcb/present.h                      -unknown-       xorg
 ./usr/X11R7/include/xcb/randr.h                                -unknown-       xorg
 ./usr/X11R7/include/xcb/record.h                       -unknown-       xorg
 ./usr/X11R7/include/xcb/render.h                       -unknown-       xorg
@@ -751,6 +754,7 @@
 ./usr/X11R7/include/xcb/xcbext.h                       -unknown-       xorg
 ./usr/X11R7/include/xcb/xevie.h                                -unknown-       obsolete
 ./usr/X11R7/include/xcb/xf86dri.h                      -unknown-       xorg
+./usr/X11R7/include/xcb/xf86vidmode.h                  -unknown-       xorg
 ./usr/X11R7/include/xcb/xfixes.h                       -unknown-       xorg
 ./usr/X11R7/include/xcb/xinerama.h                     -unknown-       xorg
 ./usr/X11R7/include/xcb/xinput.h                       -unknown-       xorg
diff -r 0753ae927665 -r 9b7cf844ef3a external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs
--- a/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs       Thu Jun 07 17:02:12 2018 +0000
+++ b/external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs       Thu Jun 07 18:16:55 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.xmlsrcs,v 1.5 2017/03/05 09:27:53 mrg Exp $
+#      $NetBSD: Makefile.xmlsrcs,v 1.6 2018/06/07 18:16:55 rjs Exp $
 
 # list of the libxcb xml-generated .c files.
 
@@ -9,6 +9,7 @@
        dpms.c \
        dri2.c \
        dri3.c \
+       ge.c \
        glx.c \
        present.c \
        randr.c \
@@ -21,6 +22,7 @@
        sync.c \
        xc_misc.c \
        xf86dri.c \
+       xf86vidmode.c \
        xfixes.c \
        xinerama.c \
        xinput.c \
diff -r 0753ae927665 -r 9b7cf844ef3a external/mit/xorg/lib/libxcb/files/ge.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/libxcb/files/ge.c   Thu Jun 07 18:16:55 2018 +0000
@@ -0,0 +1,83 @@
+/*
+ * This file generated automatically from ge.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <stddef.h>  /* for offsetof() */
+#include "xcbext.h"
+#include "ge.h"
+
+#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
+
+xcb_extension_t xcb_genericevent_id = { "Generic Event Extension", 0 };
+
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version (xcb_connection_t *c,
+                                uint16_t          client_major_version,
+                                uint16_t          client_minor_version)
+{
+    static const xcb_protocol_request_t xcb_req = {
+        .count = 2,
+        .ext = &xcb_genericevent_id,
+        .opcode = XCB_GENERICEVENT_QUERY_VERSION,
+        .isvoid = 0
+    };
+
+    struct iovec xcb_parts[4];
+    xcb_genericevent_query_version_cookie_t xcb_ret;
+    xcb_genericevent_query_version_request_t xcb_out;
+
+    xcb_out.client_major_version = client_major_version;
+    xcb_out.client_minor_version = client_minor_version;
+
+    xcb_parts[2].iov_base = (char *) &xcb_out;
+    xcb_parts[2].iov_len = sizeof(xcb_out);
+    xcb_parts[3].iov_base = 0;
+    xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
+
+    xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
+    return xcb_ret;
+}
+
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
+                                          uint16_t          client_major_version,
+                                          uint16_t          client_minor_version)
+{
+    static const xcb_protocol_request_t xcb_req = {
+        .count = 2,
+        .ext = &xcb_genericevent_id,
+        .opcode = XCB_GENERICEVENT_QUERY_VERSION,
+        .isvoid = 0
+    };
+
+    struct iovec xcb_parts[4];
+    xcb_genericevent_query_version_cookie_t xcb_ret;
+    xcb_genericevent_query_version_request_t xcb_out;
+
+    xcb_out.client_major_version = client_major_version;
+    xcb_out.client_minor_version = client_minor_version;
+
+    xcb_parts[2].iov_base = (char *) &xcb_out;
+    xcb_parts[2].iov_len = sizeof(xcb_out);
+    xcb_parts[3].iov_base = 0;
+    xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
+
+    xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
+    return xcb_ret;
+}
+
+xcb_genericevent_query_version_reply_t *
+xcb_genericevent_query_version_reply (xcb_connection_t                         *c,
+                                      xcb_genericevent_query_version_cookie_t   cookie  /**< */,
+                                      xcb_generic_error_t                     **e)
+{
+    return (xcb_genericevent_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
+}
+
diff -r 0753ae927665 -r 9b7cf844ef3a external/mit/xorg/lib/libxcb/files/ge.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/libxcb/files/ge.h   Thu Jun 07 18:16:55 2018 +0000
@@ -0,0 +1,117 @@
+/*
+ * This file generated automatically from ge.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+/**
+ * @defgroup XCB_GenericEvent_API XCB GenericEvent API
+ * @brief GenericEvent XCB Protocol Implementation.
+ * @{
+ **/
+
+#ifndef __GE_H
+#define __GE_H
+
+#include "xcb.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define XCB_GENERICEVENT_MAJOR_VERSION 1
+#define XCB_GENERICEVENT_MINOR_VERSION 0
+
+extern xcb_extension_t xcb_genericevent_id;
+
+/**
+ * @brief xcb_genericevent_query_version_cookie_t
+ **/
+typedef struct xcb_genericevent_query_version_cookie_t {
+    unsigned int sequence;
+} xcb_genericevent_query_version_cookie_t;
+
+/** Opcode for xcb_genericevent_query_version. */
+#define XCB_GENERICEVENT_QUERY_VERSION 0
+
+/**
+ * @brief xcb_genericevent_query_version_request_t
+ **/
+typedef struct xcb_genericevent_query_version_request_t {
+    uint8_t  major_opcode;
+    uint8_t  minor_opcode;
+    uint16_t length;
+    uint16_t client_major_version;
+    uint16_t client_minor_version;
+} xcb_genericevent_query_version_request_t;
+
+/**
+ * @brief xcb_genericevent_query_version_reply_t
+ **/
+typedef struct xcb_genericevent_query_version_reply_t {
+    uint8_t  response_type;
+    uint8_t  pad0;
+    uint16_t sequence;
+    uint32_t length;
+    uint16_t major_version;
+    uint16_t minor_version;
+    uint8_t  pad1[20];
+} xcb_genericevent_query_version_reply_t;
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ */
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version (xcb_connection_t *c,
+                                uint16_t          client_major_version,
+                                uint16_t          client_minor_version);
+
+/**
+ *
+ * @param c The connection
+ * @return A cookie
+ *
+ * Delivers a request to the X server.
+ *
+ * This form can be used only if the request will cause
+ * a reply to be generated. Any returned error will be
+ * placed in the event queue.
+ */
+xcb_genericevent_query_version_cookie_t
+xcb_genericevent_query_version_unchecked (xcb_connection_t *c,
+                                          uint16_t          client_major_version,
+                                          uint16_t          client_minor_version);
+
+/**
+ * Return the reply
+ * @param c      The connection
+ * @param cookie The cookie
+ * @param e      The xcb_generic_error_t supplied
+ *
+ * Returns the reply of the request asked by
+ *
+ * The parameter @p e supplied to this function must be NULL if
+ * xcb_genericevent_query_version_unchecked(). is used.
+ * Otherwise, it stores the error if any.
+ *
+ * The returned value must be freed by the caller using free().
+ */
+xcb_genericevent_query_version_reply_t *
+xcb_genericevent_query_version_reply (xcb_connection_t                         *c,
+                                      xcb_genericevent_query_version_cookie_t   cookie  /**< */,
+                                      xcb_generic_error_t                     **e);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
+/**
+ * @}
+ */
diff -r 0753ae927665 -r 9b7cf844ef3a external/mit/xorg/lib/libxcb/files/xf86vidmode.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/mit/xorg/lib/libxcb/files/xf86vidmode.c  Thu Jun 07 18:16:55 2018 +0000
@@ -0,0 +1,2560 @@
+/*
+ * This file generated automatically from xf86vidmode.xml by c_client.py.
+ * Edit at your peril.
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#include <stdlib.h>
+#include <string.h>
+#include <assert.h>
+#include <stddef.h>  /* for offsetof() */
+#include "xcbext.h"
+#include "xf86vidmode.h"
+
+#define ALIGNOF(type) offsetof(struct { char dummy; type member; }, member)
+
+xcb_extension_t xcb_xf86vidmode_id = { "XFree86-VidModeExtension", 0 };
+
+void
+xcb_xf86vidmode_syncrange_next (xcb_xf86vidmode_syncrange_iterator_t *i)
+{
+    --i->rem;
+    ++i->data;
+    i->index += sizeof(xcb_xf86vidmode_syncrange_t);
+}
+
+xcb_generic_iterator_t
+xcb_xf86vidmode_syncrange_end (xcb_xf86vidmode_syncrange_iterator_t i)
+{
+    xcb_generic_iterator_t ret;
+    ret.data = i.data + i.rem;
+    ret.index = i.index + ((char *) ret.data - (char *) i.data);
+    ret.rem = 0;
+    return ret;



Home | Main Index | Thread Index | Old Index