mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +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:
|
* Here is a sample code snippet:
|
||||||
*
|
*
|
||||||
* if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) &&
|
* if ((virDomainGetMemoryParameters(dom, NULL, &nparams, 0) == 0) &&
|
||||||
* (nparams != 0)) {
|
* (nparams != 0)) {
|
||||||
* if ((params = malloc(sizeof(*params) * nparams)) == NULL)
|
* if ((params = malloc(sizeof(*params) * nparams)) == NULL)
|
||||||
* goto error;
|
* goto error;
|
||||||
* memset(params, 0, sizeof(*params) * nparams);
|
* memset(params, 0, sizeof(*params) * nparams);
|
||||||
* if (virDomainGetMemoryParameters(dom, params, &nparams, 0))
|
* if (virDomainGetMemoryParameters(dom, params, &nparams, 0))
|
||||||
* goto error;
|
* goto error;
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* This function may require privileged access to the hypervisor. This function
|
* This function may require privileged access to the hypervisor. This function
|
||||||
* expects the caller to allocate the @params.
|
* expects the caller to allocate the @params.
|
||||||
|
Loading…
Reference in New Issue
Block a user