提交 06902a6f 编写于 作者: O Osier Yang

docs: Update HACKING

To tell libvirt-{qemu,lxc}.h shouldn't be included either.
上级 9969ade6
...@@ -786,9 +786,12 @@ stick to the following general plan for all *.c source files: ...@@ -786,9 +786,12 @@ stick to the following general plan for all *.c source files:
{ {
... ...
Of particular note: *Do not* include libvirt/libvirt.h or libvirt/virterror.h. Of particular note: *Do not* include libvirt/libvirt.h, libvirt/virterror.h,
It is included by "internal.h" already and there are some special reasons why libvirt/libvirt-qemu.h, or libvirt/libvirt-lxc.h. They are included by
you cannot include these files explicitly. "internal.h" already and there are some special reasons why you cannot include
these files explicitly. One of the special cases, "libvirt/libvirt.h" is
included prior to "internal.h" in "remote_protocol.x", to avoid exposing
*_LAST enum elements.
Printf-style functions Printf-style functions
......
...@@ -929,10 +929,12 @@ ...@@ -929,10 +929,12 @@
</pre> </pre>
<p> <p>
Of particular note: <b>Do not</b> include libvirt/libvirt.h or Of particular note: <b>Do not</b> include libvirt/libvirt.h,
libvirt/virterror.h. It is included by "internal.h" already and there libvirt/virterror.h, libvirt/libvirt-qemu.h, or libvirt/libvirt-lxc.h.
are some special reasons why you cannot include these files They are included by "internal.h" already and there are some special reasons
explicitly. why you cannot include these files explicitly. One of the special cases,
"libvirt/libvirt.h" is included prior to "internal.h" in "remote_protocol.x",
to avoid exposing *_LAST enum elements.
</p> </p>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册