On 6/21/20 11:00 PM, Richard Henderson wrote: > On 6/20/20 4:07 PM, Philippe Mathieu-Daudé wrote: >> + DeviceState *led[2]; > > Perhaps better as LEDState? And perhaps return that from create_led.
I guess I first thought about using an opaque structure with forward typedef declaration, but in this case I also prefer your suggestion. Thanks :)