sysrepo  1.4.70
YANG datastore
sysrepo.h
Go to the documentation of this file.
1 
22 #ifndef _SYSREPO_H
23 #define _SYSREPO_H
24 
25 #include <stdbool.h>
26 #include <stdint.h>
27 #include <stdlib.h>
28 #include <time.h>
29 #ifdef __APPLE__
30  #include <sys/types.h>
31 #endif
32 
33 #include <libyang/libyang.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
40 // Logging API
42 
51 typedef enum sr_error_e {
52  SR_ERR_OK = 0,
70 
77 const char *sr_strerror(int err_code);
78 
82 typedef enum {
83  SR_LL_NONE = 0,
89 
104 
111 
129 void sr_log_syslog(const char *app_name, sr_log_level_t log_level);
130 
137 
144 typedef void (*sr_log_cb)(sr_log_level_t level, const char *message);
145 
152 void sr_log_set_cb(sr_log_cb log_callback);
153 
156 // Connection / Session Management
159 
168 typedef struct sr_conn_ctx_s sr_conn_ctx_t;
169 
173 typedef struct sr_session_ctx_s sr_session_ctx_t;
174 
178 typedef enum sr_conn_flag_e {
187 
192 typedef uint32_t sr_conn_options_t;
193 
198 typedef enum sr_datastore_e {
204 
208 typedef struct sr_error_info_msg_s {
209  char *message;
210  char *xpath;
212 
216 typedef struct sr_error_info_s {
219  size_t err_count;
221 
235 
248 
255 int sr_connection_count(uint32_t *conn_count);
256 
264 const struct ly_ctx *sr_get_context(sr_conn_ctx_t *conn);
265 
273 typedef int (*sr_diff_check_cb)(sr_session_ctx_t *session, const struct lyd_node *diff);
274 
287 
301 int sr_session_start(sr_conn_ctx_t *conn, const sr_datastore_t datastore, sr_session_ctx_t **session);
302 
316 
329 
340 
348 
359 int sr_get_error(sr_session_ctx_t *session, const sr_error_info_t **error_info);
360 
375 int sr_set_error(sr_session_ctx_t *session, const char *path, const char *format, ...);
376 
384 
393 void sr_session_set_nc_id(sr_session_ctx_t *session, uint32_t nc_sid);
394 
404 
414 int sr_session_set_user(sr_session_ctx_t *session, const char *user);
415 
424 const char *sr_session_get_user(sr_session_ctx_t *session);
425 
433 
436 // Schema Manipulation API
439 
453 const char *sr_get_repo_path(void);
454 
465 int sr_install_module(sr_conn_ctx_t *conn, const char *schema_path, const char *search_dirs, const char **features,
466  int feat_count);
467 
479 int sr_install_module_data(sr_conn_ctx_t *conn, const char *module_name, const char *data, const char *data_path,
480  LYD_FORMAT format);
481 
491 int sr_remove_module(sr_conn_ctx_t *conn, const char *module_name);
492 
503 int sr_update_module(sr_conn_ctx_t *conn, const char *schema_path, const char *search_dirs);
504 
514 int sr_cancel_update_module(sr_conn_ctx_t *conn, const char *module_name);
515 
524 int sr_set_module_replay_support(sr_conn_ctx_t *conn, const char *module_name, int replay_support);
525 
538 int sr_set_module_access(sr_conn_ctx_t *conn, const char *module_name, const char *owner, const char *group, mode_t perm);
539 
552 int sr_get_module_access(sr_conn_ctx_t *conn, const char *module_name, char **owner, char **group, mode_t *perm);
553 
568 int sr_enable_module_feature(sr_conn_ctx_t *conn, const char *module_name, const char *feature_name);
569 
583 int sr_disable_module_feature(sr_conn_ctx_t *conn, const char *module_name, const char *feature_name);
584 
593 int sr_get_module_info(sr_conn_ctx_t *conn, struct lyd_node **sysrepo_data);
594 
597 // Data Retrieval API (get / get-config functionality)
600 
609 typedef enum sr_type_e {
610  /* special types that does not contain any data */
619  /* types containing some data */
639 
643 typedef union sr_data_u {
644  char *binary_val;
645  char *bits_val;
646  bool bool_val;
647  double decimal64_val;
651  char *enum_val;
654  int8_t int8_val;
655  int16_t int16_val;
656  int32_t int32_val;
657  int64_t int64_val;
658  char *string_val;
659  uint8_t uint8_val;
660  uint16_t uint16_val;
661  uint32_t uint32_val;
662  uint64_t uint64_val;
663  char *anyxml_val;
664  char *anydata_val;
666 
670 typedef struct sr_val_s {
672  char *xpath;
673 
676 
683  bool dflt;
684 
686  char *origin;
687 
690 
692 
696 typedef enum sr_get_oper_flag_e {
699  SR_OPER_NO_CONFIG = 2,
703  SR_OPER_WITH_ORIGIN = 16,
706 
711 typedef uint32_t sr_get_oper_options_t;
712 
734 int sr_get_item(sr_session_ctx_t *session, const char *path, uint32_t timeout_ms, sr_val_t **value);
735 
753 int sr_get_items(sr_session_ctx_t *session, const char *xpath, uint32_t timeout_ms, const sr_get_oper_options_t opts,
754  sr_val_t **values, size_t *value_cnt);
755 
773 int sr_get_subtree(sr_session_ctx_t *session, const char *path, uint32_t timeout_ms, struct lyd_node **subtree);
774 
799 int sr_get_data(sr_session_ctx_t *session, const char *xpath, uint32_t max_depth, uint32_t timeout_ms,
800  const sr_get_oper_options_t opts, struct lyd_node **data);
801 
807 void sr_free_val(sr_val_t *value);
808 
816 void sr_free_values(sr_val_t *values, size_t count);
817 
820 // Data Manipulation API (edit-config functionality)
823 
832 typedef enum sr_edit_flag_e {
836  SR_EDIT_STRICT = 2,
839  SR_EDIT_ISOLATE = 4,
844 
849 typedef uint32_t sr_edit_options_t;
850 
854 typedef enum sr_move_position_e {
860 
883 int sr_set_item(sr_session_ctx_t *session, const char *path, const sr_val_t *value, const sr_edit_options_t opts);
884 
899 int sr_set_item_str(sr_session_ctx_t *session, const char *path, const char *value, const char *origin,
900  const sr_edit_options_t opts);
901 
915 int sr_delete_item(sr_session_ctx_t *session, const char *path, const sr_edit_options_t opts);
916 
941 int sr_move_item(sr_session_ctx_t *session, const char *path, const sr_move_position_t position, const char *list_keys,
942  const char *leaflist_value, const char *origin, const sr_edit_options_t opts);
943 
955 int sr_edit_batch(sr_session_ctx_t *session, const struct lyd_node *edit, const char *default_operation);
956 
968 int sr_validate(sr_session_ctx_t *session, const char *module_name, uint32_t timeout_ms);
969 
989 int sr_apply_changes(sr_session_ctx_t *session, uint32_t timeout_ms, int wait);
990 
998 
1006 
1022 int sr_replace_config(sr_session_ctx_t *session, const char *module_name, struct lyd_node *src_config,
1023  uint32_t timeout_ms, int wait);
1024 
1045 int sr_copy_config(sr_session_ctx_t *session, const char *module_name, sr_datastore_t src_datastore, uint32_t timeout_ms,
1046  int wait);
1047 
1050 // Locking API
1053 
1074 int sr_lock(sr_session_ctx_t *session, const char *module_name);
1075 
1085 int sr_unlock(sr_session_ctx_t *session, const char *module_name);
1086 
1103 int sr_get_lock(sr_conn_ctx_t *conn, sr_datastore_t datastore, const char *module_name, int *is_locked, uint32_t *id,
1104  uint32_t *nc_id, time_t *timestamp);
1105 
1108 // Subscription API
1111 
1120 typedef enum sr_subscr_flag_e {
1132 
1139 
1146 
1153 
1160 
1168 
1176 
1186 
1193 
1195 
1200 typedef struct sr_subscription_ctx_s sr_subscription_ctx_t;
1201 
1206 typedef uint32_t sr_subscr_options_t;
1207 
1218 int sr_get_event_pipe(sr_subscription_ctx_t *subscription, int *event_pipe);
1219 
1231 int sr_process_events(sr_subscription_ctx_t *subscription, sr_session_ctx_t *session, time_t *stop_time_in);
1232 
1246 
1249 // Change Subscriptions API
1252 
1266 typedef enum sr_event_e {
1267  SR_EV_UPDATE,
1270  SR_EV_CHANGE,
1274  SR_EV_DONE,
1277  SR_EV_ABORT,
1283  SR_EV_ENABLED,
1289 
1293 typedef enum sr_change_oper_e {
1299 
1303 typedef struct sr_change_iter_s sr_change_iter_t;
1304 
1321 typedef int (*sr_module_change_cb)(sr_session_ctx_t *session, const char *module_name, const char *xpath,
1322  sr_event_t event, uint32_t request_id, void *private_data);
1323 
1342 int sr_module_change_subscribe(sr_session_ctx_t *session, const char *module_name, const char *xpath,
1343  sr_module_change_cb callback, void *private_data, uint32_t priority, sr_subscr_options_t opts,
1344  sr_subscription_ctx_t **subscription);
1345 
1361 int sr_get_changes_iter(sr_session_ctx_t *session, const char *xpath, sr_change_iter_t **iter);
1362 
1378 int sr_dup_changes_iter(sr_session_ctx_t *session, const char *xpath, sr_change_iter_t **iter);
1379 
1399  sr_val_t **old_value, sr_val_t **new_value);
1400 
1424  const struct lyd_node **node, const char **prev_value, const char **prev_list, bool *prev_dflt);
1425 
1432 
1435 // RPC (Remote Procedure Calls) and Action API
1438 
1462 typedef int (*sr_rpc_cb)(sr_session_ctx_t *session, const char *xpath, const sr_val_t *input, const size_t input_cnt,
1463  sr_event_t event, uint32_t request_id, sr_val_t **output, size_t *output_cnt, void *private_data);
1464 
1481 typedef int (*sr_rpc_tree_cb)(sr_session_ctx_t *session, const char *op_path, const struct lyd_node *input,
1482  sr_event_t event, uint32_t request_id, struct lyd_node *output, void *private_data);
1483 
1500 int sr_rpc_subscribe(sr_session_ctx_t *session, const char *xpath, sr_rpc_cb callback, void *private_data,
1501  uint32_t priority, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription);
1502 
1519 int sr_rpc_subscribe_tree(sr_session_ctx_t *session, const char *xpath, sr_rpc_tree_cb callback,
1520  void *private_data, uint32_t priority, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription);
1521 
1541 int sr_rpc_send(sr_session_ctx_t *session, const char *path, const sr_val_t *input, const size_t input_cnt,
1542  uint32_t timeout_ms, sr_val_t **output, size_t *output_cnt);
1543 
1557 int sr_rpc_send_tree(sr_session_ctx_t *session, struct lyd_node *input, uint32_t timeout_ms, struct lyd_node **output);
1558 
1561 // Notifications API
1564 
1573 typedef enum sr_ev_notif_type_e {
1581 
1596 typedef void (*sr_event_notif_cb)(sr_session_ctx_t *session, const sr_ev_notif_type_t notif_type, const char *xpath,
1597  const sr_val_t *values, const size_t values_cnt, time_t timestamp, void *private_data);
1598 
1610 typedef void (*sr_event_notif_tree_cb)(sr_session_ctx_t *session, const sr_ev_notif_type_t notif_type,
1611  const struct lyd_node *notif, time_t timestamp, void *private_data);
1612 
1631 int sr_event_notif_subscribe(sr_session_ctx_t *session, const char *module_name, const char *xpath, time_t start_time,
1632  time_t stop_time, sr_event_notif_cb callback, void *private_data, sr_subscr_options_t opts,
1633  sr_subscription_ctx_t **subscription);
1634 
1653 int sr_event_notif_subscribe_tree(sr_session_ctx_t *session, const char *module_name, const char *xpath,
1654  time_t start_time, time_t stop_time, sr_event_notif_tree_cb callback, void *private_data,
1655  sr_subscr_options_t opts, sr_subscription_ctx_t **subscription);
1656 
1673 int sr_event_notif_send(sr_session_ctx_t *session, const char *path, const sr_val_t *values, const size_t values_cnt);
1674 
1688 int sr_event_notif_send_tree(sr_session_ctx_t *session, struct lyd_node *notif);
1689 
1692 // Operational Data API
1695 
1726 typedef int (*sr_oper_get_items_cb)(sr_session_ctx_t *session, const char *module_name, const char *path,
1727  const char *request_xpath, uint32_t request_id, struct lyd_node **parent, void *private_data);
1728 
1746 int sr_oper_get_items_subscribe(sr_session_ctx_t *session, const char *module_name, const char *path,
1747  sr_oper_get_items_cb callback, void *private_data, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription);
1748 
1751 // Plugin API
1754 
1763 #define SRP_INIT_CB "sr_plugin_init_cb"
1764 
1768 #define SRP_CLEANUP_CB "sr_plugin_cleanup_cb"
1769 
1781 typedef int (*srp_init_cb_t)(sr_session_ctx_t *session, void **private_data);
1782 
1791 typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
1792 
1799 #define SRP_LOG_ERR(format, ...) srp_log(SR_LL_ERR, format, __VA_ARGS__)
1800 
1807 #define SRP_LOG_WRN(format, ...) srp_log(SR_LL_WRN, format, __VA_ARGS__)
1808 
1815 #define SRP_LOG_INF(format, ...) srp_log(SR_LL_INF, format, __VA_ARGS__)
1816 
1823 #define SRP_LOG_DBG(format, ...) srp_log(SR_LL_DBG, format, __VA_ARGS__)
1824 
1830 #define SRP_LOG_ERRMSG(msg) srp_log(SR_LL_ERR, msg)
1831 
1837 #define SRP_LOG_WRNMSG(msg) srp_log(SR_LL_WRN, msg)
1838 
1844 #define SRP_LOG_INFMSG(msg) srp_log(SR_LL_INF, msg)
1845 
1851 #define SRP_LOG_DBGMSG(msg) srp_log(SR_LL_DBG, msg)
1852 
1863 void srp_log(sr_log_level_t ll, const char *format, ...);
1864 
1865 #ifdef __cplusplus
1866 }
1867 #endif
1868 
1869 #endif /* _SYSREPO_H */
sr_data_u::anydata_val
char * anydata_val
Definition: sysrepo.h:664
SR_LL_ERR
@ SR_LL_ERR
Definition: sysrepo.h:84
sr_get_module_access
int sr_get_module_access(sr_conn_ctx_t *conn, const char *module_name, char **owner, char **group, mode_t *perm)
Learn about module filesystem permissions.
SR_SUBSCR_CTX_REUSE
@ SR_SUBSCR_CTX_REUSE
This option enables the application to re-use an already existing subscription context previously ret...
Definition: sysrepo.h:1138
sr_val_s::xpath
char * xpath
Definition: sysrepo.h:672
SR_NOTIFICATION_T
@ SR_NOTIFICATION_T
Definition: sysrepo.h:617
SR_EV_ENABLED
@ SR_EV_ENABLED
Definition: sysrepo.h:1283
sr_data_u::int16_val
int16_t int16_val
Definition: sysrepo.h:655
SR_INT16_T
@ SR_INT16_T
Definition: sysrepo.h:628
sr_cancel_update_module
int sr_cancel_update_module(sr_conn_ctx_t *conn, const char *module_name)
Cancel scheduled update of a module.
sr_set_module_access
int sr_set_module_access(sr_conn_ctx_t *conn, const char *module_name, const char *owner, const char *group, mode_t perm)
Change module filesystem permissions.
sr_lock
int sr_lock(sr_session_ctx_t *session, const char *module_name)
Locks the data of the specified module or the whole datastore.
SR_INT64_T
@ SR_INT64_T
Definition: sysrepo.h:630
sr_get_oper_flag_t
enum sr_get_oper_flag_e sr_get_oper_flag_t
Flags used to override default data get behaviour on SR_DS_OPERATIONAL by sr_get_data call.
sr_data_u::uint8_val
uint8_t uint8_val
Definition: sysrepo.h:659
sr_strerror
const char * sr_strerror(int err_code)
Returns the error message corresponding to the error code.
sr_data_u::uint32_val
uint32_t uint32_val
Definition: sysrepo.h:661
SR_SUBSCR_PASSIVE
@ SR_SUBSCR_PASSIVE
The subscriber is not the "owner" of the subscribed data tree, just a passive watcher for changes....
Definition: sysrepo.h:1152
sr_update_module
int sr_update_module(sr_conn_ctx_t *conn, const char *schema_path, const char *search_dirs)
Update an installed schema (module) to a new revision. Deferred until there are no connections!
sr_error_info_msg_s::message
char * message
Definition: sysrepo.h:209
sr_rpc_cb
int(* sr_rpc_cb)(sr_session_ctx_t *session, const char *xpath, const sr_val_t *input, const size_t input_cnt, sr_event_t event, uint32_t request_id, sr_val_t **output, size_t *output_cnt, void *private_data)
Callback to be called for the delivery of an RPC/action. Data are represented as sr_val_t structures.
Definition: sysrepo.h:1462
sr_diff_check_cb
int(* sr_diff_check_cb)(sr_session_ctx_t *session, const struct lyd_node *diff)
Callback to be called before applying a diff. Set it using sr_set_diff_check_callback.
Definition: sysrepo.h:273
SR_SUBSCR_DEFAULT
@ SR_SUBSCR_DEFAULT
Default behavior of the subscription. In case of sr_module_change_subscribe call it means that:
Definition: sysrepo.h:1131
sr_datastore_e
sr_datastore_e
Datastores that sysrepo supports. To change which datastore a session operates on,...
Definition: sysrepo.h:198
sr_move_position_e
sr_move_position_e
Options for specifying move direction of sr_move_item call.
Definition: sysrepo.h:854
sr_set_diff_check_callback
void sr_set_diff_check_callback(sr_conn_ctx_t *conn, sr_diff_check_cb callback)
Set callback for checking every diff before it is applied on the datastore. The diff is final (only C...
SR_ERR_TIME_OUT
@ SR_ERR_TIME_OUT
Definition: sysrepo.h:65
SR_INSTANCEID_T
@ SR_INSTANCEID_T
Definition: sysrepo.h:626
sr_free_val
void sr_free_val(sr_val_t *value)
Free sr_val_t structure and all memory allocated within it.
sr_event_notif_cb
void(* sr_event_notif_cb)(sr_session_ctx_t *session, const sr_ev_notif_type_t notif_type, const char *xpath, const sr_val_t *values, const size_t values_cnt, time_t timestamp, void *private_data)
Callback to be called for the delivery of a notification. Data are represented as sr_val_t structures...
Definition: sysrepo.h:1596
SR_EV_RPC
@ SR_EV_RPC
Definition: sysrepo.h:1287
SR_UINT8_T
@ SR_UINT8_T
Definition: sysrepo.h:632
sr_log_cb
void(* sr_log_cb)(sr_log_level_t level, const char *message)
Sets callback that will be called when a log entry would be populated.
Definition: sysrepo.h:144
sr_event_notif_subscribe
int sr_event_notif_subscribe(sr_session_ctx_t *session, const char *module_name, const char *xpath, time_t start_time, time_t stop_time, sr_event_notif_cb callback, void *private_data, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Subscribe for the delivery of a notification(s). Data are represented as sr_val_t structures.
SR_BINARY_T
@ SR_BINARY_T
Definition: sysrepo.h:620
SR_EV_ABORT
@ SR_EV_ABORT
Definition: sysrepo.h:1277
sr_error_info_t
struct sr_error_info_s sr_error_info_t
Detailed sysrepo session error information.
sr_get_subtree
int sr_get_subtree(sr_session_ctx_t *session, const char *path, uint32_t timeout_ms, struct lyd_node **subtree)
Retrieve a single subtree whose root node is selected by the provided path. Data are represented as l...
sr_datastore_t
enum sr_datastore_e sr_datastore_t
Datastores that sysrepo supports. To change which datastore a session operates on,...
sr_conn_options_t
uint32_t sr_conn_options_t
Options overriding default connection handling by sr_connect call, it is supposed to be bitwise OR-ed...
Definition: sysrepo.h:192
SR_SUBSCR_UPDATE
@ SR_SUBSCR_UPDATE
The subscriber will be called before any other subscribers for the particular module with an addition...
Definition: sysrepo.h:1175
sr_val_s::type
sr_type_t type
Definition: sysrepo.h:675
sr_log_get_stderr
sr_log_level_t sr_log_get_stderr(void)
Learn current standard error output log level.
SR_SUBSCR_OPER_MERGE
@ SR_SUBSCR_OPER_MERGE
Instead of removing any previous existing matching data before getting them from an operational subsc...
Definition: sysrepo.h:1192
sr_type_t
enum sr_type_e sr_type_t
Possible types of a data element stored in the sysrepo datastore.
sr_session_set_nc_id
void sr_session_set_nc_id(sr_session_ctx_t *session, uint32_t nc_sid)
Set a NETCONF session ID for a sysrepo session. Any application callbacks handling operations initiat...
sr_conn_flag_e
sr_conn_flag_e
Flags used to override default connection handling by sr_connect call.
Definition: sysrepo.h:178
SR_EV_DONE
@ SR_EV_DONE
Definition: sysrepo.h:1274
sr_session_set_user
int sr_session_set_user(sr_session_ctx_t *session, const char *user)
Set the effective user of a session to a different one that the process owner.
sr_oper_get_items_cb
int(* sr_oper_get_items_cb)(sr_session_ctx_t *session, const char *module_name, const char *path, const char *request_xpath, uint32_t request_id, struct lyd_node **parent, void *private_data)
Callback to be called when operational data at the selected xpath are requested. Data are represented...
Definition: sysrepo.h:1726
sr_remove_module
int sr_remove_module(sr_conn_ctx_t *conn, const char *module_name)
Remove an installed module from sysrepo. Deferred until there are no connections!
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.h:1206
sr_disconnect
int sr_disconnect(sr_conn_ctx_t *conn)
Disconnect from the sysrepo datastore.
SR_EV_NOTIF_REPLAY
@ SR_EV_NOTIF_REPLAY
Definition: sysrepo.h:1575
sr_ev_notif_type_e
sr_ev_notif_type_e
Type of the notification passed to the sr_event_notif_cb and sr_event_notif_tree_cb callbacks.
Definition: sysrepo.h:1573
SR_CONN_ERR_ON_SCHED_FAIL
@ SR_CONN_ERR_ON_SCHED_FAIL
Definition: sysrepo.h:184
srp_cleanup_cb_t
void(* srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data)
Sysrepo plugin cleanup callback.
Definition: sysrepo.h:1791
sr_log_syslog
void sr_log_syslog(const char *app_name, sr_log_level_t log_level)
Enables / disables / changes log level (verbosity) of logging to system log.
sr_subscr_flag_e
sr_subscr_flag_e
Flags used to override default handling of subscriptions.
Definition: sysrepo.h:1120
sr_move_position_t
enum sr_move_position_e sr_move_position_t
Options for specifying move direction of sr_move_item call.
sr_log_set_cb
void sr_log_set_cb(sr_log_cb log_callback)
Sets callback that will be called when a log entry would be populated. Callback will be called for ev...
SR_CONN_NO_SCHED_CHANGES
@ SR_CONN_NO_SCHED_CHANGES
Definition: sysrepo.h:182
sr_type_e
sr_type_e
Possible types of a data element stored in the sysrepo datastore.
Definition: sysrepo.h:609
SR_INT32_T
@ SR_INT32_T
Definition: sysrepo.h:629
sr_rpc_send
int sr_rpc_send(sr_session_ctx_t *session, const char *path, const sr_val_t *input, const size_t input_cnt, uint32_t timeout_ms, sr_val_t **output, size_t *output_cnt)
Send an RPC/action and wait for the result. Data are represented as sr_val_t structures.
SR_ERR_EXISTS
@ SR_ERR_EXISTS
Definition: sysrepo.h:58
SR_EV_NOTIF_STOP
@ SR_EV_NOTIF_STOP
Definition: sysrepo.h:1578
SR_LL_NONE
@ SR_LL_NONE
Definition: sysrepo.h:83
SR_ERR_INVAL_ARG
@ SR_ERR_INVAL_ARG
Definition: sysrepo.h:53
sr_apply_changes
int sr_apply_changes(sr_session_ctx_t *session, uint32_t timeout_ms, int wait)
Apply changes made in the current session. In case the changes could not be applied successfully for ...
SR_UINT64_T
@ SR_UINT64_T
Definition: sysrepo.h:635
SR_ERR_UNAUTHORIZED
@ SR_ERR_UNAUTHORIZED
Definition: sysrepo.h:63
sr_get_items
int sr_get_items(sr_session_ctx_t *session, const char *xpath, uint32_t timeout_ms, const sr_get_oper_options_t opts, sr_val_t **values, size_t *value_cnt)
Retrieve an array of data elements selected by the provided XPath. Data are represented as sr_val_t s...
SR_ERR_CALLBACK_FAILED
@ SR_ERR_CALLBACK_FAILED
Definition: sysrepo.h:66
sr_session_get_ds
sr_datastore_t sr_session_get_ds(sr_session_ctx_t *session)
Learn the datastore a session operates on.
sr_log_level_t
sr_log_level_t
Log levels used to determine if message of certain severity should be printed.
Definition: sysrepo.h:82
SR_OPER_WITH_ORIGIN
@ SR_OPER_WITH_ORIGIN
Definition: sysrepo.h:703
SR_MOVE_FIRST
@ SR_MOVE_FIRST
Definition: sysrepo.h:857
SR_ERR_NOT_FOUND
@ SR_ERR_NOT_FOUND
Definition: sysrepo.h:57
SR_ERR_LOCKED
@ SR_ERR_LOCKED
Definition: sysrepo.h:64
sr_move_item
int sr_move_item(sr_session_ctx_t *session, const char *path, const sr_move_position_t position, const char *list_keys, const char *leaflist_value, const char *origin, const sr_edit_options_t opts)
Prepare to move/create the instance of an user-ordered list or leaf-list to the specified position....
sr_get_module_info
int sr_get_module_info(sr_conn_ctx_t *conn, struct lyd_node **sysrepo_data)
Get internal sysrepo data tree, which holds information about installed modules. These data are from ...
SR_MOVE_LAST
@ SR_MOVE_LAST
Definition: sysrepo.h:858
sr_session_notif_buffer
int sr_session_notif_buffer(sr_session_ctx_t *session)
Use notification buffering for the session.
sr_subscr_flag_t
enum sr_subscr_flag_e sr_subscr_flag_t
Flags used to override default handling of subscriptions.
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.h:1200
sr_session_get_nc_id
uint32_t sr_session_get_nc_id(sr_session_ctx_t *session)
Learn NETCONF session ID from a sysrepo session. Either reads back the value set by sr_session_set_nc...
sr_change_oper_t
enum sr_change_oper_e sr_change_oper_t
Type of the operation made on an item, used by changeset retrieval in sr_get_change_next.
SR_OP_CREATED
@ SR_OP_CREATED
Definition: sysrepo.h:1294
sr_set_error
int sr_set_error(sr_session_ctx_t *session, const char *path, const char *format,...)
Set detailed error information into provided session. Used to notify the client library about errors ...
SR_EV_NOTIF_REALTIME
@ SR_EV_NOTIF_REALTIME
Definition: sysrepo.h:1574
SR_CONTAINER_PRESENCE_T
@ SR_CONTAINER_PRESENCE_T
Definition: sysrepo.h:615
SR_UNKNOWN_T
@ SR_UNKNOWN_T
Definition: sysrepo.h:611
SR_ERR_CALLBACK_SHELVE
@ SR_ERR_CALLBACK_SHELVE
Definition: sysrepo.h:67
SR_SUBSCR_DONE_ONLY
@ SR_SUBSCR_DONE_ONLY
The subscriber does not support verification of the changes and wants to be notified only after the c...
Definition: sysrepo.h:1159
sr_get_error
int sr_get_error(sr_session_ctx_t *session, const sr_error_info_t **error_info)
Retrieve information about the error that has occurred during the last operation executed within prov...
sr_event_notif_send
int sr_event_notif_send(sr_session_ctx_t *session, const char *path, const sr_val_t *values, const size_t values_cnt)
Send a notification. Data are represented as sr_val_t structures. In case there are particularly many...
SR_EV_UPDATE
@ SR_EV_UPDATE
Definition: sysrepo.h:1267
sr_error_info_s::err
sr_error_info_msg_t * err
Definition: sysrepo.h:218
SR_SUBSCR_ENABLED
@ SR_SUBSCR_ENABLED
The subscriber wants to be notified about the current configuration at the moment of subscribing....
Definition: sysrepo.h:1167
sr_connect
int sr_connect(const sr_conn_options_t opts, sr_conn_ctx_t **conn)
Connects to the sysrepo datastore. If possible (no other connections exist), also apply any scheduled...
sr_copy_config
int sr_copy_config(sr_session_ctx_t *session, const char *module_name, sr_datastore_t src_datastore, uint32_t timeout_ms, int wait)
Replaces a conventional datastore with the contents of another conventional datastore....
SR_OP_DELETED
@ SR_OP_DELETED
Definition: sysrepo.h:1296
sr_error_e
sr_error_e
Sysrepo error codes.
Definition: sysrepo.h:51
SR_STRING_T
@ SR_STRING_T
Definition: sysrepo.h:631
sr_log_stderr
void sr_log_stderr(sr_log_level_t log_level)
Enables / disables / changes log level (verbosity) of logging to standard error output.
sr_get_item
int sr_get_item(sr_session_ctx_t *session, const char *path, uint32_t timeout_ms, sr_val_t **value)
Retrieve a single data element selected by the provided path. Data are represented as sr_val_t struct...
srp_init_cb_t
int(* srp_init_cb_t)(sr_session_ctx_t *session, void **private_data)
Sysrepo plugin initialization callback.
Definition: sysrepo.h:1781
SR_LL_INF
@ SR_LL_INF
Definition: sysrepo.h:86
sr_data_u::int8_val
int8_t int8_val
Definition: sysrepo.h:654
sr_session_ctx_t
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition: sysrepo.h:173
sr_rpc_subscribe
int sr_rpc_subscribe(sr_session_ctx_t *session, const char *xpath, sr_rpc_cb callback, void *private_data, uint32_t priority, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Subscribe for the delivery of an RPC/action. Data are represented as sr_val_t structures.
sr_data_u::int32_val
int32_t int32_val
Definition: sysrepo.h:656
sr_module_change_cb
int(* sr_module_change_cb)(sr_session_ctx_t *session, const char *module_name, const char *xpath, sr_event_t event, uint32_t request_id, void *private_data)
Callback to be called on the event of changing datastore content of the specified module.
Definition: sysrepo.h:1321
sr_edit_flag_t
enum sr_edit_flag_e sr_edit_flag_t
Flags used to override default behavior of data manipulation calls.
sr_delete_item
int sr_delete_item(sr_session_ctx_t *session, const char *path, const sr_edit_options_t opts)
Prepare to selete the nodes matching the specified xpath. These changes are applied only after callin...
SR_DS_RUNNING
@ SR_DS_RUNNING
Definition: sysrepo.h:200
SR_EDIT_ISOLATE
@ SR_EDIT_ISOLATE
Definition: sysrepo.h:839
sr_conn_flag_t
enum sr_conn_flag_e sr_conn_flag_t
Flags used to override default connection handling by sr_connect call.
sr_install_module_data
int sr_install_module_data(sr_conn_ctx_t *conn, const char *module_name, const char *data, const char *data_path, LYD_FORMAT format)
Set newly installed module startup and running data. It is necessary in case empty data are not valid...
SR_ENUM_T
@ SR_ENUM_T
Definition: sysrepo.h:624
sr_data_u::decimal64_val
double decimal64_val
Definition: sysrepo.h:647
sr_session_get_connection
sr_conn_ctx_t * sr_session_get_connection(sr_session_ctx_t *session)
Get the connection the session was created on.
sr_error_info_msg_s
A single, detailed error message. Used in sr_error_info_s.
Definition: sysrepo.h:208
sr_data_u
Data of an element (if applicable), properly set according to the type.
Definition: sysrepo.h:643
SR_LIST_T
@ SR_LIST_T
Definition: sysrepo.h:613
sr_oper_get_items_subscribe
int sr_oper_get_items_subscribe(sr_session_ctx_t *session, const char *module_name, const char *path, sr_oper_get_items_cb callback, void *private_data, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Register for providing operational data at the given xpath.
SR_IDENTITYREF_T
@ SR_IDENTITYREF_T
Definition: sysrepo.h:625
sr_edit_batch
int sr_edit_batch(sr_session_ctx_t *session, const struct lyd_node *edit, const char *default_operation)
Provide a prepared edit data tree to be applied. These changes are applied only after calling sr_appl...
SR_EDIT_DEFAULT
@ SR_EDIT_DEFAULT
Definition: sysrepo.h:833
sr_rpc_send_tree
int sr_rpc_send_tree(sr_session_ctx_t *session, struct lyd_node *input, uint32_t timeout_ms, struct lyd_node **output)
Send an RPC/action and wait for the result. Data are represented as libyang subtrees.
sr_change_oper_e
sr_change_oper_e
Type of the operation made on an item, used by changeset retrieval in sr_get_change_next.
Definition: sysrepo.h:1293
sr_data_u::string_val
char * string_val
Definition: sysrepo.h:658
sr_change_iter_t
struct sr_change_iter_s sr_change_iter_t
Iterator used for retrieval of a changeset using sr_get_changes_iter call.
Definition: sysrepo.h:1303
sr_get_changes_iter
int sr_get_changes_iter(sr_session_ctx_t *session, const char *xpath, sr_change_iter_t **iter)
Create an iterator for retrieving the changes (list of newly added / removed / modified nodes) in mod...
sr_ev_notif_type_t
enum sr_ev_notif_type_e sr_ev_notif_type_t
Type of the notification passed to the sr_event_notif_cb and sr_event_notif_tree_cb callbacks.
sr_discard_changes
int sr_discard_changes(sr_session_ctx_t *session)
Discard prepared changes made in the current session.
sr_val_t
struct sr_val_s sr_val_t
Structure that contains value of an data element stored in the sysrepo datastore.
sr_data_u::bits_val
char * bits_val
Definition: sysrepo.h:645
SR_OPER_NO_CONFIG
@ SR_OPER_NO_CONFIG
Definition: sysrepo.h:699
sr_val_s::origin
char * origin
Definition: sysrepo.h:686
sr_get_context
const struct ly_ctx * sr_get_context(sr_conn_ctx_t *conn)
Get the libyang context used by a connection. Can be used in an application for working with data and...
SR_SUBSCR_NO_THREAD
@ SR_SUBSCR_NO_THREAD
There will be no thread created for handling this subscription meaning no event will be processed!...
Definition: sysrepo.h:1145
sr_event_e
sr_event_e
Type of the event that has occurred (passed to application callbacks).
Definition: sysrepo.h:1266
sr_free_values
void sr_free_values(sr_val_t *values, size_t count)
Free array of sr_val_t structures (and all memory allocated within of each array element).
sr_disable_module_feature
int sr_disable_module_feature(sr_conn_ctx_t *conn, const char *module_name, const char *feature_name)
Disable a module feature. Deferred until there are no connections!
sr_data_u::bool_val
bool bool_val
Definition: sysrepo.h:646
sr_data_u::identityref_val
char * identityref_val
Definition: sysrepo.h:652
SR_ERR_NOMEM
@ SR_ERR_NOMEM
Definition: sysrepo.h:56
sr_set_module_replay_support
int sr_set_module_replay_support(sr_conn_ctx_t *conn, const char *module_name, int replay_support)
Change module replay support.
sr_error_info_msg_t
struct sr_error_info_msg_s sr_error_info_msg_t
A single, detailed error message. Used in sr_error_info_s.
sr_enable_module_feature
int sr_enable_module_feature(sr_conn_ctx_t *conn, const char *module_name, const char *feature_name)
Enable a module feature. Deferred until there are no connections!
sr_unlock
int sr_unlock(sr_session_ctx_t *session, const char *module_name)
Unlocks the data of the specified module or the whole datastore.
sr_edit_flag_e
sr_edit_flag_e
Flags used to override default behavior of data manipulation calls.
Definition: sysrepo.h:832
SR_ERR_UNSUPPORTED
@ SR_ERR_UNSUPPORTED
Definition: sysrepo.h:60
sr_get_change_next
int sr_get_change_next(sr_session_ctx_t *session, sr_change_iter_t *iter, sr_change_oper_t *operation, sr_val_t **old_value, sr_val_t **new_value)
Return the next change from the provided iterator created by sr_get_changes_iter call....
SR_SUBSCR_UNLOCKED
@ SR_SUBSCR_UNLOCKED
The subscriber wants to modify other subscriptions in its callback. Normally, this would cause deadlo...
Definition: sysrepo.h:1185
sr_session_stop
int sr_session_stop(sr_session_ctx_t *session)
Stop current session and releases resources tied to the session.
sr_get_change_tree_next
int sr_get_change_tree_next(sr_session_ctx_t *session, sr_change_iter_t *iter, sr_change_oper_t *operation, const struct lyd_node **node, const char **prev_value, const char **prev_list, bool *prev_dflt)
Returns the next change from the provided iterator created by sr_get_changes_iter call....
SR_MOVE_BEFORE
@ SR_MOVE_BEFORE
Definition: sysrepo.h:855
SR_DECIMAL64_T
@ SR_DECIMAL64_T
Definition: sysrepo.h:623
sr_get_lock
int sr_get_lock(sr_conn_ctx_t *conn, sr_datastore_t datastore, const char *module_name, int *is_locked, uint32_t *id, uint32_t *nc_id, time_t *timestamp)
Check whether the data of the specified module or the whole datastore are locked.
sr_get_oper_options_t
uint32_t sr_get_oper_options_t
Options overriding default get handling by sr_get_data call, it is supposed to be bitwise OR-ed value...
Definition: sysrepo.h:711
sr_session_switch_ds
int sr_session_switch_ds(sr_session_ctx_t *session, sr_datastore_t ds)
Change datastore which the session operates on. All subsequent calls will be issued on the chosen dat...
sr_connection_count
int sr_connection_count(uint32_t *conn_count)
Learn the current global number of (some possibly dead) connections.
SR_OPER_NO_STATE
@ SR_OPER_NO_STATE
Definition: sysrepo.h:698
SR_ANYDATA_T
@ SR_ANYDATA_T
Definition: sysrepo.h:637
sr_session_start
int sr_session_start(sr_conn_ctx_t *conn, const sr_datastore_t datastore, sr_session_ctx_t **session)
Start a new session.
sr_error_info_msg_s::xpath
char * xpath
Definition: sysrepo.h:210
sr_data_u::anyxml_val
char * anyxml_val
Definition: sysrepo.h:663
SR_DS_STARTUP
@ SR_DS_STARTUP
Definition: sysrepo.h:199
SR_LEAF_EMPTY_T
@ SR_LEAF_EMPTY_T
Definition: sysrepo.h:616
sr_error_t
enum sr_error_e sr_error_t
Sysrepo error codes.
SR_LL_WRN
@ SR_LL_WRN
Definition: sysrepo.h:85
sr_set_item_str
int sr_set_item_str(sr_session_ctx_t *session, const char *path, const char *value, const char *origin, const sr_edit_options_t opts)
Prepare to set (create) the value of a leaf, leaf-list, list, or presence container....
sr_validate
int sr_validate(sr_session_ctx_t *session, const char *module_name, uint32_t timeout_ms)
Perform the validation a datastore and any changes made in the current session, but do not apply nor ...
sr_rpc_subscribe_tree
int sr_rpc_subscribe_tree(sr_session_ctx_t *session, const char *xpath, sr_rpc_tree_cb callback, void *private_data, uint32_t priority, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Subscribe for the delivery of an RPC/action. Data are represented as libyang subtrees.
sr_error_info_s
Detailed sysrepo session error information.
Definition: sysrepo.h:216
SR_UINT16_T
@ SR_UINT16_T
Definition: sysrepo.h:633
SR_BOOL_T
@ SR_BOOL_T
Definition: sysrepo.h:622
SR_ERR_OK
@ SR_ERR_OK
Definition: sysrepo.h:52
SR_CONTAINER_T
@ SR_CONTAINER_T
Definition: sysrepo.h:614
sr_get_oper_flag_e
sr_get_oper_flag_e
Flags used to override default data get behaviour on SR_DS_OPERATIONAL by sr_get_data call.
Definition: sysrepo.h:696
sr_set_item
int sr_set_item(sr_session_ctx_t *session, const char *path, const sr_val_t *value, const sr_edit_options_t opts)
Prepare to set (create) the value of a leaf, leaf-list, list, or presence container....
SR_OP_MODIFIED
@ SR_OP_MODIFIED
Definition: sysrepo.h:1295
SR_OPER_NO_STORED
@ SR_OPER_NO_STORED
Definition: sysrepo.h:702
SR_DS_CANDIDATE
@ SR_DS_CANDIDATE
Definition: sysrepo.h:201
sr_data_u::binary_val
char * binary_val
Definition: sysrepo.h:644
sr_val_s::dflt
bool dflt
Definition: sysrepo.h:683
sr_dup_changes_iter
int sr_dup_changes_iter(sr_session_ctx_t *session, const char *xpath, sr_change_iter_t **iter)
Create an iterator for retrieving the changes (list of newly added / removed / modified nodes) in mod...
SR_CONN_DEFAULT
@ SR_CONN_DEFAULT
Definition: sysrepo.h:179
SR_EV_NOTIF_REPLAY_COMPLETE
@ SR_EV_NOTIF_REPLAY_COMPLETE
Definition: sysrepo.h:1576
SR_EV_CHANGE
@ SR_EV_CHANGE
Definition: sysrepo.h:1270
SR_LL_DBG
@ SR_LL_DBG
Definition: sysrepo.h:87
sr_rpc_tree_cb
int(* sr_rpc_tree_cb)(sr_session_ctx_t *session, const char *op_path, const struct lyd_node *input, sr_event_t event, uint32_t request_id, struct lyd_node *output, void *private_data)
Callback to be called for the delivery of an RPC/action. Data are represented as libyang subtrees.
Definition: sysrepo.h:1481
sr_edit_options_t
uint32_t sr_edit_options_t
Options overriding default behavior of data manipulation calls, it is supposed to be bitwise OR-ed va...
Definition: sysrepo.h:849
SR_ERR_LY
@ SR_ERR_LY
Definition: sysrepo.h:54
srp_log
void srp_log(sr_log_level_t ll, const char *format,...)
SR_OPER_NO_SUBS
@ SR_OPER_NO_SUBS
Definition: sysrepo.h:701
sr_get_repo_path
const char * sr_get_repo_path(void)
Get the common path prefix for all sysrepo files.
sr_session_get_id
uint32_t sr_session_get_id(sr_session_ctx_t *session)
Return the assigned session ID of the sysrepo session.
SR_UINT32_T
@ SR_UINT32_T
Definition: sysrepo.h:634
sr_event_notif_subscribe_tree
int sr_event_notif_subscribe_tree(sr_session_ctx_t *session, const char *module_name, const char *xpath, time_t start_time, time_t stop_time, sr_event_notif_tree_cb callback, void *private_data, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Subscribes for the delivery of a notification(s). Data are represented as libyang subtrees.
sr_data_t
union sr_data_u sr_data_t
Data of an element (if applicable), properly set according to the type.
sr_data_u::instanceid_val
char * instanceid_val
Definition: sysrepo.h:653
sr_event_notif_send_tree
int sr_event_notif_send_tree(sr_session_ctx_t *session, struct lyd_node *notif)
Send a notification. Data are represented as libyang subtrees. In case there are particularly many no...
sr_data_u::uint64_val
uint64_t uint64_val
Definition: sysrepo.h:662
sr_error_info_s::err_count
size_t err_count
Definition: sysrepo.h:219
SR_OPER_DEFAULT
@ SR_OPER_DEFAULT
Definition: sysrepo.h:697
sr_replace_config
int sr_replace_config(sr_session_ctx_t *session, const char *module_name, struct lyd_node *src_config, uint32_t timeout_ms, int wait)
Replace a datastore with the contents of a data tree. If the module is specified, limit the operation...
sr_data_u::uint16_val
uint16_t uint16_val
Definition: sysrepo.h:660
sr_session_get_user
const char * sr_session_get_user(sr_session_ctx_t *session)
Get the effective user of a session.
sr_event_notif_tree_cb
void(* sr_event_notif_tree_cb)(sr_session_ctx_t *session, const sr_ev_notif_type_t notif_type, const struct lyd_node *notif, time_t timestamp, void *private_data)
Callback to be called for the delivery of a notification. Data are represented as libyang subtrees.
Definition: sysrepo.h:1610
sr_conn_ctx_t
struct sr_conn_ctx_s sr_conn_ctx_t
Sysrepo connection.
Definition: sysrepo.h:168
SR_MOVE_AFTER
@ SR_MOVE_AFTER
Definition: sysrepo.h:856
sr_event_t
enum sr_event_e sr_event_t
Type of the event that has occurred (passed to application callbacks).
sr_get_event_pipe
int sr_get_event_pipe(sr_subscription_ctx_t *subscription, int *event_pipe)
Get the event pipe of a subscription. Do not call unless SR_SUBSCR_NO_THREAD flag was used when subsc...
sr_has_changes
int sr_has_changes(sr_session_ctx_t *session)
Learn whether there are any prepared non-applied changes in the session.
sr_unsubscribe
int sr_unsubscribe(sr_subscription_ctx_t *subscription)
Unsubscribes from a subscription acquired by any of sr_*_subscribe calls and releases all subscriptio...
SR_CONN_CACHE_RUNNING
@ SR_CONN_CACHE_RUNNING
Definition: sysrepo.h:180
SR_ERR_INTERNAL
@ SR_ERR_INTERNAL
Definition: sysrepo.h:59
sr_process_events
int sr_process_events(sr_subscription_ctx_t *subscription, sr_session_ctx_t *session, time_t *stop_time_in)
Process any pending new events on a subscription. Should not be called unless SR_SUBSCR_NO_THREAD fla...
SR_DS_OPERATIONAL
@ SR_DS_OPERATIONAL
Definition: sysrepo.h:202
sr_log_get_syslog
sr_log_level_t sr_log_get_syslog(void)
Learn current system log log level.
SR_ERR_VALIDATION_FAILED
@ SR_ERR_VALIDATION_FAILED
Definition: sysrepo.h:61
SR_EDIT_NON_RECURSIVE
@ SR_EDIT_NON_RECURSIVE
Definition: sysrepo.h:834
sr_install_module
int sr_install_module(sr_conn_ctx_t *conn, const char *schema_path, const char *search_dirs, const char **features, int feat_count)
Install a new schema (module) into sysrepo. Deferred until there are no connections!
SR_ERR_SYS
@ SR_ERR_SYS
Definition: sysrepo.h:55
sr_free_change_iter
void sr_free_change_iter(sr_change_iter_t *iter)
Frees sr_change_iter_t iterator and all memory allocated within it.
sr_data_u::int64_val
int64_t int64_val
Definition: sysrepo.h:657
SR_ANYXML_T
@ SR_ANYXML_T
Definition: sysrepo.h:636
sr_module_change_subscribe
int sr_module_change_subscribe(sr_session_ctx_t *session, const char *module_name, const char *xpath, sr_module_change_cb callback, void *private_data, uint32_t priority, sr_subscr_options_t opts, sr_subscription_ctx_t **subscription)
Subscribe for changes made in the specified module. If there are changes made in several modules,...
sr_data_u::enum_val
char * enum_val
Definition: sysrepo.h:651
SR_ERR_OPERATION_FAILED
@ SR_ERR_OPERATION_FAILED
Definition: sysrepo.h:62
sr_val_s
Structure that contains value of an data element stored in the sysrepo datastore.
Definition: sysrepo.h:670
SR_INT8_T
@ SR_INT8_T
Definition: sysrepo.h:627
sr_error_info_s::err_code
sr_error_t err_code
Definition: sysrepo.h:217
sr_get_data
int sr_get_data(sr_session_ctx_t *session, const char *xpath, uint32_t max_depth, uint32_t timeout_ms, const sr_get_oper_options_t opts, struct lyd_node **data)
Retrieve a tree whose root nodes match the provided XPath. Data are represented as libyang subtrees.
SR_OP_MOVED
@ SR_OP_MOVED
Definition: sysrepo.h:1297
SR_BITS_T
@ SR_BITS_T
Definition: sysrepo.h:621
SR_EDIT_STRICT
@ SR_EDIT_STRICT
Definition: sysrepo.h:836
sr_val_s::data
sr_data_t data
Definition: sysrepo.h:689