- Mar 04, 2025
-
-
Enrico Weigelt, metux IT consult . authored
Simplify writing reply payload into just one block. This also makes further simplifications by subsequent patches easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
As a preparation for futher simplication of reply transmission code flow (*1) and reducing their diff size, make sure that declaration & initialization of reply structs all following a common scheme: always named "rep", declared right where needed. *1) xorg/xserver#1701 Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
- Mar 03, 2025
-
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
No need for going through heap, stack is also fine. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Make the code a bit easier to read by using initialization of the reply structs, at the point of declaration. Most of them aren't written to later, just passed into WriteReplyToClient(). Also dropping some useless zero assignments (struct initializers automatically zero-out unmentioned fields). Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
The payload lengths is already known, so we can easily collect the data in a stack buffer and only need one WriteToClient() operation. This also clears the road for further simplification/unification of the reply sending code, coming with follow-up commits. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Small buffers easily fit on stack, so their allocation can be simplified. No need to go through heap and have extra free() calls on each return point. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for doing byte-swapping in network buffer structs which aren't requests or reply structs. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros for preparing and sending replies to clients. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-
Enrico Weigelt, metux IT consult . authored
Use the new macros to make request struct parsing / field swapping much easier. Signed-off-by:
Enrico Weigelt, metux IT consult <info@metux.net>
-