/* Searches an option list for an option with the given name  */
QEMUOptionParameter* get_option_parameter(QEMUOptionParameter *list, const char *name)
/* Searches an option list for an option with the given name  */
QEMUOptionParameter* get_option_parameter(QEMUOptionParameter *list, const char *name)
{
    while (list && list->name) {
        if (!strcmp(list->name, name)) {
            return list;
        }
        list++;
    }
    return NULL;
}