Il 25/01/2013 10:21, Andreas Färber ha scritto:
>> > 
>> > Ping.
> I believe I was still waiting for an explanation why this qbus_init()
> function must be exposed rather than one _new() and one _initialize()
> function... Not getting feedback on that, I was already considering
> sending you an alternative patch for the initial two.

Because you cannot object_initialize the result of object_new.  It would
overwrite the free callback and leak memory.

So you need three functions: _new() (which is usually called foo_create
for buses), _initialize() (which is usually foo_create_inplace), and a
third which I called _init().

Paolo


Reply via email to