lib: Move config structure defitinitions to types.h