Arbortext Command Language > Repository API > Registering Callbacks
  
Registering Callbacks
Use sess_add_callback to register the ACL callback for a particular Repository API event. The following examples demonstrate how to register callback events to functions from the sample package rep_api.
# Override the autosave, checkin, lock and getfile behavior.
sess_add_callback(sess, "autosave", "rep_api::autosave");
sess_add_callback(sess, "checkin", "rep_api::checkin");
sess_add_callback(sess, "lock", "rep_api::checkout");
sess_add_callback(sess, "getfile", "rep_api::getfile");
* 
Callbacks are typically registered in the section of code that starts the session. For example, if an adapter-specific connect() function has been defined, it will be called just after the session is established.
Refer to Repository API callback functions for a list of callback types and their related repository API functions.