qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 06/10] hw/core: Add ResetContainer which holds objects implem


From: Peter Maydell
Subject: Re: [PATCH 06/10] hw/core: Add ResetContainer which holds objects implementing Resettable
Date: Tue, 20 Feb 2024 21:20:26 +0000

On Tue, 20 Feb 2024 at 19:46, Richard Henderson
<richard.henderson@linaro.org> wrote:
>
> On 2/20/24 06:06, Peter Maydell wrote:
> > +void resettable_container_add(ResettableContainer *rc, Object *obj)
> > +{
> > +    g_ptr_array_add(rc->children, obj);
> > +}
>
> Did you want to assert here that obj does in fact implement Resettable?

I guess that makes for a nicer detection of that class of bug,
so sure.

-- PMM



reply via email to

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