Home | History | Annotate | Download | only in qemu

Lines Matching refs:desc

509     const QemuOptDesc *desc;
551 assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
561 assert(opt->desc && opt->desc->type == QEMU_OPT_NUMBER);
571 assert(opt->desc && opt->desc->type == QEMU_OPT_SIZE);
577 if (opt->desc == NULL)
579 switch (opt->desc->type) {
605 const QemuOptDesc *desc = opts->list->desc;
608 for (i = 0; desc[i].name != NULL; i++) {
609 if (strcmp(desc[i].name, name) == 0) {
613 if (desc[i].name == NULL) {
626 if (desc[i].name != NULL) {
627 opt->desc = desc+i;
908 * TODO We'll want to use types appropriate for opt->desc->type, but
932 int qemu_opts_validate(QemuOpts *opts, const QemuOptDesc *desc)
936 assert(opts->list->desc[0].name == NULL);
941 for (i = 0; desc[i].name != NULL; i++) {
942 if (strcmp(desc[i].name, opt->name) == 0) {
946 if (desc[i].name == NULL) {
951 opt->desc = &desc[i];