mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
b62cdc1405
include/libvirt/virterror.h python/generator.py python/libvir.c python/libvirt_wrap.h src/driver.h src/internal.h src/test.h src/virsh.c src/virterror.c src/xend_internal.c src/xend_internal.h src/xml.c src/xml.h: moved the includes from include/ to include/libvirt to reflect the installed include tree. This avoid using "" in the includes themselves. Daniel
87 lines
3.0 KiB
XML
87 lines
3.0 KiB
XML
<examples>
|
|
<example filename='info1.c'>
|
|
<synopsis>Extract informations about Xen domain 0</synopsis>
|
|
<purpose>Demonstrate the basic use of the library to connect to the hypervisor and extract domain informations.</purpose>
|
|
<usage>info1</usage>
|
|
<test>info1</test>
|
|
<author>Daniel Veillard</author>
|
|
<copy>see Copyright for the status of this software. </copy>
|
|
<section>Informations</section>
|
|
<includes>
|
|
</includes>
|
|
<uses>
|
|
<function line='43' name='virDomainGetInfo'/>
|
|
<function line='53' name='virDomainFree'/>
|
|
<function line='36' name='virDomainLookupByID'/>
|
|
<function line='55' name='virConnectClose'/>
|
|
<type line='25' name='virDomainInfo'/>
|
|
<function line='29' name='virConnectOpenReadOnly'/>
|
|
</uses>
|
|
</example>
|
|
<example filename='suspend.c'>
|
|
<synopsis>Suspend a domain and then resume its execution</synopsis>
|
|
<purpose>Demonstrate the basic use of the library to suspend and resume a domain. If no id is given on the command line this script will suspend and resume the first domain found which is not Domain 0.</purpose>
|
|
<usage>suspend [id]</usage>
|
|
<test>suspend</test>
|
|
<author>Daniel Veillard</author>
|
|
<copy>see Copyright for the status of this software. </copy>
|
|
<section>Scheduling</section>
|
|
<includes>
|
|
</includes>
|
|
<uses>
|
|
<function line='31' name='virDomainGetInfo'/>
|
|
<function line='111' name='virConnectListDomains'/>
|
|
<function line='93' name='virDomainFree'/>
|
|
<function line='73' name='virDomainResume'/>
|
|
<function line='50' name='virDomainLookupByID'/>
|
|
<function line='132' name='virConnectClose'/>
|
|
<type line='28' name='virDomainInfo'/>
|
|
<function line='62' name='virDomainSuspend'/>
|
|
<function line='100' name='virConnectOpenReadOnly'/>
|
|
</uses>
|
|
</example>
|
|
<symbols>
|
|
<symbol name='virConnectClose'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virConnectListDomains'>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virConnectOpenReadOnly'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainFree'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainGetInfo'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainInfo'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainLookupByID'>
|
|
<ref filename='info1.c'/>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainResume'>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
<symbol name='virDomainSuspend'>
|
|
<ref filename='suspend.c'/>
|
|
</symbol>
|
|
</symbols>
|
|
<sections>
|
|
<section name='Informations'>
|
|
<example filename='info1.c'/>
|
|
</section>
|
|
<section name='Scheduling'>
|
|
<example filename='suspend.c'/>
|
|
</section>
|
|
</sections>
|
|
</examples>
|