Testing for Existing Ptypes in Current Session
The ToolTalk service provides a simple function to test if a given ptype is already registered in the current session.
// Test for existing ptype registered in current session
tt_ptype_exists(const char *ptid)
where ptid is the identifier of the session to test for registration.