Commit graph

558 commits

Author SHA1 Message Date
Robert Knutsson
cf7e2581b6
xtypes.py: resolve method updated
Create a default resolve implementation in Type that
simply sets resolved = True, and thus we can skip implementing
the resolve method when theres nothing to resolve.

Instead of naming the parent class explicitly when calling the
parent-class's resolve, use super()

Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-31 17:04:12 +01:00
Robert Knutsson
0fa37d4664
Make Type an abstract base class
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:43 +01:00
Robert Knutsson
1fd8d4d2cb
Add missing is_fd parameter to overridden make_member_of method
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:41 +01:00
Robert Knutsson
bd5948a0cd
Remove idiosyncratic dependency on __main__.output
Instead of an implicit dependency on __main__.output at
import time, instead use the output dict already passed
to the Module class's constructor.

This also removes the awkward requirement to define the output dict
before importing xcbgen

Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:39 +01:00
Robert Knutsson
f825c3113f
Remove unused parse result
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:36 +01:00
Robert Knutsson
cacb1af5c1
Refactor imports
Use relative imports within the package.
Only import exactly whats needed in order not to accidentally export
internal symbols.
Explicitly state whats part of the module when doing a wildcard import.

Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:40:02 +01:00
Robert Knutsson
ca7b357e14
Remove unreached-code and C statement separators
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:22:22 +01:00
Robert Knutsson
f8eb3e0d7d
Remove Python 2 legacy constructs from class definitions
Convert Python2 new-style class definitions Foo(object) to class Foo and replace explicit
BaseClass.__init__() calls with super().__init__() for cleaner,
modern Python 3 code.

Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2026-01-26 13:22:16 +01:00
Alan Coopersmith
283ead0904 xproto: Document GetProperty reply field values when the property is not set
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/69>
2025-11-23 10:32:35 -08:00
Robert Ancell
2ec66abb88 Fix error padding
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/60>
2025-10-25 18:46:27 +00:00
Robert Ancell
a8fae863b7 Add missing padding amounts to replies.
Replies are always 32 bytes, so many messages have padding at the end of them.
The XCB code doesn't have a problem with the missing padding fields, but they
are nice to have so they match the spec and other users of this data don't have
to check message lengths.

Two cases had padding but with shorter amounts than required.

Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/60>
2025-10-25 18:46:27 +00:00
Robert Knutsson
569fbaa04d CI: drop the ci-fairy MR check, which is both broken & no longer needed
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/65>
2025-10-25 09:57:17 -07:00
Robert Knutsson
b4609e1cd7 Require Python 3.6 or later, making conditional imports no longer required
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/64>
2025-10-21 17:53:06 +00:00
Robert Knutsson
5305be7e11 Remove mentions of valueparam from documentation since support was dropped in v1.12
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/63>
2025-10-20 17:36:04 +00:00
Robert Knutsson
6592ec3573 FileDescriptor: add missing comma, which makes name correctly into a tuple
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/62>
2025-10-19 06:39:22 +00:00
Robert Knutsson
2810fd1d54
Remove unused variable
Signed-off-by: Robert Knutsson <zybreak@gmail.com>
2025-10-14 23:28:51 +02:00
Alan Coopersmith
c70aba5cc6 Strip trailing whitespace
Performed with: git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'
git diff -w & git diff -b show no diffs from this change

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2025-08-02 13:28:41 -07:00
Peter Harris
014540add5 sync: Remove duplicate error names
Having multiple names for the same error number will confuse non-libxcb
generators (eg. maybe the Wireshark generator).

Change BadFence to Fence to match the existing Counter and Alarm errors.

Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/58>
2025-06-03 09:15:05 -04:00
Robert Knutsson
faa9c89eb3 Raise minimum required version of Python from 2.5 to 3.0 2025-04-12 19:37:57 +02:00
Yuxuan Shui
e708fe4933 Add missing XSync error codes
Link: 9d5e1d1dc1/specs/xextproto/sync.xml (L1014-1041)
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
2025-02-25 11:09:25 +00:00
Alan Coopersmith
4d2879ad9e Update links to use gitlab instead of cgit & cvs
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Part-of: <https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/merge_requests/50>
2024-09-29 11:40:32 -07:00
Matt Turner
77d7fc04da xcb-proto 1.17.0
Signed-off-by: Matt Turner <mattst88@gmail.com>
2024-04-12 12:40:38 -04:00
Erik Kurzinger
c9482ce62b Add PresentPixmapSynced and PresentCapabilitySyncobj
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
2024-04-12 07:39:57 -07:00
Erik Kurzinger
c6967a67d7 Add DRI3ImportSyncobj and DRI3FreeSyncobj
Signed-off-by: Erik Kurzinger <ekurzinger@nvidia.com>
2024-01-28 10:01:20 -08:00
Uli Schlachter
1388374c71 Fix typo in "heirarchy"
heirarchy -> hierarchy

Signed-off-by: Uli Schlachter <psychon@znc.in>
2023-09-17 12:41:28 +02:00
Uli Schlachter
ec97274725 Use simply quote signs
Instead of using "Left Double Quotation Mark", this replaces some
documentation comments with normal, ASCII-compatible quotation marks.

Related-to: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/72
Signed-off-by: Uli Schlachter <psychon@znc.in>
2023-09-17 12:40:03 +02:00
Matt Turner
98eeebfc2d xcb-proto 1.16.0
Signed-off-by: Matt Turner <mattst88@gmail.com>
2023-08-16 16:06:46 -04:00
Alexander Volkov
b016df1001 dpms: Add DPMSInfoNotify event (DPMS 1.2)
Signed-off-by: Alexander Volkov <a.volkov@rusbitech.ru>
2023-07-19 15:48:20 +00:00
Xaver Hugl
91178913c2 add PresentOptionAsyncMayTear 2023-06-18 22:44:08 +02:00
Alan Coopersmith
cfcc51836c Remove "All rights reserved" from Oracle copyright notices
Oracle no longer includes this term in our copyright & license notices.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-04-09 08:51:31 -07:00
Tycho Andersen
74c03b4edf xinput: qualify CW as from xproto
Otherwise it's hard to tell where this came from, and we qualify most
everything else in this file anyway.

Signed-off-by: Tycho Andersen <tycho@tycho.pizza>
2023-03-23 20:43:58 +00:00
Alan Coopersmith
15d140d786 Add documentation for DAMAGE extension
Based on
https://gitlab.freedesktop.org/xorg/proto/xorgproto/-/blob/master/damageproto.txt

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2023-02-09 17:34:43 -08:00
Demi Marie Obenour
842d913162 Add documentation for Composite
This is useful, but it crashes the XCB code generator.
xorg/lib/libxcb!38 prevents the crash.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2022-10-16 01:56:43 -04:00
Demi Marie Obenour
bf228d330e Document BIG-REQUESTS
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2022-10-15 16:15:18 -04:00
Demi Marie Obenour
0d440c579b Add documentation for XFixes v6
This was previously added but was not documented.

Signed-off-by: Demi Marie Obenour <demi@invisiblethingslab.com>
2022-08-08 21:03:53 -04:00
Mihail Konev
2386504947 autogen: add default patch prefix
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24 14:39:55 -07:00
Emil Velikov
cf8ca75b7a autogen.sh: use quoted string variables
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent
fall-outs, when they contain space.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24 14:39:50 -07:00
Peter Hutterer
990cf120ae autogen.sh: use exec instead of waiting for configure to finish
Syncs the invocation of configure with the one from the server.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-24 14:39:50 -07:00
Alan Coopersmith
f6ede3004e gitlab CI: add a basic build test
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-07-23 11:02:54 -07:00
Demi Marie Obenour
0fc6197034 Document the MIT-SHM extension
This adds documentation for the entire MIT-SHM extension.

Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
2022-07-03 18:01:40 -04:00
Matt Turner
ed461f379b xcb-proto 1.15.2
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-06-17 13:56:42 -04:00
Matt Turner
e96f3b736a Call AC_OUTPUT without arguments
configure.ac:22: warning: AC_OUTPUT should be used without arguments.
configure.ac:22: You should run autoupdate.

Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-06-17 09:44:23 -04:00
Matt Turner
d849b9534a Install xcb-proto to $(datarootdir)
... i.e. to /usr/share/pkgconfig.

Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-06-17 09:44:23 -04:00
Matt Turner
32c0ac61ec Remove libdir from xcb-proto.pc
Added by 17ab095 ("add libdir/exec_prefix to xcb-xproto.pc") with the
rationale of using it to find the python path, but later commits bd7a481
("pkg-config: Add sysroot prefix") and be9c255 ("Adjust to automake
1.16.4 changes") make this directly accessible.

By removing libdir from the pkgconfig file, the file becomes identical
for different ABIs.

Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-06-17 09:44:20 -04:00
Matt Turner
0c64598d96 xcb-proto 1.15.1
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-06-16 11:35:14 -04:00
Mike Sharov
748b0f0098 Add DOUBLE-BUFFER extension specification. 2022-06-16 15:29:55 +00:00
Austin Shafer
b69b997c11 dri3: Update dri3.xml to DRI3 1.3
This adds DRI3SetDRMDeviceInUse.
2022-05-27 09:23:20 -04:00
Matt Turner
0997874864 xcb-proto 1.15
Signed-off-by: Matt Turner <mattst88@gmail.com>
2022-05-03 13:45:25 -07:00
Peter Harris
70ca65fa35 glx,xprint: place explicit padding between lists
Adjacent lists of char should not have any automatic padding added,
since the alignment requirements for both are the same. Add explicit
padding where it is required.

Signed-off-by: Peter Harris <pharris@opentext.com>
2021-12-21 06:25:29 +00:00
Joshua Root
be9c255b6b Adjust to automake 1.16.4 changes
The pythondir variable is now defined relative to ${PYTHON_PREFIX}.
2021-11-17 16:35:32 +00:00