Added NULL check
Whitespace fix (80 chars per line)
More NULL checks
Renamed ctf_enum_get_next_entry to ...next_enum_entry
The real type does not need double pointer
Member public API and its implementation reworked