qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 10/12] timer.h: Don't include qemu-common.h


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [PATCH 10/12] timer.h: Don't include qemu-common.h
Date: Fri, 31 Jul 2015 18:36:26 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Wed, Jul 22, 2015 at 05:44:09PM +0100, Peter Maydell wrote:
> Include the specific headers we need, rather than qemu-common.h.
> 
> Signed-off-by: Peter Maydell <address@hidden>
> ---
>  include/qemu/timer.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/include/qemu/timer.h b/include/qemu/timer.h
> index 9939246..6205024 100644
> --- a/include/qemu/timer.h
> +++ b/include/qemu/timer.h
> @@ -1,8 +1,9 @@
>  #ifndef QEMU_TIMER_H
>  #define QEMU_TIMER_H
>  
> +#include "osdep.h"
> +#include "glib-compat.h"

I think there's probably a reasonable argument for glib-compat.h to
be part of osdep.h as essentially all source files use glib now and
so could potentially require the compat definitions.

As mentioned in the cover letter, my preference would be for the
osdep.h header to be mandated in all the .c files, which would
mean we wouldn't need to add it here.

Looks like the same points apply to your patches 11 & 12, so I
won't repeat it again in those.

>  #include "qemu/typedefs.h"
> -#include "qemu-common.h"
>  #include "qemu/notify.h"
>  #include "qemu/host-utils.h"

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|



reply via email to

[Prev in Thread] Current Thread [Next in Thread]