On 12/03/2009 02:55 PM, Juan Quintela wrote:
sorry, already allocated memory.  basically -device foo
requires that qdev creates foo and then it call foo_init().

Alternatives:

- foo_init() allocates Foo and calls qdev_init() (how C++ works, but cumbersome here) - we put the offset of DeviceState as well as the size into DeviceInfo (a macro can help)

I agree the hidden assumptions about member placement are bad.

--
error compiling committee.c: too many arguments to function



Reply via email to