user: Prefer fast cpu_env() over slower CPU QOM cast macro
[qemu/ar7.git] / include / qapi / type-helpers.h
blobfc8352cdec07eee8da44adc36a3c1e6718a941f3
1 /*
2 * QAPI common helper functions
4 * This file provides helper functions related to types defined
5 * in the QAPI schema.
7 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
8 * See the COPYING.LIB file in the top-level directory.
12 #include "qapi/qapi-types-common.h"
14 HumanReadableText *human_readable_text_from_str(GString *str);
17 * Produce and return a NULL-terminated array of strings from @list.
18 * The result is g_malloc()'d and all strings are g_strdup()'d. It
19 * can be freed with g_strfreev(), or by g_auto(GStrv) automatic
20 * cleanup.
22 char **strv_from_str_list(const strList *list);