diff mbox series

[v2,03/10] block: Allow the wrapper script to see functions declared in qapi.h

Message ID 20230609201910.12100-4-farosas@suse.de
State New
Headers show
Series block: Make raw_co_get_allocated_file_size asynchronous | expand

Commit Message

Fabiano Rosas June 9, 2023, 8:19 p.m. UTC
The following patches will add co_wrapper annotations to functions
declared in qapi.h. Add that header to the set of files used by
block-coroutine-wrapper.py.

Signed-off-by: Fabiano Rosas <farosas@suse.de>
---
 block/meson.build                  | 1 +
 scripts/block-coroutine-wrapper.py | 1 +
 2 files changed, 2 insertions(+)

Comments

Hanna Czenczek Nov. 6, 2023, 2:51 p.m. UTC | #1
On 09.06.23 22:19, Fabiano Rosas wrote:
> The following patches will add co_wrapper annotations to functions
> declared in qapi.h. Add that header to the set of files used by
> block-coroutine-wrapper.py.
>
> Signed-off-by: Fabiano Rosas <farosas@suse.de>
> ---
>   block/meson.build                  | 1 +
>   scripts/block-coroutine-wrapper.py | 1 +
>   2 files changed, 2 insertions(+)

Reviewed-by: Hanna Czenczek <hreitz@redhat.com>
diff mbox series

Patch

diff --git a/block/meson.build b/block/meson.build
index fb4332bd66..7ad6a396a4 100644
--- a/block/meson.build
+++ b/block/meson.build
@@ -150,6 +150,7 @@  block_gen_c = custom_target('block-gen.c',
                                       '../include/block/dirty-bitmap.h',
                                       '../include/block/block_int-io.h',
                                       '../include/block/block-global-state.h',
+                                      '../include/block/qapi.h',
                                       '../include/sysemu/block-backend-global-state.h',
                                       '../include/sysemu/block-backend-io.h',
                                       'coroutines.h'
diff --git a/scripts/block-coroutine-wrapper.py b/scripts/block-coroutine-wrapper.py
index d4a183db61..814b62df26 100644
--- a/scripts/block-coroutine-wrapper.py
+++ b/scripts/block-coroutine-wrapper.py
@@ -44,6 +44,7 @@  def gen_header():
 #include "block/block-gen.h"
 #include "block/block_int.h"
 #include "block/dirty-bitmap.h"
+#include "block/qapi.h"
 """