programs/view: move from C to C++ headers