yumapro
24.10-1
YumaPro SDK
|
Server Instrumentation Library for Sub Agents (SIL-SA) More...
#include <xmlstring.h>
#include "agt_not.h"
#include "rpc.h"
#include "val.h"
#include "sil_sa_types.h"
Go to the source code of this file.
Macros | |
#define | SIL_SA (const xmlChar *)"sil-sa" |
YControl service name. | |
#define | SIL_SA_MOD (const xmlChar *)"yumaworks-sil-sa" |
SIL-SA YANG module. | |
#define | SIL_SA_OBJ (const xmlChar *)"sil-sa" |
sil-sa container | |
#define | SIL_REQ_OK(ST) ((ST) >= SIL_SA_ST_READY) |
Check if SIL-SA state is ready. | |
Functions | |
status_t | sil_sa_register_service (void) |
Register the SIL-SA service with the YControl layer. More... | |
val_value_t * | sil_sa_get_key (rpc_msg_t *msg, uint32 keynum) |
Get a key leaf from the sil_sa_cb backptr in the rpc_msg. More... | |
val_value_t * | sil_sa_get_action_key (rpc_msg_t *msg, uint32 keynum) |
Get the key value node for the specified key for ACTION ONLY. More... | |
void | sil_sa_queue_notification (agt_not_msg_t *notif) |
Send a notification-event to the main server for queing by the agt_not module. More... | |
void | sil_sa_queue_notification_stream (const xmlChar *stream_name, agt_not_msg_t *notif) |
Send a notification-event to a specific stream, to the main server for queing by the agt_not module. More... | |
void | sil_sa_notif_test (int8 N1, int16 N2, const xmlChar *N3) |
Send a y_get2_test_get2_notif notification. More... | |
status_t | sil_sa_add_library_parm (const xmlChar *libstr) |
Add a library parameter so the SIL-SA libraries will be restricted to just these libraries instead of what is found in the /usr/lib/yumapro directory (or –runpath or YUMAPRO_RUNPATH) More... | |
boolean | sil_sa_any_library_parms (void) |
Check if any library parms are set. More... | |
boolean | sil_sa_find_library_parm (const xmlChar *libstr) |
Find a library parm name in the library_parmQ. More... | |
const xmlChar * | sil_sa_get_username (void) |
Get the user_id value from the message header. More... | |
const xmlChar * | sil_sa_get_client_addr (void) |
Get the client address (client_addr value from the message header) More... | |
const xmlChar * | sil_sa_get_rpc_msg_id (rpc_msg_t *msg) |
Get the rpc transaction id (txid_str) from the rpc_sil_sa_cb. More... | |
void | sil_sa_term_msg_test (uint32 count) |
Send a <term-msg> test notification. More... | |
status_t | sil_sa_add_edit (const xmlChar *defpath, val_value_t *edit_value, const xmlChar *edit_operation, const xmlChar *insert_where, const xmlChar *insert_point, boolean skip_cb) |
Add an edit to the current transaction from SIL-SA. More... | |
val_value_t * | sil_sa_get_data (ncx_cfg_t cfg_id, const xmlChar *defpath, status_t *retres) |
Get some YANG data from the server. More... | |
sil_sa_child_edit_t * | sil_sa_first_child_edit (rpc_msg_t *msg) |
Get the first child edit from the transaction control block. More... | |
sil_sa_child_edit_t * | sil_sa_next_child_edit (sil_sa_child_edit_t *curedit) |
Get the next child edit from the transaction control block. More... | |
void | sil_sa_child_edit_fields (sil_sa_child_edit_t *child_edit, op_editop_t *editop, val_value_t **newval, val_value_t **curval) |
Get the child edit fields. More... | |
void | sil_sa_set_error_msg (rpc_msg_t *msg, const xmlChar *strval) |
Set Error Message string in case of error. More... | |
void | sil_sa_get_user_data_parms (void **data_ref, uint32 *data_index) |
Get the current GET2_USER_REF saved values. More... | |
void | sil_sa_set_user_data_parms (void *data_ref, uint32 data_index) |
Set the current GET2_USER_REF saved values. More... | |
Server Instrumentation Library for Sub Agents (SIL-SA)