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