Skip to content
Snippets Groups Projects

xfixes: clean up request handling

Compare changes
  • Side-by-side
  • Inline
Files
3
  • Canonicalize all reply structs onto stack allocation and static
    initialization, like already done in most other extension. So make
    the code easier to understand and allow further simplifications by
    subsequent commits (we can then use generic macros for doing the
    actual sending, as well as byteorder swapping, size computation, etc),
    Also gaining a little bit efficiency by skipping some heap allocations.
    
    Dynamically sized payload buffers (where the upper bound isn't known),
    are still allocated on heap.
    
    Signed-off-by: Enrico Weigelt, metux IT consult .'s avatarEnrico Weigelt, metux IT consult <info@metux.net>
Loading