yumapro  23.10T-7
YumaPro SDK
Loading...
Searching...
No Matches
agt_editcb_t Struct Reference

EDIT Control Block used to store all the pointers for the EDIT3 callbacks. More...

#include <agt_editcb.h>

Collaboration diagram for agt_editcb_t:

Data Fields

ses_cb_tscb
 Session control block making the request.
 
rpc_msg_tmsg
 Incoming rpc_msg_t in progress.
 
agt_cfg_transaction_ttxcb
 Transaction control block in progress.
 
agt_cbtyp_t cbtyp
 Callback type - reason for the callback. More...
 
op_editop_t editop
 Callback editop - the parent edit-config operation type, which is also used for all other callbacks that operate on objects: More...
 
val_value_tnewval
 Container object holding the proposed changes to apply to the current config, depending on the editop value.
 
val_value_tcurval
 Current container values from the <running> or <candidate> configuration, if any. More...
 
val_value_tupdate
 Update value contains all new values and the current values from the datastore.
 
const xmlChar * modname
 Name of a module the current callback is invoked for:
 
obj_template_tobj
 Object of a a current node in the callback.
 
boolean isvalidate
 Transaction is a <validate> operation.
 
boolean isrunning
 TRUE if this Transaction is for the the running datastore

 
const xmlChar * user_id
 user-id backptr from the transaction
 
const xmlChar * client_addr
 client address backptr from the transaction
 
const xmlChar * target
 datastore target backptr from the transaction
 
const xmlChar * txid_str
 transaction ID from the transaction
 
xmlChar * instance_id
 instance-identifier path string for target object with all the keys
 

Detailed Description

EDIT Control Block used to store all the pointers for the EDIT3 callbacks.

Field Documentation

◆ cbtyp

agt_cbtyp_t cbtyp

Callback type - reason for the callback.

  • AGT_CB_VALIDATE
  • AGT_CB_APPLY
  • AGT_CB_COMMIT
  • AGT_CB_ROLLBACK

◆ curval

val_value_t* curval

Current container values from the <running> or <candidate> configuration, if any.

Could be NULL for create and other operations.

◆ editop

op_editop_t editop

Callback editop - the parent edit-config operation type, which is also used for all other callbacks that operate on objects:

  • OP_EDITOP_LOAD
  • OP_EDITOP_MERGE
  • OP_EDITOP_REPLACE
  • OP_EDITOP_CREATE
  • OP_EDITOP_DELETE

The documentation for this struct was generated from the following file: