qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 3/7] forward declare all QObject subclasses in q


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH 3/7] forward declare all QObject subclasses in qobject.h
Date: Sat, 17 Oct 2009 08:02:10 -0500
User-agent: Thunderbird 2.0.0.23 (X11/20090825)

Paolo Bonzini wrote:
This gives more freedom to define prototypes without dragging in
the whole header files.

Cc: Luiz Capitulino <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
 qobject.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/qobject.h b/qobject.h
index 200644d..f5c78b2 100644
--- a/qobject.h
+++ b/qobject.h
@@ -44,6 +44,10 @@ typedef enum {
 } qtype_code;
struct QObject;
+struct QInt;
+struct QString;
+struct QDict;
+struct QList;

This seems like a layering violation to me.

Regards,

Anthony Liguori




reply via email to

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