static void netfilter_set_status(Object *obj, const char *str, Error **errp)

{

    NetFilterState *nf = NETFILTER(obj);

    NetFilterClass *nfc = NETFILTER_GET_CLASS(obj);



    if (strcmp(str, "on") && strcmp(str, "off")) {

        error_setg(errp, "Invalid value for netfilter status, "

                         "should be 'on' or 'off'");

        return;

    }

    if (nf->on == !strcmp(str, "on")) {

        return;

    }

    nf->on = !nf->on;

    if (nfc->status_changed) {

        nfc->status_changed(nf, errp);

    }

}

static void netfilter_set_status(Object *obj, const char *str, Error **errp)

{

    NetFilterState *nf = NETFILTER(obj);

    NetFilterClass *nfc = NETFILTER_GET_CLASS(obj);



    if (strcmp(str, "on") && strcmp(str, "off")) {

        error_setg(errp, "Invalid value for netfilter status, "

                         "should be 'on' or 'off'");

        return;

    }

    if (nf->on == !strcmp(str, "on")) {

        return;

    }

    nf->on = !nf->on;

    if (nfc->status_changed) {

        nfc->status_changed(nf, errp);

    }

}

static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)

{

    NetFilterState *nf = NETFILTER(VAR_0);

    NetFilterClass *nfc = NETFILTER_GET_CLASS(VAR_0);



    if (strcmp(VAR_1, "on") && strcmp(VAR_1, "off")) {

        error_setg(VAR_2, "Invalid value for netfilter status, "

                         "should be 'on' or 'off'");

        return;

    }

    if (nf->on == !strcmp(VAR_1, "on")) {

        return;

    }

    nf->on = !nf->on;

    if (nfc->status_changed) {

        nfc->status_changed(nf, VAR_2);

    }

}

static void FUNC_0(Object *VAR_0, const char *VAR_1, Error **VAR_2)
{ NetFilterState *nf = NETFILTER(VAR_0); NetFilterClass *nfc = NETFILTER_GET_CLASS(VAR_0); if (strcmp(VAR_1, "on") && strcmp(VAR_1, "off")) { error_setg(VAR_2, "Invalid value for netfilter status, "
"should be 'on' or 'off'"); return; } if (nf->on == !strcmp(VAR_1, "on")) { return; } nf->on = !nf->on; if (nfc->status_changed) { nfc->status_changed(nf, VAR_2); } }