<info>a xenConnectPtr is pointer to a xenConnect private structure, this is the type used to reference a connection to the Xen Hypervisor in the API.</info>
<info>This function closes the connection to the Hypervisor. This should not be called if further interaction with the Hypervisor are needed especially if there is running domain which need further monitoring by the application.</info>
<returntype='int'info='0 in case of success or -1 in case of error.'/>
<argname='conn'type='xenConnectPtr'info='pointer to the hypervisor connection'/>
<info>Destroy the domain object. The running instance is shutdown if not down already and all resources used by it are given back to the hypervisor.</info>
<returntype='int'info='0 in case of success and -1 in case of failure.'/>
<info>Retrieve the maximum amount of physical memory allocated to a domain. If domain is NULL, then this get the amount of memory reserved to Domain0 i.e. the domain where the application runs.</info>
<returntype='unsigned long'info='the memory size in kilobytes or 0 in case of error.'/>
<argname='domain'type='xenDomainPtr'info='a domain object or NULL'/>
<returntype='const char *'info='a pointer to the name or NULL, the string need not be deallocated its lifetime will be the same as the domain object.'/>
<info>Dynamically change the maximum amount of physical memory allocated to a domain. If domain is NULL, then this change the amount of memory reserved to Domain0 i.e. the domain where the application runs.</info>
<returntype='int'info='0 in case of success and -1 in case of failure.'/>
<argname='domain'type='xenDomainPtr'info='a domain object or NULL'/>
<argname='memory'type='unsigned long'info='the memory size in kilobytes'/>
<info>Suspends an active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated. Use xenDomainResume() to reactivate the domain.</info>
<returntype='int'info='0 in case of success and -1 in case of failure.'/>