int object_property_get_enum(Object *obj, const char *name,

                             const char *strings[], Error **errp)

{

    StringOutputVisitor *sov;

    StringInputVisitor *siv;

    int ret;



    sov = string_output_visitor_new(false);

    object_property_get(obj, string_output_get_visitor(sov), name, errp);

    siv = string_input_visitor_new(string_output_get_string(sov));

    string_output_visitor_cleanup(sov);

    visit_type_enum(string_input_get_visitor(siv),

                    &ret, strings, NULL, name, errp);

    string_input_visitor_cleanup(siv);



    return ret;

}

int object_property_get_enum(Object *obj, const char *name,

                             const char *strings[], Error **errp)

{

    StringOutputVisitor *sov;

    StringInputVisitor *siv;

    int ret;



    sov = string_output_visitor_new(false);

    object_property_get(obj, string_output_get_visitor(sov), name, errp);

    siv = string_input_visitor_new(string_output_get_string(sov));

    string_output_visitor_cleanup(sov);

    visit_type_enum(string_input_get_visitor(siv),

                    &ret, strings, NULL, name, errp);

    string_input_visitor_cleanup(siv);



    return ret;

}

    siv = string_input_visitor_new(string_output_get_string(sov));
int FUNC_0(Object *VAR_0, const char *VAR_1,

                             const char *VAR_2[], Error **VAR_3)

{

    StringOutputVisitor *sov;

    StringInputVisitor *siv;

    int VAR_4;



    sov = string_output_visitor_new(false);

    object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, VAR_3);

    siv = string_input_visitor_new(string_output_get_string(sov));

    string_output_visitor_cleanup(sov);

    visit_type_enum(string_input_get_visitor(siv),

                    &VAR_4, VAR_2, NULL, VAR_1, VAR_3);

    string_input_visitor_cleanup(siv);



    return VAR_4;

}

int FUNC_0(Object *VAR_0, const char *VAR_1,
const char *VAR_2[], Error **VAR_3)
{ StringOutputVisitor *sov; StringInputVisitor *siv; int VAR_4; sov = string_output_visitor_new(false); object_property_get(VAR_0, string_output_get_visitor(sov), VAR_1, VAR_3); siv = string_input_visitor_new(string_output_get_string(sov)); string_output_visitor_cleanup(sov); visit_type_enum(string_input_get_visitor(siv),
&VAR_4, VAR_2, NULL, VAR_1, VAR_3); string_input_visitor_cleanup(siv); return VAR_4; }