Skip to content

Commit 5004b4a

Browse files
committed
Allow virConnect.getDomainCapabilities() to have no arguments
Our C API allows no values to be passed (well, it accepts all NULLs). There's no reason that python binding should require all arguments. Signed-off-by: Michal Privoznik <[email protected]> Reviewed-by: Kashyap Chamarthy <[email protected]>
1 parent da3391a commit 5004b4a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

libvirt-override-api.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,5 +754,15 @@
754754
<arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
755755
<arg name='flags' type='int' info='unused, always pass 0'/>
756756
</function>
757+
<function name='virConnectGetDomainCapabilities' file='libvirt-domain' module='libvirt-domain'>
758+
<info>Query domain capabilities</info>
759+
<return type='char *' info='NULL in case of error or an XML string defining the capabilities.'/>
760+
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
761+
<arg name='emulatorbin' type='const char *' info='optional path to emulator'/>
762+
<arg name='arch' type='const char *' info='optional domain architecture'/>
763+
<arg name='machine' type='const char *' info='optional machine type'/>
764+
<arg name='virttype' type='const char *' info='optional virtualization type'/>
765+
<arg name='flags' type='int' info='unused, always pass 0'/>
766+
</function>
757767
</symbols>
758768
</api>

0 commit comments

Comments
 (0)