aboutsummaryrefslogtreecommitdiff
path: root/include/monitor/hmp.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2023-01-24 13:19:28 +0100
committerMarkus Armbruster <armbru@redhat.com>2023-02-04 07:56:54 +0100
commit0d79271b5702d27736fd081d8994e857ae8b5db5 (patch)
tree1a2a88757cb5b271d032f9fd170c32d7c8a72958 /include/monitor/hmp.h
parent52cafcea43db82a52596d37b347b84e3c9ac8452 (diff)
downloadqemu-0d79271b5702d27736fd081d8994e857ae8b5db5.zip
qemu-0d79271b5702d27736fd081d8994e857ae8b5db5.tar.gz
qemu-0d79271b5702d27736fd081d8994e857ae8b5db5.tar.bz2
hmp: Rewrite strlist_from_comma_list() as hmp_split_at_comma()
Use g_strsplit() for the actual splitting. Give external linkage, so the next commit can move one of its users to another source file. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20230124121946.1139465-15-armbru@redhat.com>
Diffstat (limited to 'include/monitor/hmp.h')
-rw-r--r--include/monitor/hmp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/monitor/hmp.h b/include/monitor/hmp.h
index 6fafa7f..d60d130 100644
--- a/include/monitor/hmp.h
+++ b/include/monitor/hmp.h
@@ -19,6 +19,7 @@
bool hmp_handle_error(Monitor *mon, Error *err);
void hmp_help_cmd(Monitor *mon, const char *name);
+strList *hmp_split_at_comma(const char *str);
void hmp_info_name(Monitor *mon, const QDict *qdict);
void hmp_info_version(Monitor *mon, const QDict *qdict);