opts_start_optional(Visitor *v, bool *present, const char *name,

                       Error **errp)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v);



    /* we only support a single mandatory scalar field in a list node */

    assert(ov->repeated_opts == NULL);

    *present = (lookup_distinct(ov, name, NULL) != NULL);

}

opts_start_optional(Visitor *v, bool *present, const char *name,

                       Error **errp)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, v);



    

    assert(ov->repeated_opts == NULL);

    *present = (lookup_distinct(ov, name, NULL) != NULL);

}

FUNC_0(Visitor *VAR_0, bool *VAR_1, const char *VAR_2,

                       Error **VAR_3)

{

    OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0);



    

    assert(ov->repeated_opts == NULL);

    *VAR_1 = (lookup_distinct(ov, VAR_2, NULL) != NULL);

}

FUNC_0(Visitor *VAR_0, bool *VAR_1, const char *VAR_2,
Error **VAR_3)
{ OptsVisitor *ov = DO_UPCAST(OptsVisitor, visitor, VAR_0); assert(ov->repeated_opts == NULL); *VAR_1 = (lookup_distinct(ov, VAR_2, NULL) != NULL); }