On Mon, 04 May 2015 09:47:11 +0200
Guillaume Le Louët <guillaume.lelo...@gmail.com> wrote:

> Hello.
> 
> The .gitignore in the master branch contains the following lines :
> /qapi-types.[ch]
> /qapi-visit.[ch]
> /qapi-event.[ch]
> 
> Why is it so ? Are they generated automatically each time I compile the 
> project ?
> I am modifying qapi-types.h and qapi-types.c , am I doing wrong ?

Yes, they are created automatically and you should not edit them
manually. Just have a look at the main Makefile:

qapi-modules = $(SRC_PATH)/qapi-schema.json $(SRC_PATH)/qapi/common.json \
               $(SRC_PATH)/qapi/block.json $(SRC_PATH)/qapi/block-core.json \
               $(SRC_PATH)/qapi/event.json

qapi-types.c qapi-types.h :\
$(qapi-modules) $(SRC_PATH)/scripts/qapi-types.py $(qapi-py)
        $(call quiet-command,$(PYTHON) $(SRC_PATH)/scripts/qapi-types.py \
                $(gen-out-type) -o "." -b -i $<, \
                "  GEN   $@")

So if you want to change something in this area, you likely have to
touch the *.json files instead.

 Thomas

Reply via email to