The code generator should just create a single lifx_protocol.h and lifx_protocol.c. There's no reason to have a bunch.