This was v3 patch 2/22, reworked to address the confusion about how a
structured reply header is read in two pieces before getting to the
payload portion.

I'm still working on rebasing the rest of my v3 series (patches 1,
3-22) from other comments given, but this seemed independent enough
that it's worth posting now rather than holding it up for the rest of
the series.

Eric Blake (4):
  states: Document our reliance on type overlaps
  generator: Finish parsing structured header in states-reply.c
  generator: Rename states-reply-structured to states-reply-chunk
  internal: Refactor layout of replies in sbuf

 lib/internal.h                                |  16 ++-
 generator/state_machine.ml                    |  53 ++++---
 generator/states-reply.c                      |  65 +++++++--
 ...eply-structured.c => states-reply-chunk.c} | 129 ++++++++----------
 generator/states-reply-simple.c               |   4 +-
 generator/Makefile.am                         |   2 +-
 6 files changed, 143 insertions(+), 126 deletions(-)
 rename generator/{states-reply-structured.c => states-reply-chunk.c} (78%)

-- 
2.40.1

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://listman.redhat.com/mailman/listinfo/libguestfs

Reply via email to