sysrepo  3.0.0
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 
72 int sr_nacm_set_user(sr_session_ctx_t *session, const char *user);
73 
79 const char *sr_nacm_get_user(sr_session_ctx_t *session);
80 
86 const char *sr_nacm_get_recovery_user(void);
87 
88 #ifdef __cplusplus
89 }
90 #endif
91 
92 #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...