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

{

    if (!strcasecmp(str, "on"))

        bit_prop_set(dev, prop, true);

    else if (!strcasecmp(str, "off"))

        bit_prop_set(dev, prop, false);

    else

        return -EINVAL;

    return 0;

}

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

{

    if (!strcasecmp(str, "on"))

        bit_prop_set(dev, prop, true);

    else if (!strcasecmp(str, "off"))

        bit_prop_set(dev, prop, false);

    else

        return -EINVAL;

    return 0;

}

static int parse_bit(DeviceState *dev, Property *prop, const char *str)     if (!strcasecmp(str, "on"))         bit_prop_set(dev, prop, true);     else if (!strcasecmp(str, "off"))         bit_prop_set(dev, prop, false);         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;         return -EINVAL;     return 0;
static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)

{

    if (!strcasecmp(VAR_2, "on"))

        bit_prop_set(VAR_0, VAR_1, true);

    else if (!strcasecmp(VAR_2, "off"))

        bit_prop_set(VAR_0, VAR_1, false);

    else

        return -EINVAL;

    return 0;

}

static int FUNC_0(DeviceState *VAR_0, Property *VAR_1, const char *VAR_2)
{ if (!strcasecmp(VAR_2, "on"))
bit_prop_set(VAR_0, VAR_1, true); else if (!strcasecmp(VAR_2, "off"))
bit_prop_set(VAR_0, VAR_1, false); else
return -EINVAL; return 0; }