2006-01-31 18:13:27 +00:00
<examples >
2008-01-15 15:27:31 +00:00
<example filename= 'info1.c' >
2008-03-14 11:08:03 +00:00
<synopsis > Extract information about Xen domain 0</synopsis>
<purpose > Demonstrate the basic use of the library to connect to the hypervisor and extract domain information.</purpose>
2008-01-15 15:27:31 +00:00
<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' file= 'libvirt' name= 'virDomainGetInfo' />
<function line= '53' file= 'libvirt' name= 'virDomainFree' />
<function line= '36' file= 'libvirt' name= 'virDomainLookupByID' />
<function line= '55' file= 'libvirt' name= 'virConnectClose' />
<struct line= '25' file= 'libvirt' name= 'virDomainInfo' />
<function line= '29' file= 'libvirt' name= 'virConnectOpenReadOnly' />
</uses>
</example>
2006-06-26 15:02:18 +00:00
<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>
2006-05-09 15:35:46 +00:00
<author > Daniel Veillard</author>
<copy > see Copyright for the status of this software. </copy>
2006-06-26 15:02:18 +00:00
<section > Scheduling</section>
2006-05-09 15:35:46 +00:00
<includes >
</includes>
<uses >
2007-03-14 13:14:50 +00:00
<function line= '31' file= 'libvirt' name= 'virDomainGetInfo' />
<function line= '111' file= 'libvirt' name= 'virConnectListDomains' />
<function line= '93' file= 'libvirt' name= 'virDomainFree' />
<function line= '73' file= 'libvirt' name= 'virDomainResume' />
<function line= '50' file= 'libvirt' name= 'virDomainLookupByID' />
<function line= '132' file= 'libvirt' name= 'virConnectClose' />
<struct line= '28' file= 'libvirt' name= 'virDomainInfo' />
<function line= '62' file= 'libvirt' name= 'virDomainSuspend' />
<function line= '100' file= 'libvirt' name= 'virConnectOpenReadOnly' />
2006-05-09 15:35:46 +00:00
</uses>
</example>
2006-01-31 18:13:27 +00:00
<symbols >
<symbol name= 'virConnectClose' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-02-21 14:15:32 +00:00
</symbol>
<symbol name= 'virConnectListDomains' >
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
<symbol name= 'virConnectOpenReadOnly' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
<symbol name= 'virDomainFree' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
<symbol name= 'virDomainGetInfo' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
<symbol name= 'virDomainInfo' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
<symbol name= 'virDomainLookupByID' >
2007-06-29 13:23:13 +00:00
<ref filename= 'info1.c' />
2008-01-15 15:27:31 +00:00
<ref filename= 'suspend.c' />
2006-02-21 14:15:32 +00:00
</symbol>
<symbol name= 'virDomainResume' >
<ref filename= 'suspend.c' />
</symbol>
<symbol name= 'virDomainSuspend' >
<ref filename= 'suspend.c' />
2006-01-31 18:13:27 +00:00
</symbol>
</symbols>
<sections >
<section name= 'Informations' >
<example filename= 'info1.c' />
</section>
2006-02-21 14:15:32 +00:00
<section name= 'Scheduling' >
<example filename= 'suspend.c' />
</section>
2006-01-31 18:13:27 +00:00
</sections>
</examples>