diff mbox

[v2,2/5] qapi: create two block related json modules

Message ID 1401968733-10998-3-git-send-email-benoit.canet@irqsave.net
State New
Headers show

Commit Message

Benoît Canet June 5, 2014, 11:45 a.m. UTC
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>
---
 qapi-schema.json     | 3 +++
 qapi/block-core.json | 6 ++++++
 qapi/block.json      | 7 +++++++
 3 files changed, 16 insertions(+)
 create mode 100644 qapi/block-core.json
 create mode 100644 qapi/block.json

Comments

Eric Blake June 5, 2014, 4:20 p.m. UTC | #1
On 06/05/2014 05:45 AM, Benoît Canet wrote:
> 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>
> ---
>  qapi-schema.json     | 3 +++
>  qapi/block-core.json | 6 ++++++
>  qapi/block.json      | 7 +++++++
>  3 files changed, 16 insertions(+)
>  create mode 100644 qapi/block-core.json
>  create mode 100644 qapi/block.json
> 

Reviewed-by: Eric Blake <eblake@redhat.com>
diff mbox

Patch

diff --git a/qapi-schema.json b/qapi-schema.json
index cc71b27..7d47f4d 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -5,6 +5,9 @@ 
 # QAPI common definitions
 { 'include': 'qapi/common.json' }
 
+# QAPI block definitions
+{ 'include': 'qapi/block.json' }
+
 ##
 # LostTickPolicy:
 #
diff --git a/qapi/block-core.json b/qapi/block-core.json
new file mode 100644
index 0000000..11bd8c2
--- /dev/null
+++ b/qapi/block-core.json
@@ -0,0 +1,6 @@ 
+# -*- Mode: Python -*-
+#
+# QAPI block core definitions (vm unrelated)
+
+# QAPI common definitions
+{ 'include': 'common.json' }
diff --git a/qapi/block.json b/qapi/block.json
new file mode 100644
index 0000000..e2b882f
--- /dev/null
+++ b/qapi/block.json
@@ -0,0 +1,7 @@ 
+# -*- Mode: Python -*-
+#
+# QAPI block definitions (vm related)
+
+# QAPI block core definitions
+{ 'include': 'block-core.json' }
+