git p4 test: move client_view() function to library