yumapro  23.10T-10
YumaPro SDK
Loading...
Searching...
No Matches
agt_editcb.h File Reference

EDIT3 Edit Control Block Processing. More...

#include "agt_cfg.h"
#include "agt_rpc.h"
#include "rpc.h"
#include "ses.h"
#include "status_enum.h"
#include "val.h"
#include "xml_util.h"
Include dependency graph for agt_editcb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

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

Typedefs

typedef status_t(* agt_edit3_fn_t) (agt_editcb_t *editcb)
 EDIT3 Callback function for server object handler. More...
 

Functions

val_value_tagt_editcb_make_update_value (val_value_t *newval, val_value_t *curval, op_editop_t editop, status_t *res)
 make a combine value of newval and curval More...
 
void agt_editcb_free_cb (agt_editcb_t *editcb)
 Clean and free an agt_editcb_t. More...
 
agt_editcb_tagt_editcb_make_new_cb (ses_cb_t *scb, rpc_msg_t *msg, agt_cbtyp_t cbtyp, op_editop_t editop, val_value_t *newval, val_value_t *curval)
 Create Edit Control Block for the EDIT3 callback. More...
 

Detailed Description

EDIT3 Edit Control Block Processing.

Function Documentation

◆ agt_editcb_free_cb()

void agt_editcb_free_cb ( agt_editcb_t editcb)

Clean and free an agt_editcb_t.

Parameters
editcbagt_editcb_t struct to clean and free
Here is the call graph for this function:

◆ agt_editcb_make_new_cb()

agt_editcb_t * agt_editcb_make_new_cb ( ses_cb_t scb,
rpc_msg_t msg,
agt_cbtyp_t  cbtyp,
op_editop_t  editop,
val_value_t newval,
val_value_t curval 
)

Create Edit Control Block for the EDIT3 callback.

Make a combine update value that contains new proposed changes and current values from the datastore

Parameters
scbsession control block invoking the callback
msgRPC message in progress
cbtypagent callback type
editopedit operation applied to newnode and/or curnode
newvalnewval for edit
curvalcurval for edit
Returns
malloced new editcb; Must be freed by the caller
Here is the call graph for this function:

◆ agt_editcb_make_update_value()

val_value_t * agt_editcb_make_update_value ( val_value_t newval,
val_value_t curval,
op_editop_t  editop,
status_t res 
)

make a combine value of newval and curval

Parameters
newvalnew val node to use
curvalcurrent val node to use
editopedit operation to check
[out]resaddress of return status; *res return status
Returns
malloced update value node
Here is the call graph for this function: