qemu-option: rename bool -> boolean
We need this to allow the use of <stdbool.h> Signed-off-by: Juan Quintela <quintela@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
This commit is contained in:
		
							parent
							
								
									7990496dcb
								
							
						
					
					
						commit
						1f5c1775cd
					
				@ -472,7 +472,7 @@ struct QemuOpt {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    QemuOptDesc  *desc;
 | 
					    QemuOptDesc  *desc;
 | 
				
			||||||
    union {
 | 
					    union {
 | 
				
			||||||
        int      bool;
 | 
					        int      boolean;
 | 
				
			||||||
        uint64_t uint;
 | 
					        uint64_t uint;
 | 
				
			||||||
    } value;
 | 
					    } value;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -512,7 +512,7 @@ int qemu_opt_get_bool(QemuOpts *opts, const char *name, int defval)
 | 
				
			|||||||
    if (opt == NULL)
 | 
					    if (opt == NULL)
 | 
				
			||||||
        return defval;
 | 
					        return defval;
 | 
				
			||||||
    assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
 | 
					    assert(opt->desc && opt->desc->type == QEMU_OPT_BOOL);
 | 
				
			||||||
    return opt->value.bool;
 | 
					    return opt->value.boolean;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval)
 | 
					uint64_t qemu_opt_get_number(QemuOpts *opts, const char *name, uint64_t defval)
 | 
				
			||||||
@ -544,7 +544,7 @@ static int qemu_opt_parse(QemuOpt *opt)
 | 
				
			|||||||
        /* nothing */
 | 
					        /* nothing */
 | 
				
			||||||
        return 0;
 | 
					        return 0;
 | 
				
			||||||
    case QEMU_OPT_BOOL:
 | 
					    case QEMU_OPT_BOOL:
 | 
				
			||||||
        return parse_option_bool(opt->name, opt->str, &opt->value.bool);
 | 
					        return parse_option_bool(opt->name, opt->str, &opt->value.boolean);
 | 
				
			||||||
    case QEMU_OPT_NUMBER:
 | 
					    case QEMU_OPT_NUMBER:
 | 
				
			||||||
        return parse_option_number(opt->name, opt->str, &opt->value.uint);
 | 
					        return parse_option_number(opt->name, opt->str, &opt->value.uint);
 | 
				
			||||||
    case QEMU_OPT_SIZE:
 | 
					    case QEMU_OPT_SIZE:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user