sysrepo  3.3.4
YANG-based system repository for all-around configuration management.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
netconf_acm.h
Go to the documentation of this file.
1 
17 #ifndef SYSREPO_NETCONF_ACM_H_
18 #define SYSREPO_NETCONF_ACM_H_
19 
20 #include "../sysrepo.h"
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
38 
52 
56 void sr_nacm_destroy(void);
57 
73 int sr_nacm_set_user(sr_session_ctx_t *session, const char *user);
74 
80 const char *sr_nacm_get_user(sr_session_ctx_t *session);
81 
87 const char *sr_nacm_get_recovery_user(void);
88 
89 #ifdef __cplusplus
90 }
91 #endif
92 
93 #endif /* SYSREPO_NETCONF_ACM_H_ */
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.
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...
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.
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition: sysrepo_types.h:99
void sr_nacm_destroy(void)
Destroy NACM.
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...
uint32_t sr_subscr_options_t
Options overriding default behavior of subscriptions, it is supposed to be a bitwise OR-ed value of a...