Defining Third-Party CM Tool Interfaces : User Function Interface to CM Tool : STM_CM_rollback

STM_CM_rollback
This API is an alternative to STM_CM_unlock_file. It executes the unlock command on a file in the databank. The API is called only if the CM DLL does not include implementation for STM_CM_unlock_file. In case that the STM_CM_unlock_file is not implemented, the “Unlock” menu entry in the Rational Statemate Configuration menus are visible to the user.
This API is optional and may not be implemented in the DLL.
Syntax:
STM_CM_rollback
 
int
STM_CM_rollback(
const char *bank_dir,
const char *name,
const char *ext,
const char *full_archive_name,
const char *user_name,
const char [STM_CM_version_length],
char error_message[STM_CM_message_length]
);