On 02/02/2012 08:06 PM, Anthony Liguori wrote:
I don't want object.h to have a dependency on QObject. We need to phase out QObject.
The header doesn't.
Couple things: 1) We shouldn't use generic interfaces to read/write properties from objects. We should use type-safe accessors provided by the types themselves. 2) If we want to get fancy, we can add property_set_int, etc. and then implement (1) via header files that just call these functions.
That's what patch 5 does. But writing visitors in C is a royal PITA. The only sane way to do so is via QObject.
Paolo