xserver/hw/xfree86
Enrico Weigelt, metux IT consult f94064d0ac dix: add CreateScreenResources callback mechanism
Right now, extensions that need to be called after the CreateScreenResources
proc had been run, must wrap the screen proc vector directly (all of them
forming kind of daisy chain), and so - when called - temporarily restore the
previous one, call it, wrap again, and if the call was successful finally
doing it's own stuff. (same is done for many other procs)

While that approach is looking nice and elegant on the drawing board, it's
complicated, dangerous like a chainsaw and makes debugging hard, leading to
pretty blurred API borders.

Instead introducing a simple approach for letting extension hook into a
post-CreateScreenResources callback list safely, w/o having to care much
about side effects with the call chain. Extensions now can simply register
their business logic and get called back - w/o ever having to mess with the
ScreenRec's internal structures.

Note that these hooks are executed *AFTER* the original CreateScreenResources()
proc had been called SUCCESSFULLY (returned TRUE), so callees can rely on
the DDX/driver had already done it's job.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-02 19:43:54 +02:00
..
common dix: add CreateScreenResources callback mechanism 2025-05-02 19:43:54 +02:00
ddc xfree86: common: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
dixmods xfree86: shmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
doc xfree86: doc: update docs on XF86ModuleData 2025-02-17 19:41:30 +00:00
dri xfree86: dri: use window destructor hook 2025-05-02 19:43:53 +02:00
dri2 dri2: Protect against dri2ClientPrivate assertion failures 2025-02-19 11:25:01 +00:00
drivers (!1949) xfree86: modeset: call miCreateScreenResources() directly 2025-05-02 19:43:52 +02:00
exa xfree86: exa: use CloseScreen hook 2025-05-02 19:43:54 +02:00
fbdevhw man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00
glamor_egl drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
i2c xfree86: i2c: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00:00
int10 xfree86: xf86int10module: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
loader Revert "xfree86: loader: drop unused LoaderShouldIgnoreABI()" 2025-02-07 14:46:21 +01:00
man man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00
modes xfree86: crtc: use CloseScreen hook 2025-05-02 19:43:54 +02:00
os-support xfree86: os-support: fix FTBS when no recent enough libdrm found 2025-02-28 16:15:32 +00:00
parser xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
ramdac xfree86: cursor: use CloseScreen hook 2025-05-02 19:43:54 +02:00
shadowfb xfree86: shadowfb: use CloseScreen hook 2025-05-02 19:43:54 +02:00
utils man pages: use .BR to mark up man page references 2025-03-29 13:36:54 -07:00
vgahw xfree86: vgaHWmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
x86emu xfree86: x86emu: rename segment register fields 2024-06-18 00:41:38 +00:00
xkb dix: unexport non-public functions from dixgrabs.h and document prototypes 2024-10-10 13:50:57 +00:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build meson: Support building Xnest and Xorg on darwin 2022-06-26 09:16:42 +00:00
sdksyms.sh Revert "mi: drop now obsolete mioverlay.h" 2025-02-27 11:53:54 +00:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00