![]()  | 
  
    yumapro
    25.10-1
    
   YumaPro SDK 
   | 
 
Commit Complete Callbacks allow SIL or SIL-SA code to be invoked when an edit transaction is completed. More...

Typedefs | |
| typedef status_t(* | agt_commit_complete_cb_t) (agt_commit_type_t commit_type) | 
| Typedef of the commit_complete callback.  More... | |
Functions | |
| void | agt_commit_complete_init (void) | 
| Initialise the callback commit module.  More... | |
| void | agt_commit_complete_cleanup (void) | 
| Cleanup the callback commit module.  More... | |
| status_t | agt_commit_complete_register (const xmlChar *modname, agt_commit_complete_cb_t cb) | 
| Register a Commit Complete callback.  More... | |
| void | agt_commit_complete_unregister (const xmlChar *modname) | 
| Unregister a Commit Complete callback.  More... | |
| status_t | agt_commit_complete (ses_cb_t *scb, rpc_msg_t *msg, agt_commit_type_t commit_type, val_value_t *source, val_value_t *target, boolean epc_only) | 
| Complete a commit operation.  More... | |
| const xmlChar * | agt_commit_complete_get_type (agt_commit_type_t commit_type) | 
| Get the keyword for the specified agt_commit_type_t enumeration.  More... | |
Commit Complete Callbacks allow SIL or SIL-SA code to be invoked when an edit transaction is completed.
It is often used to cleanup or commit a set of edits at once to remove order dependencies in the edited objects.
| typedef status_t(* agt_commit_complete_cb_t) (agt_commit_type_t commit_type) | 
Typedef of the commit_complete callback.
| commit_type | 
  | 
| status_t agt_commit_complete | ( | ses_cb_t * | scb, | 
| rpc_msg_t * | msg, | ||
| agt_commit_type_t | commit_type, | ||
| val_value_t * | source, | ||
| val_value_t * | target, | ||
| boolean | epc_only | ||
| ) | 
Complete a commit operation.
This function simply calls each registered commit complete callback. If a commit complete operation fails the status of the failing operation is returned immediately and no further commit complete callbacks are made.
| scb | session control block making the request | 
| msg | RPC msg message in progress containing transaction CB | 
| commit_type | commit type (normal or replay) | 
| source | source datastore root to use for the callback | 
| target | target datastore root to use for the callback | 
| epc_only | EPC callback mode
  | 

| void agt_commit_complete_cleanup | ( | void | ) | 
Cleanup the callback commit module.
Called by the server during shutdown.

| const xmlChar * agt_commit_complete_get_type | ( | agt_commit_type_t | commit_type | ) | 
Get the keyword for the specified agt_commit_type_t enumeration.
| commit_type | type to use | 
| void agt_commit_complete_init | ( | void | ) | 
Initialise the callback commit module.
Must be called before module is used for registration.


| status_t agt_commit_complete_register | ( | const xmlChar * | modname, | 
| agt_commit_complete_cb_t | cb | ||
| ) | 
Register a Commit Complete callback.
This function registers a Commit Complete callback that will be called right after Commit Phase has been processed during the "<commit>". If a commit complete operation is already registered for the module it will be replaced.
| modname | name of the module registering the callback | 
| cb | the commit complete function. | 

| void agt_commit_complete_unregister | ( | const xmlChar * | modname | ) | 
Unregister a Commit Complete callback.
This function unregisters a Commit Complete callback.
| modname | name of the module unregistering the callback | 
