mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
libvirt.c: indent code of virDomainGetMemoryParameters's documentation
By indenting code inside of comments, it gets recognized as a code block when generating the HTML documentation.
This commit is contained in:
parent
6d19d742bc
commit
52dbeac8e7
@ -4077,14 +4077,14 @@ error:
|
||||
*
|
||||
* Here is a sample code snippet:
|
||||
*
|
||||
* if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) &&
|
||||
* (nparams != 0)) {
|
||||
* if ((params = malloc(sizeof(*params) * nparams)) == NULL)
|
||||
* goto error;
|
||||
* memset(params, 0, sizeof(*params) * nparams);
|
||||
* if (virDomainGetMemoryParameters(dom, params, &nparams, 0))
|
||||
* goto error;
|
||||
* }
|
||||
* if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) &&
|
||||
* (nparams != 0)) {
|
||||
* if ((params = malloc(sizeof(*params) * nparams)) == NULL)
|
||||
* goto error;
|
||||
* memset(params, 0, sizeof(*params) * nparams);
|
||||
* if (virDomainGetMemoryParameters(dom, params, &nparams, 0))
|
||||
* goto error;
|
||||
* }
|
||||
*
|
||||
* This function may require privileged access to the hypervisor. This function
|
||||
* expects the caller to allocate the @params.
|
||||
|
Loading…
Reference in New Issue
Block a user