[PATCH libvirt-python 4/5] qemu-api: Fix return type

Philipp Hahn hahn at univention.de
Mon Apr 27 13:44:09 UTC 2020


The API XML description uses "C types": "str *" is not valid.

Signed-off-by: Philipp Hahn <hahn at univention.de>
---
 libvirt-qemu-override-api.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt-qemu-override-api.xml b/libvirt-qemu-override-api.xml
index ca0dae9..b280a88 100644
--- a/libvirt-qemu-override-api.xml
+++ b/libvirt-qemu-override-api.xml
@@ -3,14 +3,14 @@
   <symbols>
       <function name='virDomainQemuMonitorCommand' file='python-qemu'>
         <info>Send an arbitrary monitor command through qemu monitor of domain</info>
-        <return type='str *' info='the command output or None in case of error'/>
+        <return type='char *' info='the command output or None in case of error'/>
         <arg name='domain' type='virDomainPtr' info='pointer to domain object'/>
         <arg name='cmd' type='const char *' info='the command which will be passed to QEMU monitor'/>
         <arg name='flags' type='unsigned int' info='an OR'ed set of virDomainQemuMonitorCommandFlags'/>
       </function>
       <function name='virDomainQemuAgentCommand' file='python-qemu'>
         <info>Send a Guest Agent command to domain</info>
-        <return type='str *' info='the command output'/>
+        <return type='char *' info='the command output'/>
         <arg name='domain' type='virDomainPtr' info='pointer to the domain'/>
         <arg name='cmd' type='const char *' info='guest agent command on domain'/>
         <arg name='timeout' type='int' info='timeout seconds'/>
-- 
2.20.1





More information about the libvir-list mailing list