Skip to content

Commit

Permalink
qapi: create two block related json modules
Browse files Browse the repository at this point in the history
qapi/block-core.json contains block definitions unrelated to emulation.

qapi/block.json is a superset of the previous and contains definitions related
to emulation.

The purpose of these extractions is to be able to hook qapi/block-core.json
generated code on qemu-nbd.

Signed-off-by: Benoit Canet <benoit@irqsave.net>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
  • Loading branch information
Benoît Canet authored and stefanhaRH committed Jun 6, 2014
1 parent d34bda7 commit 5db1509
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qapi-schema.json
Expand Up @@ -5,6 +5,9 @@
# QAPI common definitions
{ 'include': 'qapi/common.json' }

# QAPI block definitions
{ 'include': 'qapi/block.json' }

##
# LostTickPolicy:
#
Expand Down
6 changes: 6 additions & 0 deletions qapi/block-core.json
@@ -0,0 +1,6 @@
# -*- Mode: Python -*-
#
# QAPI block core definitions (vm unrelated)

# QAPI common definitions
{ 'include': 'common.json' }
7 changes: 7 additions & 0 deletions qapi/block.json
@@ -0,0 +1,7 @@
# -*- Mode: Python -*-
#
# QAPI block definitions (vm related)

# QAPI block core definitions
{ 'include': 'block-core.json' }

0 comments on commit 5db1509

Please sign in to comment.