cbufp: move struct definition into interface