Il 24/04/2013 18:08, Amos Kong ha scritto: > diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py > index 9e19920..e449a14 100644 > --- a/scripts/qapi-types.py > +++ b/scripts/qapi-types.py > @@ -276,6 +276,7 @@ fdecl.write(mcgen(''' > #include <stdbool.h> > #include <stdint.h> > > +struct strList; > ''', > guard=guardname(h_file))) > > diff --git a/scripts/qapi.py b/scripts/qapi.py > index afc5f32..14f9f4d 100644 > --- a/scripts/qapi.py > +++ b/scripts/qapi.py > @@ -166,11 +166,11 @@ def c_fun(name, protect=True): > return c_var(name, protect).replace('.', '_') > > def c_list_type(name): > - return '%sList' % name > + return 'struct %sList' % name > > def type_name(name): > if type(name) == list: > - return c_list_type(name[0]) > + return '%sList' % name[0] > return name
This second change is needed to generate the correct function names, right? If so, Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> Paolo