int qemu_read_config_file(const char *filename)

{

    FILE *f = fopen(filename, "r");

    int ret;



    if (f == NULL) {

        return -errno;

    }



    ret = qemu_config_parse(f, vm_config_groups, filename);

    fclose(f);



    if (ret == 0) {

        return 0;

    } else {

        return -EINVAL;

    }

}

int qemu_read_config_file(const char *filename)

{

    FILE *f = fopen(filename, "r");

    int ret;



    if (f == NULL) {

        return -errno;

    }



    ret = qemu_config_parse(f, vm_config_groups, filename);

    fclose(f);



    if (ret == 0) {

        return 0;

    } else {

        return -EINVAL;

    }

}

int FUNC_0(const char *VAR_0)

{

    FILE *f = fopen(VAR_0, "r");

    int VAR_1;



    if (f == NULL) {

        return -errno;

    }



    VAR_1 = qemu_config_parse(f, vm_config_groups, VAR_0);

    fclose(f);



    if (VAR_1 == 0) {

        return 0;

    } else {

        return -EINVAL;

    }

}

int FUNC_0(const char *VAR_0)
{ FILE *f = fopen(VAR_0, "r"); int VAR_1; if (f == NULL) { return -errno; } VAR_1 = qemu_config_parse(f, vm_config_groups, VAR_0); fclose(f); if (VAR_1 == 0) { return 0; } else { return -EINVAL; } }