static int parse_drive(DeviceState *dev, Property *prop, const char *str)

{

    DriveInfo **ptr = qdev_get_prop_ptr(dev, prop);



    *ptr = drive_get_by_id(str);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

static int parse_drive(DeviceState *dev, Property *prop, const char *str)

{

    DriveInfo **ptr = qdev_get_prop_ptr(dev, prop);



    *ptr = drive_get_by_id(str);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)

{

    DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1);



    *ptr = drive_get_by_id(VAR_2);

    if (*ptr == NULL)

        return -ENOENT;

    return 0;

}

static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{ DriveInfo **ptr = qdev_get_prop_ptr(VAR_0, VAR_1); *ptr = drive_get_by_id(VAR_2); if (*ptr == NULL)
return -ENOENT; return 0; }