|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH qom-next 1/7] qdev: Push state up to Object |
Date: | Sun, 10 Jun 2012 17:49:07 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 |
Il 08/06/2012 03:19, Anthony Liguori ha scritto: >> >> +typedef enum ObjectState { >> + OBJECT_STATE_INITIALIZED = 1, >> + OBJECT_STATE_REALIZED, >> +} ObjectState; > > I think using a bool would be better since it reduces the temptation to > add additional states. In fact someone already discussed having a third state for block devices... :) Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |