docs: Update HACKING

To tell libvirt-{qemu,lxc}.h shouldn't be included either.
This commit is contained in:
Osier Yang
2013-04-18 11:43:18 +08:00
parent 9969ade669
commit 06902a6f18
2 changed files with 12 additions and 7 deletions
+6 -3
View File
@@ -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.
It is included by "internal.h" already and there are some special reasons why
you cannot include these files explicitly.
Of particular note: *Do not* include libvirt/libvirt.h, libvirt/virterror.h,
libvirt/libvirt-qemu.h, or libvirt/libvirt-lxc.h. They are included by
"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