Skip to content

Commit

Permalink
Allow virConnect.getDomainCapabilities() to have no arguments
Browse files Browse the repository at this point in the history
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 <mprivozn@redhat.com>
Reviewed-by: Kashyap Chamarthy <kchamart@redhat.com>
  • Loading branch information
zippy2 committed Apr 29, 2019
1 parent da3391a commit 5004b4a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libvirt-override-api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -754,5 +754,15 @@
<arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
<arg name='flags' type='int' info='unused, always pass 0'/>
</function>
<function name='virConnectGetDomainCapabilities' file='libvirt-domain' module='libvirt-domain'>
<info>Query domain capabilities</info>
<return type='char *' info='NULL in case of error or an XML string defining the capabilities.'/>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
<arg name='emulatorbin' type='const char *' info='optional path to emulator'/>
<arg name='arch' type='const char *' info='optional domain architecture'/>
<arg name='machine' type='const char *' info='optional machine type'/>
<arg name='virttype' type='const char *' info='optional virtualization type'/>
<arg name='flags' type='int' info='unused, always pass 0'/>
</function>
</symbols>
</api>

0 comments on commit 5004b4a

Please sign in to comment.