DTNMA Reference Tools v2.1.0 - 13.gc5c0bac
Delay-Tolerant Networking Management Architecture (DTNMA) Tool Suite
Loading...
Searching...
No Matches
runctx.c File Reference
#include "runctx.h"
#include "agent.h"
#include "msgdata.h"
#include "cace/util/defs.h"
+ Include dependency graph for runctx.c:

Functions

void refda_amm_modval_state_init (refda_amm_modval_state_t *obj)
 
void refda_amm_modval_state_deinit (refda_amm_modval_state_t *obj)
 
void refda_amm_modval_state_inc (refda_amm_modval_state_t *obj)
 Increment the counter to the next value and signal to a registered callback.
 
void refda_runctx_init (refda_runctx_t *ctx)
 
void refda_runctx_deinit (refda_runctx_t *ctx)
 
void refda_runctx_from (refda_runctx_t *ctx, refda_agent_t *agent, const refda_msgdata_t *msg)
 Take values for a runtime context.
 
void refda_runctx_check_acl (refda_runctx_t *ctx)
 Verify the ACL cache is valid.
 

Function Documentation

◆ refda_amm_modval_state_deinit()

void refda_amm_modval_state_deinit ( refda_amm_modval_state_t obj)

◆ refda_amm_modval_state_inc()

void refda_amm_modval_state_inc ( refda_amm_modval_state_t obj)

Increment the counter to the next value and signal to a registered callback.

References refda_amm_modval_state_t::_ctr, refda_amm_modval_state_t::notify, and refda_amm_modval_state_t::notify_user_data.

◆ refda_amm_modval_state_init()

◆ refda_runctx_check_acl()

◆ refda_runctx_deinit()

◆ refda_runctx_from()

void refda_runctx_from ( refda_runctx_t ctx,
refda_agent_t agent,
const refda_msgdata_t msg 
)

Take values for a runtime context.

Parameters
[out]ctxThe context to initialize.
[in]agentThe agent being run within.
[in]msgThe optional EXECSET message being run within. When this is provided, the refda_runctx_t::nonce and refda_runctx_t::acl_groups fields are populated. When absent, the nonce is always null and group zero (the Agent) is assumed.

References agent, refda_runctx_t::agent, cace_ari_cget_execset(), cace_ari_reset(), cace_ari_set_copy(), CHKVOID, refda_msgdata_t::ident, refda_runctx_t::mgr_ident, cace_ari_execset_t::nonce, refda_runctx_t::nonce, refda_runctx_check_acl(), and refda_msgdata_t::value.

Referenced by check_execute(), check_execute(), refda_agent_startup_exec(), refda_exec_add_execset(), refda_exec_check_sbr_condition(), refda_exec_rule_action(), test_util_agent_check_execute(), and test_util_runctx_init().

◆ refda_runctx_init()