[libvirt] [PATCH] maint: don't use config.h in .h files

Eric Blake eblake at redhat.com
Wed Jun 5 02:54:25 UTC 2013


On 05/31/2013 11:54 AM, Eric Blake wrote:
> Enforce the rule that .h files don't need to (redundantly)
> include <config.h>.
> 
> * cfg.mk (sc_prohibit_config_h_in_headers): New rule.
> (_virsh_includes): Delete; instead, inline a smaller number of
> exclusions...
> (exclude_file_name_regexp--sc_require_config_h)
> (exclude_file_name_regexp--sc_require_config_h_first): ...here.
> * daemon/libvirtd.h (includes): Fix offenders.
> * src/driver.h (includes): Likewise.
> * src/gnutls_1_0_compat.h (includes): Likewise.
> * src/libxl/libxl_conf.h (includes): Likewise.
> * src/libxl/libxl_driver.h (includes): Likewise.
> * src/lxc/lxc_conf.h (includes): Likewise.
> * src/lxc/lxc_driver.h (includes): Likewise.
> * src/lxc/lxc_fuse.h (includes): Likewise.
> * src/network/bridge_driver.h (includes): Likewise.
> * src/phyp/phyp_driver.h (includes): Likewise.
> * src/qemu/qemu_conf.h (includes): Likewise.
> * src/util/virnetlink.h (includes): Likewise.
> 
> Signed-off-by: Eric Blake <eblake at redhat.com>
> ---
> 
> Not a build-breaker, and not trivial enough to push without
> review; but it should have no impact on the resulting binary
> so it is safe for 1.0.6 if I get a review in time.

Ping, now that 1.0.6 is out, so there is less risk.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130604/12ad82a7/attachment-0001.sig>


More information about the libvir-list mailing list