/* AUTOMATICALLY GENERATED by qapi-gen.py DO NOT MODIFY */

/*
 * Schema-defined QAPI visitors
 *
 * Copyright IBM, Corp. 2011
 * Copyright (C) 2014-2018 Red Hat, Inc.
 *
 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
 * See the COPYING.LIB file in the top-level directory.
 */

#include "qemu/osdep.h"
#include "qapi/error.h"
#include "qapi-visit-vfio.h"
#include "qapi-features.h"

bool visit_type_QapiVfioMigrationState(Visitor *v, const char *name,
                 QapiVfioMigrationState *obj, Error **errp)
{
    int value = *obj;
    bool ok = visit_type_enum(v, name, &value, &QapiVfioMigrationState_lookup, errp);
    *obj = value;
    return ok;
}

bool visit_type_q_obj_VFIO_MIGRATION_arg_members(Visitor *v, q_obj_VFIO_MIGRATION_arg *obj, Error **errp)
{
    if (!visit_type_str(v, "device-id", &obj->device_id, errp)) {
        return false;
    }
    if (!visit_type_str(v, "qom-path", &obj->qom_path, errp)) {
        return false;
    }
    if (!visit_type_QapiVfioMigrationState(v, "device-state", &obj->device_state, errp)) {
        return false;
    }
    return true;
}

/* Dummy declaration to prevent empty .o file */
char qapi_dummy_qapi_visit_vfio_c;
