[libvirt] [PATCH] qemu: Move some functions to qemu_capspriv.h

Andrea Bolognani abologna at redhat.com
Thu Apr 6 09:33:03 UTC 2017


On Thu, 2017-04-06 at 10:00 +0200, Martin Kletzander wrote:
> > @@ -8,6 +8,10 @@
> > # include <stdlib.h>
>> > # include "qemu/qemu_capabilities.h"
> > +# define __QEMU_CAPSPRIV_H_ALLOW__
> > +# include "qemu/qemu_capspriv.h"
> > +# undef __QEMU_CAPSPRIV_H_ALLOW__
> > +
> 
> We should, ideally, make some global PRIV_ENABLE macro that would be set
> in Makefile for all tests.  And all private headers would check that
> macro.  We wouldn't need to add these in the tests, and it might
> actually be a bit more future-proof.

I don't necessarily disagree, but I think we have a long
way ahead before something like that can be implemented.

There are a lot of functions that are exposed to everyone
just because we want to test them, and I don't think all
modules have a corresponding private header file. So I'd
work towards that goal first.

-- 
Andrea Bolognani / Red Hat / Virtualization




More information about the libvir-list mailing list