yumapro  20.10-12
YumaPro SDK
agt_sil.h File Reference

SIL Transaction APIs. More...

#include "agt.h"
#include "agt_cfg.h"
#include "ncxtypes.h"
#include "dlq.h"
#include "getcb.h"
#include "status.h"
Include dependency graph for agt_sil.h:

Go to the source code of this file.

Data Structures

struct  agt_sil_added_edit_t_
 Set Hook added edits from subsystem(s) More...
 

Typedefs

typedef void(* agt_sil_get_walker_fn_t) (getcb_get2_t *get2cb, const xmlChar *subsys_id, status_t get_status, val_value_t *return_val)
 get walker function for processing results from remote GET transaction from 1 or more subsystems More...
 
typedef status_t(* agt_sil_rpc_walker_fn_t) (const xmlChar *subsys_id, status_t rpc_status, val_value_t *return_val, dlq_hdr_t *saveQ)
 RPC walker function for processing results from remote GET transaction from 1 or more subsystems. More...
 
typedef status_t(* agt_sil_shook_walker_fn_t) (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *subsys_id, status_t tx_status, dlq_hdr_t *edded_editQ)
 Set Hook walker function. More...
 

Functions

status_t agt_sil_init (void)
 Initialize the SIL features module (phase 2) More...
 
void agt_sil_cleanup (void)
 Cleanup the SIL Features Module. More...
 
status_t agt_sil_start_transaction (const xmlChar *txid_str, const xmlChar *user_id, const xmlChar *client_addr, const xmlChar *target, boolean is_validate, boolean is_replay, boolean is_reverse_edit, boolean is_load_config, boolean is_hook_load, boolean is_hook_validate, dlq_hdr_t *editQ)
 Start Transaction Handler. More...
 
status_t agt_sil_continue_start_transaction (const xmlChar *txid_str, const xmlChar *user_id, const xmlChar *client_addr, const xmlChar *target, boolean is_replay, dlq_hdr_t *editQ)
 Continue already existed Start Transaction. More...
 
status_t agt_sil_continue_transaction (const xmlChar *txid_str, agt_cbtyp_t cur_phase)
 Continue a transaction to apply or commit phase. More...
 
void agt_sil_end_transaction (const xmlChar *txid_str)
 End a transaction. More...
 
void agt_sil_cancel_transaction (const xmlChar *txid_str)
 Cancel and delete the transaction. More...
 
status_t agt_sil_phase_status (const xmlChar *txid_str, val_value_t **error_val, xmlChar **error_path)
 Get SIL Phase status. More...
 
status_t agt_sil_send_load_event (const xmlChar *name, boolean is_bundle, boolean is_load)
 Send a <load-event> to all subsystems. More...
 
status_t agt_sil_send_stream_callback_event (const xmlChar *subsys_id, const xmlChar *modname, const xmlChar *stream_name, boolean all_streams, agt_not_subevent_t subevent)
 Send a "<stream-callback-event>" message to one subsystem. More...
 
boolean agt_sil_edit_transaction_in_progress (void)
 Check if a SIL-SA transaction is in progress. More...
 
void agt_sil_check_deleted_edits (agt_cfg_transaction_t *txcb)
 Check for deleted edits. More...
 
status_t agt_sil_start_get_transaction (ses_cb_t *client_scb, getcb_get2_t *get2cb, xml_msg_hdr_t *msg, const xmlChar **txid_str)
 Start a GET2 transaction. More...
 
status_t agt_sil_get_transaction_status (const xmlChar *txid_str)
 Get the GET2 transaction status. More...
 
void agt_sil_walk_get_results (const xmlChar *txid_str, agt_sil_get_walker_fn_t get_walker_fn)
 Walk the GET2 results. More...
 
status_t agt_sil_walk_rpc_results (const xmlChar *txid_str, agt_sil_rpc_walker_fn_t rpc_walker_fn, dlq_hdr_t *saveQ)
 Walk the RPC transaction results. More...
 
status_t agt_sil_walk_shook_results (ses_cb_t *scb, rpc_msg_t *msg, agt_cfg_transaction_t *txcb, const xmlChar *txid_str, agt_sil_shook_walker_fn_t shook_walker_fn)
 Walk the Set Hook results. More...
 
void agt_sil_end_get_transaction (const xmlChar *txid_str)
 End a GET2 transaction. More...
 
void agt_sil_set_subsys_timeout (uint32 val)
 Set the subsys-timeout parameter. More...
 
status_t agt_sil_start_rpc_transaction (ses_cb_t *client_scb, rpc_msg_t *msg, obj_template_t *obj, val_value_t *actionval, const xmlChar **txid_str)
 Start an RPC transaction. More...
 
status_t agt_sil_rpc_transaction_status (const xmlChar *txid_str)
 Get RPC transaction status. More...
 
void agt_sil_end_rpc_transaction (const xmlChar *txid_str)
 End an RPC transaction. More...
 
status_t agt_sil_handle_remote_trans_start (ses_cb_t *client_scb, const xmlChar *client_txid, boolean isvalidate, boolean isrollback, boolean isrunning)
 Handle a remote transaction. More...
 
status_t agt_sil_transaction_complete_cb (const xmlChar *txid_str)
 SIL transaction complete callback. More...
 
status_t agt_sil_get_exit_mode (const xmlChar *txid_str, agt_tx_type_t tx_type, val_value_t **error_val, xmlChar **error_path)
 Get the transaction exit code. More...
 
boolean agt_sil_last_in_transaction (const xmlChar *txid_str, ses_id_t sid)
 Check if the session is the last in the current transaction. More...
 
void agt_sil_unload_module (const xmlChar *modname)
 Unload a module from the subsystem register messages so the cleanup is not attempted again during system cleanup. More...
 
status_t agt_sil_bundle_walker (const xmlChar *name, void *cookie)
 Callback for bundles. More...
 
status_t agt_sil_module_walker (const xmlChar *name, void *cookie)
 Callback for dynamically loaded modules. More...
 

Detailed Description

SIL Transaction APIs.