Skip to content
  • Wenchao Xia's avatar
    qapi script: add event support · 21cd70df
    Wenchao Xia authored
    
    
    qapi-event.py will parse the schema and generate qapi-event.c, then
    the API in qapi-event.c can be used to handle events in qemu code.
    All API have prefix "qapi_event".
    
    The script mainly includes two parts: generate API for each event
    define, generate an enum type for all defined events.
    
    Since in some cases the real emit behavior may change, for example,
    qemu-img would not send a event, a callback layer is used to
    control the behavior. As a result, the stubs at compile time
    can be saved, the binding of block layer code and monitor code
    will become looser.
    
    Signed-off-by: default avatarWenchao Xia <wenchaoqemu@gmail.com>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    Reviewed-by: default avatarEric Blake <eblake@redhat.com>
    Signed-off-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
    21cd70df