qapi/net: Wean passt off QAPI type String to improve documentation
String's doc comment is useless. Replace its use in NetDevPasstOptions by identical types with hopefully useful documentation. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20260506105421.2461117-3-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> [One Since: fixed up]
This commit is contained in:
@@ -637,7 +637,7 @@ static GPtrArray *net_passt_decode_args(const NetdevPasstOptions *passt,
|
||||
}
|
||||
|
||||
if (passt->has_search && passt->search) {
|
||||
const StringList *list = passt->search;
|
||||
const PasstSearchList *list = passt->search;
|
||||
GString *domains = g_string_new(list->value->str);
|
||||
|
||||
list = list->next;
|
||||
@@ -652,7 +652,7 @@ static GPtrArray *net_passt_decode_args(const NetdevPasstOptions *passt,
|
||||
}
|
||||
|
||||
if (passt->has_tcp_ports && passt->tcp_ports) {
|
||||
const StringList *list = passt->tcp_ports;
|
||||
const PasstPortForwardList *list = passt->tcp_ports;
|
||||
GString *tcp_ports = g_string_new(list->value->str);
|
||||
|
||||
list = list->next;
|
||||
@@ -667,7 +667,7 @@ static GPtrArray *net_passt_decode_args(const NetdevPasstOptions *passt,
|
||||
}
|
||||
|
||||
if (passt->has_udp_ports && passt->udp_ports) {
|
||||
const StringList *list = passt->udp_ports;
|
||||
const PasstPortForwardList *list = passt->udp_ports;
|
||||
GString *udp_ports = g_string_new(list->value->str);
|
||||
|
||||
list = list->next;
|
||||
@@ -682,7 +682,7 @@ static GPtrArray *net_passt_decode_args(const NetdevPasstOptions *passt,
|
||||
}
|
||||
|
||||
if (passt->has_param && passt->param) {
|
||||
const StringList *list = passt->param;
|
||||
const PasstParameterList *list = passt->param;
|
||||
|
||||
while (list) {
|
||||
g_ptr_array_add(args, g_strdup(list->value->str));
|
||||
|
||||
Reference in New Issue
Block a user