Skip to content

string list functions

Markus Armbruster qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v7 Latest3 patches 4 repliesIn review

Changes in v7 from the cover letter

* Old PATCH 1 dropped
The proposed str_split() is a composition of g_strsplit() and a conversion from char ** to strList *. I'm willing to accept a conversion function str_list_from_strv() next to strv_from_str_list(). I doubt having a function for the composition is worth the trouble.
* Old PATCH 4 dropped
The tests mostly test g_strsplit(). I'm willing to accept focused tests for strv_from_str_list() and str_list_from_strv().
* PATCH 1-3: Commit messages tweaked
* PATCH 2: strv_from_strList() renamed strv_from_str_list(), and moved to qapi/qapi-type-helpers.c. Function comment tweaked. Local variable @argv renamed to @strv.
* PATCH 3: Adjust for the rename.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3qapi: New QAPI_LIST_LENGTH()include/qapi/util.h+13 -01 reply
2/3qapi: New strv_from_str_list()include/qapi/type-helpers.h qapi/qapi-type-helpers.c+22 -01 reply
3/3migration: simplify exec migration functionsmigration/exec.c+8 -490 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauFabiano RosasPhilippe Mathieu-Daudé
1/3R-b R-b
2/3R-b R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v7 thread

Cover letter [PATCH v7 0/3] string list functions

This is Steve's work (v1 to v5), tweaked by Philippe (v6), and now by me.

v7:
* Old PATCH 1 dropped
The proposed str_split() is a composition of g_strsplit() and a conversion from char ** to strList *. I'm willing to accept a conversion function str_list_from_strv() next to strv_from_str_list(). I doubt having a function for the composition is worth the trouble.
* Old PATCH 4 dropped
The tests mostly test g_strsplit(). I'm willing to accept focused tests for strv_from_str_list() and str_list_from_strv().
* PATCH 1-3: Commit messages tweaked
* PATCH 2: strv_from_strList() renamed strv_from_str_list(), and moved to qapi/qapi-type-helpers.c. Function comment tweaked. Local variable @argv renamed to @strv.
* PATCH 3: Adjust for the rename.

Steve Sistare (3):
qapi: New QAPI_LIST_LENGTH()
qapi: New strv_from_str_list()
migration: simplify exec migration functions

 include/qapi/type-helpers.h |  8 ++++++
 include/qapi/util.h         | 13 +++++++++
 migration/exec.c            | 57 ++++++-------------------------------
 qapi/qapi-type-helpers.c    | 14 +++++++++
 4 files changed, 43 insertions(+), 49 deletions(-)
Signature · 1 line
2.43.0