sysrepo 3.6.11
YANG-based system repository for all-around configuration management.
Loading...
Searching...
No Matches
netconf_acm.h
Go to the documentation of this file.
1
16
17#ifndef SYSREPO_NETCONF_ACM_H_
18#define SYSREPO_NETCONF_ACM_H_
19
20#include "../sysrepo.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
38
52
56void sr_nacm_destroy(void);
57
73int sr_nacm_set_user(sr_session_ctx_t *session, const char *user);
74
80const char *sr_nacm_get_user(sr_session_ctx_t *session);
81
87const char *sr_nacm_get_recovery_user(void);
88
96int sr_nacm_check_operation(sr_session_ctx_t *session, const struct lyd_node *op);
97
98#ifdef __cplusplus
99}
100#endif
101
102#endif /* SYSREPO_NETCONF_ACM_H_ */
uint32_t sr_subscr_options_t
Options overriding default behavior of subscriptions, it is supposed to be a bitwise OR-ed value of a...
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...
void sr_nacm_destroy(void)
Destroy NACM.
int sr_nacm_check_operation(sr_session_ctx_t *session, const struct lyd_node *op)
Explicitly check NACM access of an operation.
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...
const char * sr_nacm_get_user(sr_session_ctx_t *session)
Get the NACM user of the session.
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.
const char * sr_nacm_get_recovery_user(void)
Get username of the NACM recovery user with unrestricted access.
int sr_nacm_init(sr_session_ctx_t *session, sr_subscr_options_t opts, sr_subscription_ctx_t **sub)
Initialize NACM and its callbacks.
public API sysrepo header
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.