enic: move struct definition from .c to .h file