Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codegen with the latest xcb-proto and update #4

Merged
merged 6 commits into from
Jan 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PROTO_PATH := /usr/share/xcb

EXTENSIONS := bigreq composite damage dpms dri2 dri3 ge glx present randr \
EXTENSIONS := bigreq composite damage dbe dpms dri2 dri3 ge glx present randr \
record render res screensaver shape shm sync xc_misc xevie xf86dri \
xf86vidmode xfixes xinerama xinput xkb xprint xselinux xtest xvmc xv

Expand Down
162 changes: 162 additions & 0 deletions xcb-dbe.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
;;; xcb-dbe.el --- X11 Dbe extension -*- lexical-binding: t -*-

;; Copyright (C) 2015-2024 Free Software Foundation, Inc.

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.

;;; Commentary:

;; This file was generated by 'el_client.el' from 'dbe.xml',
;; which you can retrieve from <git://anongit.freedesktop.org/xcb/proto>.

;;; Code:

(require 'xcb-types)

(defconst xcb:dbe:-extension-xname "DOUBLE-BUFFER")
(defconst xcb:dbe:-extension-name "Dbe")
(defconst xcb:dbe:-major-version 1)
(defconst xcb:dbe:-minor-version 0)

(require 'xcb-xproto)

(xcb:deftypealias 'xcb:dbe:BackBuffer 'xcb:DRAWABLE)

(defconst xcb:dbe:SwapAction:Undefined 0)
(defconst xcb:dbe:SwapAction:Background 1)
(defconst xcb:dbe:SwapAction:Untouched 2)
(defconst xcb:dbe:SwapAction:Copied 3)

(defclass xcb:dbe:SwapInfo
(xcb:-struct)
((window :initarg :window :type xcb:WINDOW)
(swap-action :initarg :swap-action :type xcb:CARD8)
(pad~0 :initform 3 :type xcb:-pad)))

(defclass xcb:dbe:BufferAttributes
(xcb:-struct)
((window :initarg :window :type xcb:WINDOW)))

(defclass xcb:dbe:VisualInfo
(xcb:-struct)
((visual-id :initarg :visual-id :type xcb:VISUALID)
(depth :initarg :depth :type xcb:CARD8)
(perf-level :initarg :perf-level :type xcb:CARD8)
(pad~0 :initform 2 :type xcb:-pad)))

(defclass xcb:dbe:VisualInfos
(xcb:-struct)
((n-infos :initarg :n-infos :type xcb:CARD32)
(infos~ :initform
'(name infos type xcb:dbe:VisualInfo size
(xcb:-fieldref 'n-infos))
:type xcb:-list)
(infos :initarg :infos :type xcb:-ignore)))

(defclass xcb:dbe:BadBuffer
(xcb:-error)
((~code :initform 0)
(bad-buffer :initarg :bad-buffer :type xcb:dbe:BackBuffer)))

(defclass xcb:dbe:QueryVersion
(xcb:-request)
((~opcode :initform 0 :type xcb:-u1)
(major-version :initarg :major-version :type xcb:CARD8)
(minor-version :initarg :minor-version :type xcb:CARD8)
(pad~0 :initform 2 :type xcb:-pad)))
(defclass xcb:dbe:QueryVersion~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(major-version :initarg :major-version :type xcb:CARD8)
(minor-version :initarg :minor-version :type xcb:CARD8)
(pad~1 :initform 22 :type xcb:-pad)))

(defclass xcb:dbe:AllocateBackBuffer
(xcb:-request)
((~opcode :initform 1 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)
(swap-action :initarg :swap-action :type xcb:CARD8)
(pad~0 :initform 3 :type xcb:-pad)))

(defclass xcb:dbe:DeallocateBackBuffer
(xcb:-request)
((~opcode :initform 2 :type xcb:-u1)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)))

(defclass xcb:dbe:SwapBuffers
(xcb:-request)
((~opcode :initform 3 :type xcb:-u1)
(n-actions :initarg :n-actions :type xcb:CARD32)
(actions~ :initform
'(name actions type xcb:dbe:SwapInfo size
(xcb:-fieldref 'n-actions))
:type xcb:-list)
(actions :initarg :actions :type xcb:-ignore)))

(defclass xcb:dbe:BeginIdiom
(xcb:-request)
((~opcode :initform 4 :type xcb:-u1)))

(defclass xcb:dbe:EndIdiom
(xcb:-request)
((~opcode :initform 5 :type xcb:-u1)))

(defclass xcb:dbe:GetVisualInfo
(xcb:-request)
((~opcode :initform 6 :type xcb:-u1)
(n-drawables :initarg :n-drawables :type xcb:CARD32)
(drawables~ :initform
'(name drawables type xcb:DRAWABLE size
(xcb:-fieldref 'n-drawables))
:type xcb:-list)
(drawables :initarg :drawables :type xcb:-ignore)))
(defclass xcb:dbe:GetVisualInfo~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(n-supported-visuals :initarg :n-supported-visuals :type xcb:CARD32)
(pad~1 :initform 20 :type xcb:-pad)
(supported-visuals~ :initform
'(name supported-visuals type xcb:dbe:VisualInfos size
(xcb:-fieldref 'n-supported-visuals))
:type xcb:-list)
(supported-visuals :initarg :supported-visuals :type xcb:-ignore)))

(defclass xcb:dbe:GetBackBufferAttributes
(xcb:-request)
((~opcode :initform 7 :type xcb:-u1)
(buffer :initarg :buffer :type xcb:dbe:BackBuffer)))
(defclass xcb:dbe:GetBackBufferAttributes~reply
(xcb:-reply)
((pad~0 :initform 1 :type xcb:-pad)
(~sequence :type xcb:CARD16)
(length :type xcb:CARD32)
(attributes :initarg :attributes :type xcb:dbe:BufferAttributes)
(pad~1 :initform 20 :type xcb:-pad)))

(defconst xcb:dbe:error-number-class-alist
'((0 . xcb:dbe:BadBuffer))
"(error-number . error-class) alist.")



(provide 'xcb-dbe)

;;; xcb-dbe.el ends here
26 changes: 24 additions & 2 deletions xcb-dpms.el
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@

(defconst xcb:dpms:-extension-xname "DPMS")
(defconst xcb:dpms:-extension-name "DPMS")
(defconst xcb:dpms:-major-version 0)
(defconst xcb:dpms:-minor-version 0)
(defconst xcb:dpms:-major-version 1)
(defconst xcb:dpms:-minor-version 2)

(require 'xcb-xproto)

(defclass xcb:dpms:GetVersion
(xcb:-request)
Expand Down Expand Up @@ -105,6 +107,26 @@
(state :initarg :state :type xcb:BOOL)
(pad~1 :initform 21 :type xcb:-pad)))

(defconst xcb:dpms:EventMask:InfoNotify 1)

(defclass xcb:dpms:SelectInput
(xcb:-request)
((~opcode :initform 8 :type xcb:-u1)
(event-mask :initarg :event-mask :type xcb:CARD32)))

(defclass xcb:dpms:InfoNotify
(xcb:-generic-event)
((~evtype :initform 0)
(pad~0 :initform 2 :type xcb:-pad)
(timestamp :initarg :timestamp :type xcb:TIMESTAMP)
(power-level :initarg :power-level :type xcb:CARD16)
(state :initarg :state :type xcb:BOOL)
(pad~1 :initform 21 :type xcb:-pad)))

(defconst xcb:dpms:xge-number-class-alist
'((0 . xcb:dpms:InfoNotify))
"(xge-number . event-class) alist.")



(provide 'xcb-dpms)
Expand Down
9 changes: 8 additions & 1 deletion xcb-dri3.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(defconst xcb:dri3:-extension-xname "DRI3")
(defconst xcb:dri3:-extension-name "DRI3")
(defconst xcb:dri3:-major-version 1)
(defconst xcb:dri3:-minor-version 2)
(defconst xcb:dri3:-minor-version 3)

(require 'xcb-xproto)

Expand Down Expand Up @@ -200,6 +200,13 @@
:type xcb:-list)
(buffers :initarg :buffers :type xcb:-ignore)))

(defclass xcb:dri3:SetDRMDeviceInUse
(xcb:-request)
((~opcode :initform 9 :type xcb:-u1)
(window :initarg :window :type xcb:WINDOW)
(drmMajor :initarg :drmMajor :type xcb:CARD32)
(drmMinor :initarg :drmMinor :type xcb:CARD32)))



(provide 'xcb-dri3)
Expand Down
6 changes: 4 additions & 2 deletions xcb-glx.el
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@

(xcb:deftypealias 'xcb:glx:DRAWABLE 'xcb:-u4)

(xcb:deftypealias 'xcb:glx:FLOAT32 'xcb:glx:float)
(xcb:deftypealias 'xcb:glx:FLOAT32 'xcb:float)

(xcb:deftypealias 'xcb:glx:FLOAT64 'xcb:glx:double)
(xcb:deftypealias 'xcb:glx:FLOAT64 'xcb:double)

(xcb:deftypealias 'xcb:glx:BOOL32 'xcb:CARD32)

Expand Down Expand Up @@ -575,6 +575,7 @@
(xcb:-fieldref 'gl-str-len))
:type xcb:-list)
(gl-extension-string :initarg :gl-extension-string :type xcb:-ignore)
(pad~0 :initform 4 :type xcb:-pad-align)
(glx-extension-string~ :initform
'(name glx-extension-string type xcb:char size
(xcb:-fieldref 'glx-str-len))
Expand Down Expand Up @@ -619,6 +620,7 @@
(xcb:-fieldref 'gl-str-len))
:type xcb:-list)
(gl-extension-string :initarg :gl-extension-string :type xcb:-ignore)
(pad~0 :initform 4 :type xcb:-pad-align)
(glx-extension-string~ :initform
'(name glx-extension-string type xcb:char size
(xcb:-fieldref 'glx-str-len))
Expand Down
4 changes: 3 additions & 1 deletion xcb-present.el
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
(defconst xcb:present:-extension-xname "Present")
(defconst xcb:present:-extension-name "Present")
(defconst xcb:present:-major-version 1)
(defconst xcb:present:-minor-version 2)
(defconst xcb:present:-minor-version 3)

(require 'xcb-xproto)

Expand All @@ -55,11 +55,13 @@
(defconst xcb:present:Option:Copy 2)
(defconst xcb:present:Option:UST 4)
(defconst xcb:present:Option:Suboptimal 8)
(defconst xcb:present:Option:AsyncMayTear 16)

(defconst xcb:present:Capability:None 0)
(defconst xcb:present:Capability:Async 1)
(defconst xcb:present:Capability:Fence 2)
(defconst xcb:present:Capability:UST 4)
(defconst xcb:present:Capability:AsyncMayTear 8)

(defconst xcb:present:CompleteKind:Pixmap 0)
(defconst xcb:present:CompleteKind:NotifyMSC 1)
Expand Down
Loading