there is a dt_view_type_flags_t defined in src/views/view.h does your dt_undo_type_t duplicate it .? if yes, it might be better to reuse...