Code:
/**
* \brief Break an existing attachment to a child.
* \param attachment attachment handle
* \param vel separation velocity [m/s]
* \return \e true when detachment is successful, \e false if no child was
* attached, or [COLOR="Red"]if child refuses to detach[/COLOR].
* \sa CreateAttachment, SetAttachmentParams, GetAttachmentParams,
* GetAttachmentId, GetAttachmentStatus, AttachmentCount, GetAttachmentIndex,
* GetAttachmentHandle, AttachChild
*/
bool DetachChild (ATTACHMENTHANDLE attachment, double vel = 0.0) const;
There is a clbkDockEvent(), which (an "attachment version" of that callback) would probably be a good way to allow the child to do the check, but that callback returns void instead of bool, so this can't even be done to the docking ports...