Loading...
Searching...
No Matches
netconf_acm.h
Go to the documentation of this file.
#ifndef SYSREPO_NETCONF_ACM_H_
#define SYSREPO_NETCONF_ACM_H_
#include "../sysrepo.h"
#ifdef __cplusplus
extern "C" {
#endif
int sr_nacm_init(sr_session_ctx_t *session, sr_subscr_options_t opts, sr_subscription_ctx_t **sub);
int sr_nacm_glob_stats_subscribe(sr_session_ctx_t *session, sr_subscr_options_t opts, sr_subscription_ctx_t **sub);
void sr_nacm_destroy(void);
int sr_nacm_set_user(sr_session_ctx_t *session, const char *user);
const char *sr_nacm_get_user(sr_session_ctx_t *session);
const char *sr_nacm_get_recovery_user(void);
int sr_nacm_check_operation(sr_session_ctx_t *session, const struct lyd_node *op);
#ifdef __cplusplus
}
#endif
#endif /* SYSREPO_NETCONF_ACM_H_ */
sr_subscr_options_t
uint32_t sr_subscr_options_t
Options overriding default behavior of subscriptions, it is supposed to be a bitwise OR-ed value of a...
Definition sysrepo_types.h:485
sr_subscription_ctx_t
struct sr_subscription_ctx_s sr_subscription_ctx_t
Sysrepo subscription context returned from sr_*_subscribe calls, it is supposed to be released by the...
Definition sysrepo_types.h:479
sr_nacm_destroy
void sr_nacm_destroy(void)
Destroy NACM.
sr_nacm_check_operation
int sr_nacm_check_operation(sr_session_ctx_t *session, const struct lyd_node *op)
Explicitly check NACM access of an operation.
sr_nacm_glob_stats_subscribe
int sr_nacm_glob_stats_subscribe(sr_session_ctx_t *session, sr_subscr_options_t opts, sr_subscription_ctx_t **sub)
Subscribe for providing global NACM stats. These include triggering subscriptions made by sr_nacm_ini...
sr_nacm_get_user
const char * sr_nacm_get_user(sr_session_ctx_t *session)
Get the NACM user of the session.
sr_nacm_set_user
int sr_nacm_set_user(sr_session_ctx_t *session, const char *user)
Set the NACM user for this session, which enables NACM for all operations on this session.
sr_nacm_get_recovery_user
const char * sr_nacm_get_recovery_user(void)
Get username of the NACM recovery user with unrestricted access.
sr_nacm_init
int sr_nacm_init(sr_session_ctx_t *session, sr_subscr_options_t opts, sr_subscription_ctx_t **sub)
Initialize NACM and its callbacks.
sysrepo.h
public API sysrepo header
sr_session_ctx_t
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition sysrepo_types.h:99