Enrico Weigelt, metux IT consult
6efd1a85e8
Xi: ProcXIAllowEvents(): untwist request header handling
...
The Xi protocol has some pretty unclean design aspect: instead of adding a
new sub-request type, version 2.2 introduced a different request structure
with some extra fields. So depending on which version the client has selected,
we need to operate on separate structs.
In the current implementation, there's a unclean hack by using the extended
structure and only accessing the extra fields when using v2.2 or above.
Even though this works, it's making the code unnecessarily complicated and
blocking the use if canonical request parsing macros (which are coming with
subsequent commits).
Thus, it's time to clean it up and only use the exactly correct structs
in the two different cases. The trick is just branching by version and pick
out the the interesting values from the corresponding structs, so they can
later be used in the (mostly) version independent part.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net >
2025-08-31 16:09:10 +02:00
..
2025-06-12 16:17:35 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:52 +00:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-07-23 12:23:06 +02:00
2025-06-12 16:17:35 +02:00
2025-07-23 12:23:06 +02:00
2025-08-18 10:52:49 +02:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:52 +00:00
2025-08-05 12:58:07 +02:00
2025-08-18 10:52:49 +02:00
2025-08-05 12:58:07 +02:00
2025-07-23 12:24:27 +02:00
2025-08-29 13:10:59 +02:00
2025-08-05 12:58:07 +02:00
2025-08-31 14:16:18 +02:00
2025-08-05 12:58:07 +02:00
2025-08-29 13:11:43 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-24 12:11:24 +02:00
2025-08-05 12:58:07 +02:00
2025-08-29 13:11:20 +02:00
2025-08-05 12:58:07 +02:00
2025-08-24 12:11:24 +02:00
2025-08-05 12:58:07 +02:00
2025-08-24 12:11:24 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 17:21:44 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 17:21:44 +02:00
2025-08-05 12:58:07 +02:00
2025-08-29 13:11:32 +02:00
2025-08-05 12:58:07 +02:00
2025-08-31 16:04:18 +02:00
2025-08-05 12:58:07 +02:00
2025-07-03 12:01:52 +02:00
2025-08-29 11:42:31 +02:00
2025-08-05 12:58:07 +02:00
2025-08-29 11:42:22 +02:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 16:17:35 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2024-10-10 13:38:31 +00:00
2025-06-12 16:53:43 +02:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-02-06 22:28:51 +00:00
2025-08-05 12:58:07 +02:00
2025-08-31 16:09:10 +02:00
2025-08-05 12:58:07 +02:00
2025-08-18 10:52:49 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 16:19:33 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 17:21:43 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-07-23 12:23:06 +02:00
2025-08-29 14:32:39 +02:00
2025-08-05 12:58:07 +02:00
2025-08-24 12:11:24 +02:00
2025-08-05 12:58:07 +02:00
2025-08-29 13:10:48 +02:00
2025-08-29 13:10:48 +02:00
2025-08-29 11:39:51 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2025-08-31 10:04:27 +02:00
2025-08-05 12:58:07 +02:00
2025-06-12 16:52:07 +02:00
2025-08-05 12:58:07 +02:00
2025-08-22 14:27:29 +02:00
2025-08-05 12:58:07 +02:00
2024-09-01 22:21:12 +00:00
2025-06-12 16:34:14 +02:00
2025-08-05 12:58:07 +02:00