Re: [PATCH v3 0/9] Require error handling for dynamically created objects

2024-12-06 Thread Markus Armbruster
Cc: Phil, because we're now discusing qemu-system-any. Daniel P. Berrangé writes: > On Fri, Dec 06, 2024 at 09:25:54AM +0100, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > On Wed, Dec 04, 2024 at 12:07:58PM +0100, Markus Armbruster wrote: >> >> To be fair, object_new() was not

Re: [PATCH v3 0/9] Require error handling for dynamically created objects

2024-12-06 Thread Daniel P . Berrangé
On Fri, Dec 06, 2024 at 09:25:54AM +0100, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Wed, Dec 04, 2024 at 12:07:58PM +0100, Markus Armbruster wrote: > >> To be fair, object_new() was not designed for use with user-provided > >> type names. When it chokes on type names not pro

Re: [PATCH v3 0/9] Require error handling for dynamically created objects

2024-12-06 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Wed, Dec 04, 2024 at 12:07:58PM +0100, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > NB, this series is targetting 10.0, NOT for 9.2 freeze. >> > >> > With code like >> > >> > Object *obj = object_new(TYPE_BLAH) >> > >> > the caller can be pr

Re: [PATCH v3 0/9] Require error handling for dynamically created objects

2024-12-05 Thread Daniel P . Berrangé
On Wed, Dec 04, 2024 at 12:07:58PM +0100, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > NB, this series is targetting 10.0, NOT for 9.2 freeze. > > > > With code like > > > > Object *obj = object_new(TYPE_BLAH) > > > > the caller can be pretty confident that they will successful

Re: [PATCH v3 0/9] Require error handling for dynamically created objects

2024-12-04 Thread Markus Armbruster
Daniel P. Berrangé writes: > NB, this series is targetting 10.0, NOT for 9.2 freeze. > > With code like > > Object *obj = object_new(TYPE_BLAH) > > the caller can be pretty confident that they will successfully create > an object instance of TYPE_BLAH. They know exactly what type has been > r

[PATCH v3 0/9] Require error handling for dynamically created objects

2024-11-15 Thread Daniel P . Berrangé
NB, this series is targetting 10.0, NOT for 9.2 freeze. With code like Object *obj = object_new(TYPE_BLAH) the caller can be pretty confident that they will successfully create an object instance of TYPE_BLAH. They know exactly what type has been requested, so it passing an abstract type for