On Fri, Jan 24, 2014 at 05:34:35PM +0800, Amos Kong wrote: > On Fri, Jan 24, 2014 at 05:12:12PM +0800, Fam Zheng wrote: > > On Thu, 01/23 22:46, Amos Kong wrote:
> > > index 0000000..03179fa > > > --- /dev/null > > > +++ b/scripts/qapi-introspect.py > > > @@ -0,0 +1,172 @@ > > > +# > > > +# QAPI introspection info generator > > > +# > > > +# Copyright (C) 2014 Red Hat, Inc. > > > +# > > > +# Authors: > > > +# Amos Kong <ak...@redhat.com> > > > +# > > > +# This work is licensed under the terms of the GNU GPLv2. > > > +# See the COPYING.LIB file in the top-level directory. > > > + > > > +from ordereddict import OrderedDict > > > +from qapi import * > > > +import sys > > > +import os > > > +import getopt > > > +import errno > > > + > > > + > > > +try: > > > + opts, args = getopt.gnu_getopt(sys.argv[1:], "hp:o:", > > > + ["header", "prefix=", "output-dir="]) > > > +except getopt.GetoptError, err: > > > + print str(err) > > > + sys.exit(1) > > > + > > > +output_dir = "" > > > +prefix = "" > > > +h_file = 'qapi-introspect.h' > > > + > > > +do_h = False > > > + > > > +for o, a in opts: > > > + if o in ("-p", "--prefix"): > > > + prefix = a > > > > Is this option used in your series? > > Not, I will remove it. It's not used currently, but it will be used when we add schema query command for qemu-guest-agent in next step, I will add the -p option at that time. -- Amos.