qemu-option.c (33c6cae44eccea5e627c2dc5cbf31456db90fc38) | qemu-option.c (87ea75d5e135c0527c6a9dbac4317913409f28c7) |
---|---|
1/* 2 * Commandline option parsing functions 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2009 Kevin Wolf <kwolf@redhat.com> 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 777 unchanged lines hidden (view full) --- 786 opts->id = g_strdup(id); 787 opts->list = list; 788 loc_save(&opts->loc); 789 QTAILQ_INIT(&opts->head); 790 QTAILQ_INSERT_TAIL(&list->head, opts, next); 791 return opts; 792} 793 | 1/* 2 * Commandline option parsing functions 3 * 4 * Copyright (c) 2003-2008 Fabrice Bellard 5 * Copyright (c) 2009 Kevin Wolf <kwolf@redhat.com> 6 * 7 * Permission is hereby granted, free of charge, to any person obtaining a copy 8 * of this software and associated documentation files (the "Software"), to deal --- 777 unchanged lines hidden (view full) --- 786 opts->id = g_strdup(id); 787 opts->list = list; 788 loc_save(&opts->loc); 789 QTAILQ_INIT(&opts->head); 790 QTAILQ_INSERT_TAIL(&list->head, opts, next); 791 return opts; 792} 793 |
794QemuOpts *qemu_opts_create_nofail(QemuOptsList *list) 795{ 796 QemuOpts *opts; 797 Error *errp = NULL; 798 opts = qemu_opts_create(list, NULL, 0, &errp); 799 assert_no_error(errp); 800 return opts; 801} 802 | |
803void qemu_opts_reset(QemuOptsList *list) 804{ 805 QemuOpts *opts, *next_opts; 806 807 QTAILQ_FOREACH_SAFE(opts, &list->head, next, next_opts) { 808 qemu_opts_del(opts); 809 } 810} --- 354 unchanged lines hidden --- | 794void qemu_opts_reset(QemuOptsList *list) 795{ 796 QemuOpts *opts, *next_opts; 797 798 QTAILQ_FOREACH_SAFE(opts, &list->head, next, next_opts) { 799 qemu_opts_del(opts); 800 } 801} --- 354 unchanged lines hidden --- |