提交 db323e3b 编写于 作者: E Eric Blake

docs: document correct flag name

When adding virDomainGetVcpusFlags in commit ea3f5c68, I did
enough rebasing that the doc comments in libvirt.c no longer
matched the final chosen enum names in libvirt.h.

And now we've gone ahead and deprecated the names
VIR_DOMAIN_VCPU_{LIVE,CONFIG}.

* src/libvirt.c (virDomainGetVcpusFlags): Fix comment.
上级 1aa859d6
...@@ -6919,9 +6919,9 @@ error: ...@@ -6919,9 +6919,9 @@ error:
* not support it. This function requires privileged access to the * not support it. This function requires privileged access to the
* hypervisor. * hypervisor.
* *
* @flags must include either VIR_DOMAIN_VCPU_ACTIVE to query a * @flags must include either VIR_DOMAIN_AFFECT_LIVE to query a
* running domain (which will fail if domain is not active), or * running domain (which will fail if domain is not active), or
* VIR_DOMAIN_VCPU_PERSISTENT to query the XML description of the * VIR_DOMAIN_AFFECT_CONFIG to query the XML description of the
* domain. It is an error to set both flags. * domain. It is an error to set both flags.
* *
* If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then the maximum * If @flags includes VIR_DOMAIN_VCPU_MAXIMUM, then the maximum
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册