Loading...
Searching...
No Matches
sysrepo_types.h
Go to the documentation of this file.
#ifndef _SYSREPO_TYPES_H
#define _SYSREPO_TYPES_H
#include <fcntl.h>
#include <inttypes.h>
#include <stddef.h>
#include <sys/stat.h>
struct lyd_node;
struct timespec;
#ifdef __cplusplus
extern "C" {
#endif
typedef enum {
SR_ERR_OK = 0,
SR_ERR_INVAL_ARG,
SR_ERR_LY,
SR_ERR_SYS,
SR_ERR_NO_MEMORY,
SR_ERR_NOT_FOUND,
SR_ERR_EXISTS,
SR_ERR_INTERNAL,
SR_ERR_UNSUPPORTED,
SR_ERR_VALIDATION_FAILED,
SR_ERR_OPERATION_FAILED,
SR_ERR_UNAUTHORIZED,
SR_ERR_LOCKED,
SR_ERR_TIME_OUT,
SR_ERR_CALLBACK_FAILED,
SR_ERR_CALLBACK_SHELVE
} sr_error_t;
typedef enum {
SR_LL_NONE = 0,
SR_LL_ERR,
SR_LL_WRN,
SR_LL_INF,
SR_LL_DBG
} sr_log_level_t;
typedef void (*sr_log_cb)(sr_log_level_t level, const char *message);
typedef struct sr_conn_ctx_s sr_conn_ctx_t;
typedef uint32_t sr_cid_t;
typedef struct sr_session_ctx_s sr_session_ctx_t;
typedef enum {
SR_CONN_DEFAULT = 0x0,
SR_CONN_CACHE_RUNNING = 0x1,
SR_CONN_CTX_SET_PRIV_PARSED = 0x2
} sr_conn_flag_t;
typedef uint32_t sr_conn_options_t;
typedef enum {
SR_DS_STARTUP = 0,
SR_DS_RUNNING = 1,
SR_DS_CANDIDATE = 2,
SR_DS_OPERATIONAL = 3,
SR_DS_FACTORY_DEFAULT = 4
} sr_datastore_t;
#define SR_DS_COUNT 4
#define SR_DS_READ_COUNT 5
#define SR_MOD_DS_NOTIF 5
#define SR_MOD_DS_PLUGIN_COUNT 6
typedef struct {
const char *plugin_name[SR_MOD_DS_PLUGIN_COUNT];
} sr_module_ds_t;
typedef struct {
sr_error_t err_code;
char *message;
char *error_format;
void *error_data;
} sr_error_info_err_t;
typedef struct {
sr_error_info_err_t *err;
uint32_t err_count;
} sr_error_info_t;
typedef struct {
union {
const char *schema_path;
const char *schema_yang;
};
const char **features;
sr_module_ds_t module_ds;
const char *owner;
const char *group;
mode_t perm;
} sr_install_mod_t;
typedef struct {
const sr_conn_ctx_t *conn;
struct lyd_node *tree;
} sr_data_t;
typedef enum {
/* special types that does not contain any data */
SR_UNKNOWN_T,
SR_LIST_T,
SR_CONTAINER_T,
SR_CONTAINER_PRESENCE_T,
SR_LEAF_EMPTY_T,
SR_NOTIFICATION_T,
/* types containing some data */
SR_BINARY_T,
SR_BITS_T,
SR_BOOL_T,
SR_DECIMAL64_T,
SR_ENUM_T,
SR_IDENTITYREF_T,
SR_INSTANCEID_T,
SR_INT8_T,
SR_INT16_T,
SR_INT32_T,
SR_INT64_T,
SR_STRING_T,
SR_UINT8_T,
SR_UINT16_T,
SR_UINT32_T,
SR_UINT64_T,
SR_ANYXML_T,
SR_ANYDATA_T
} sr_val_type_t;
typedef union {
char *binary_val;
char *bits_val;
int bool_val;
double decimal64_val;
char *enum_val;
char *identityref_val;
char *instanceid_val;
int8_t int8_val;
int16_t int16_val;
int32_t int32_val;
int64_t int64_val;
char *string_val;
uint8_t uint8_val;
uint16_t uint16_val;
uint32_t uint32_val;
uint64_t uint64_val;
char *anyxml_val;
char *anydata_val;
} sr_val_data_t;
typedef struct {
char *xpath;
sr_val_type_t type;
int dflt;
char *origin;
sr_val_data_t data;
} sr_val_t;
typedef enum {
SR_OPER_DEFAULT = 0x00,
SR_OPER_NO_STATE = 0x01,
SR_OPER_NO_CONFIG = 0x02,
SR_OPER_NO_SUBS = 0x04,
SR_OPER_NO_STORED = 0x08,
SR_OPER_WITH_ORIGIN = 0x10,
SR_OPER_NO_POLL_CACHED = 0x20,
SR_OPER_NO_RUN_CACHED = 0x40,
SR_OPER_NO_PUSH_NP_CONT = 0x80,
SR_OPER_NO_NEW_CHANGES = 0x0100
} sr_get_oper_flag_t;
#define SR_OPER_MASK 0xFFFF
typedef enum {
SR_GET_NO_FILTER = 0x010000
} sr_get_flag_t;
typedef uint32_t sr_get_options_t;
typedef enum {
SR_EDIT_DEFAULT = 0x0,
SR_EDIT_NON_RECURSIVE = 0x1,
SR_EDIT_STRICT = 0x2,
SR_EDIT_ISOLATE = 0x4
} sr_edit_flag_t;
typedef uint32_t sr_edit_options_t;
typedef enum {
SR_MOVE_BEFORE = 0,
SR_MOVE_AFTER = 1,
SR_MOVE_FIRST = 2,
SR_MOVE_LAST = 3
} sr_move_position_t;
typedef enum {
SR_SUBSCR_DEFAULT = 0x00,
SR_SUBSCR_NO_THREAD = 0x01,
SR_SUBSCR_PASSIVE = 0x02,
SR_SUBSCR_DONE_ONLY = 0x04,
SR_SUBSCR_ENABLED = 0x08,
SR_SUBSCR_UPDATE = 0x10,
SR_SUBSCR_OPER_MERGE = 0x20,
SR_SUBSCR_THREAD_SUSPEND = 0x40,
SR_SUBSCR_OPER_POLL_DIFF = 0x80,
SR_SUBSCR_FILTER_ORIG = 0x0100,
SR_SUBSCR_CHANGE_ALL_MODULES = 0x0200
} sr_subscr_flag_t;
typedef struct sr_subscription_ctx_s sr_subscription_ctx_t;
typedef uint32_t sr_subscr_options_t;
typedef enum {
SR_EV_UPDATE,
SR_EV_CHANGE,
SR_EV_DONE,
SR_EV_ABORT,
SR_EV_ENABLED,
SR_EV_RPC
} sr_event_t;
typedef enum {
SR_OP_CREATED,
SR_OP_MODIFIED,
SR_OP_DELETED,
SR_OP_MOVED
} sr_change_oper_t;
typedef struct sr_change_iter_s sr_change_iter_t;
typedef int (*sr_module_change_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *module_name, const char *xpath,
sr_event_t event, uint32_t operation_id, void *private_data);
typedef int (*sr_rpc_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *xpath, const sr_val_t *input,
const size_t input_cnt, sr_event_t event, uint32_t operation_id, sr_val_t **output, size_t *output_cnt,
void *private_data);
typedef int (*sr_rpc_tree_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *op_path, const struct lyd_node *input,
sr_event_t event, uint32_t operation_id, struct lyd_node *output, void *private_data);
typedef enum {
SR_EV_NOTIF_REALTIME,
SR_EV_NOTIF_REPLAY,
SR_EV_NOTIF_REPLAY_COMPLETE,
SR_EV_NOTIF_TERMINATED,
SR_EV_NOTIF_MODIFIED,
SR_EV_NOTIF_SUSPENDED,
SR_EV_NOTIF_RESUMED,
SR_EV_NOTIF_STOP_TIME
} sr_ev_notif_type_t;
typedef void (*sr_event_notif_cb)(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type_t notif_type,
const char *xpath, const sr_val_t *values, const size_t values_cnt, struct timespec *timestamp, void *private_data);
typedef void (*sr_event_notif_tree_cb)(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type_t notif_type,
const struct lyd_node *notif, struct timespec *timestamp, void *private_data);
typedef int (*sr_oper_get_items_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *module_name, const char *path,
const char *request_xpath, uint32_t operation_id, struct lyd_node **parent, void *private_data);
typedef int (*srp_init_cb_t)(sr_session_ctx_t *session, void **private_data);
typedef void (*srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data);
#ifdef __cplusplus
}
#endif
#endif /* _SYSREPO_TYPES_H */
sr_change_oper_t
sr_change_oper_t
Type of the operation made on an item, used by changeset retrieval in sr_get_change_next.
Definition sysrepo_types.h:529
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_types.h:539
sr_event_t
sr_event_t
Type of the event that has occurred (passed to application callbacks).
Definition sysrepo_types.h:502
sr_module_change_cb
int(* sr_module_change_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *module_name, const char *xpath, sr_event_t event, uint32_t operation_id, void *private_data)
Callback to be called on the event of changing datastore content of the specified module.
Definition sysrepo_types.h:556
SR_EV_RPC
@ SR_EV_RPC
Definition sysrepo_types.h:523
SR_EV_ENABLED
@ SR_EV_ENABLED
Definition sysrepo_types.h:519
SR_EV_UPDATE
@ SR_EV_UPDATE
Definition sysrepo_types.h:503
SR_EV_DONE
@ SR_EV_DONE
Definition sysrepo_types.h:510
SR_EV_CHANGE
@ SR_EV_CHANGE
Definition sysrepo_types.h:506
SR_EV_ABORT
@ SR_EV_ABORT
Definition sysrepo_types.h:513
sr_conn_ctx_t
struct sr_conn_ctx_s sr_conn_ctx_t
Sysrepo connection.
Definition sysrepo_types.h:89
sr_move_position_t
sr_move_position_t
Options for specifying move direction of sr_move_item call.
Definition sysrepo_types.h:366
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_types.h:361
sr_edit_flag_t
sr_edit_flag_t
Flags used to override default behavior of data manipulation calls.
Definition sysrepo_types.h:344
SR_EDIT_DEFAULT
@ SR_EDIT_DEFAULT
Definition sysrepo_types.h:345
SR_EDIT_STRICT
@ SR_EDIT_STRICT
Definition sysrepo_types.h:348
SR_EDIT_ISOLATE
@ SR_EDIT_ISOLATE
Definition sysrepo_types.h:351
SR_EDIT_NON_RECURSIVE
@ SR_EDIT_NON_RECURSIVE
Definition sysrepo_types.h:346
sr_data_t::conn
const sr_conn_ctx_t * conn
Definition sysrepo_types.h:202
sr_data_t::tree
struct lyd_node * tree
Definition sysrepo_types.h:205
sr_data_t
Structure that safely wraps libyang data and prevents unexpected context changes.
Definition sysrepo_types.h:200
sr_error_t
sr_error_t
Sysrepo error codes.
Definition sysrepo_types.h:40
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_types.h:77
sr_log_level_t
sr_log_level_t
Log levels used to determine if message of certain severity should be printed.
Definition sysrepo_types.h:63
SR_ERR_LY
@ SR_ERR_LY
Definition sysrepo_types.h:43
SR_ERR_NOT_FOUND
@ SR_ERR_NOT_FOUND
Definition sysrepo_types.h:46
SR_ERR_UNSUPPORTED
@ SR_ERR_UNSUPPORTED
Definition sysrepo_types.h:49
SR_ERR_LOCKED
@ SR_ERR_LOCKED
Definition sysrepo_types.h:53
SR_ERR_OPERATION_FAILED
@ SR_ERR_OPERATION_FAILED
Definition sysrepo_types.h:51
SR_ERR_EXISTS
@ SR_ERR_EXISTS
Definition sysrepo_types.h:47
SR_ERR_VALIDATION_FAILED
@ SR_ERR_VALIDATION_FAILED
Definition sysrepo_types.h:50
SR_ERR_OK
@ SR_ERR_OK
Definition sysrepo_types.h:41
SR_ERR_CALLBACK_SHELVE
@ SR_ERR_CALLBACK_SHELVE
Definition sysrepo_types.h:56
SR_ERR_CALLBACK_FAILED
@ SR_ERR_CALLBACK_FAILED
Definition sysrepo_types.h:55
SR_ERR_INVAL_ARG
@ SR_ERR_INVAL_ARG
Definition sysrepo_types.h:42
SR_ERR_INTERNAL
@ SR_ERR_INTERNAL
Definition sysrepo_types.h:48
SR_ERR_SYS
@ SR_ERR_SYS
Definition sysrepo_types.h:44
SR_ERR_UNAUTHORIZED
@ SR_ERR_UNAUTHORIZED
Definition sysrepo_types.h:52
SR_ERR_NO_MEMORY
@ SR_ERR_NO_MEMORY
Definition sysrepo_types.h:45
SR_ERR_TIME_OUT
@ SR_ERR_TIME_OUT
Definition sysrepo_types.h:54
sr_event_notif_cb
void(* sr_event_notif_cb)(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type_t notif_type, const char *xpath, const sr_val_t *values, const size_t values_cnt, struct timespec *timestamp, void *private_data)
Callback to be called for the delivery of a notification. Data are represented as sr_val_t structures...
Definition sysrepo_types.h:646
sr_ev_notif_type_t
sr_ev_notif_type_t
Type of the notification passed to the sr_event_notif_cb and sr_event_notif_tree_cb callbacks.
Definition sysrepo_types.h:616
sr_event_notif_tree_cb
void(* sr_event_notif_tree_cb)(sr_session_ctx_t *session, uint32_t sub_id, const sr_ev_notif_type_t notif_type, const struct lyd_node *notif, struct timespec *timestamp, void *private_data)
Callback to be called for the delivery of a notification. Data are represented as libyang subtrees.
Definition sysrepo_types.h:661
SR_EV_NOTIF_SUSPENDED
@ SR_EV_NOTIF_SUSPENDED
Definition sysrepo_types.h:624
SR_EV_NOTIF_REALTIME
@ SR_EV_NOTIF_REALTIME
Definition sysrepo_types.h:617
SR_EV_NOTIF_TERMINATED
@ SR_EV_NOTIF_TERMINATED
Definition sysrepo_types.h:621
SR_EV_NOTIF_MODIFIED
@ SR_EV_NOTIF_MODIFIED
Definition sysrepo_types.h:623
SR_EV_NOTIF_RESUMED
@ SR_EV_NOTIF_RESUMED
Definition sysrepo_types.h:625
SR_EV_NOTIF_REPLAY_COMPLETE
@ SR_EV_NOTIF_REPLAY_COMPLETE
Definition sysrepo_types.h:619
SR_EV_NOTIF_REPLAY
@ SR_EV_NOTIF_REPLAY
Definition sysrepo_types.h:618
SR_EV_NOTIF_STOP_TIME
@ SR_EV_NOTIF_STOP_TIME
Definition sysrepo_types.h:627
sr_oper_get_items_cb
int(* sr_oper_get_items_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *module_name, const char *path, const char *request_xpath, uint32_t operation_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_types.h:696
sr_rpc_cb
int(* sr_rpc_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *xpath, const sr_val_t *input, const size_t input_cnt, sr_event_t event, uint32_t operation_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_types.h:584
sr_rpc_tree_cb
int(* sr_rpc_tree_cb)(sr_session_ctx_t *session, uint32_t sub_id, const char *op_path, const struct lyd_node *input, sr_event_t event, uint32_t operation_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_types.h:603
srp_init_cb_t
int(* srp_init_cb_t)(sr_session_ctx_t *session, void **private_data)
Sysrepo plugin initialization callback.
Definition sysrepo_types.h:717
srp_cleanup_cb_t
void(* srp_cleanup_cb_t)(sr_session_ctx_t *session, void *private_data)
Sysrepo plugin cleanup callback.
Definition sysrepo_types.h:727
sr_subscr_flag_t
sr_subscr_flag_t
Flags used to override default handling of subscriptions.
Definition sysrepo_types.h:383
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_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_types.h:417
SR_SUBSCR_FILTER_ORIG
@ SR_SUBSCR_FILTER_ORIG
Normally, XPath filter is applied by the listener (subscriber) for counting its statistics of filtere...
Definition sysrepo_types.h:462
SR_SUBSCR_CHANGE_ALL_MODULES
@ SR_SUBSCR_CHANGE_ALL_MODULES
If you call getters (sr_get_data()) in the module change callback for data from other modules than th...
Definition sysrepo_types.h:471
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_types.h:410
SR_SUBSCR_DEFAULT
@ SR_SUBSCR_DEFAULT
Default behavior of the subscription. In case of sr_module_change_subscribe call it means that:
Definition sysrepo_types.h:396
SR_SUBSCR_UPDATE
@ SR_SUBSCR_UPDATE
The subscriber will be called before any other subscribers for the particular module with an addition...
Definition sysrepo_types.h:434
SR_SUBSCR_THREAD_SUSPEND
@ SR_SUBSCR_THREAD_SUSPEND
Suspend the default handler thread before adding the subscription if it is running....
Definition sysrepo_types.h:448
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_types.h:403
SR_SUBSCR_OPER_POLL_DIFF
@ SR_SUBSCR_OPER_POLL_DIFF
On every data retrieval additionally compute diff with the previous data and report the changes to an...
Definition sysrepo_types.h:454
SR_SUBSCR_ENABLED
@ SR_SUBSCR_ENABLED
The subscriber wants to be notified about the current configuration at the moment of subscribing....
Definition sysrepo_types.h:426
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_types.h:441
sr_install_mod_t::features
const char ** features
Definition sysrepo_types.h:182
sr_val_data_t::anydata_val
char * anydata_val
Definition sysrepo_types.h:266
sr_session_ctx_t
struct sr_session_ctx_s sr_session_ctx_t
Sysrepo session on a connection.
Definition sysrepo_types.h:99
sr_val_data_t::uint8_val
uint8_t uint8_val
Definition sysrepo_types.h:261
sr_val_data_t::uint64_val
uint64_t uint64_val
Definition sysrepo_types.h:264
sr_val_data_t::anyxml_val
char * anyxml_val
Definition sysrepo_types.h:265
sr_error_info_err_t::error_format
char * error_format
Definition sysrepo_types.h:162
sr_val_data_t::bool_val
int bool_val
Definition sysrepo_types.h:248
sr_error_info_t::err
sr_error_info_err_t * err
Definition sysrepo_types.h:170
sr_val_data_t::instanceid_val
char * instanceid_val
Definition sysrepo_types.h:255
sr_install_mod_t::group
const char * group
Definition sysrepo_types.h:186
sr_install_mod_t.__unnamed0__::schema_yang
const char * schema_yang
sr_error_info_err_t::error_data
void * error_data
Definition sysrepo_types.h:163
sr_error_info_err_t::message
char * message
Definition sysrepo_types.h:161
sr_install_mod_t::owner
const char * owner
Definition sysrepo_types.h:185
sr_val_data_t::int8_val
int8_t int8_val
Definition sysrepo_types.h:256
SR_MOD_DS_PLUGIN_COUNT
#define SR_MOD_DS_PLUGIN_COUNT
Count of all module plugin types (datastores and notifications).
Definition sysrepo_types.h:147
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_types.h:115
sr_get_oper_flag_t
sr_get_oper_flag_t
Flags used to override default data get behaviour on SR_DS_OPERATIONAL.
Definition sysrepo_types.h:297
SR_OPER_NO_PUSH_NP_CONT
@ SR_OPER_NO_PUSH_NP_CONT
Definition sysrepo_types.h:310
SR_OPER_NO_POLL_CACHED
@ SR_OPER_NO_POLL_CACHED
Definition sysrepo_types.h:306
SR_OPER_NO_STATE
@ SR_OPER_NO_STATE
Definition sysrepo_types.h:299
SR_OPER_NO_STORED
@ SR_OPER_NO_STORED
Definition sysrepo_types.h:303
SR_OPER_NO_NEW_CHANGES
@ SR_OPER_NO_NEW_CHANGES
Definition sysrepo_types.h:313
SR_OPER_NO_CONFIG
@ SR_OPER_NO_CONFIG
Definition sysrepo_types.h:300
SR_OPER_NO_RUN_CACHED
@ SR_OPER_NO_RUN_CACHED
Definition sysrepo_types.h:308
SR_OPER_DEFAULT
@ SR_OPER_DEFAULT
Definition sysrepo_types.h:298
SR_OPER_NO_SUBS
@ SR_OPER_NO_SUBS
Definition sysrepo_types.h:302
SR_OPER_WITH_ORIGIN
@ SR_OPER_WITH_ORIGIN
Definition sysrepo_types.h:304
sr_error_info_t::err_count
uint32_t err_count
Definition sysrepo_types.h:171
sr_val_data_t::enum_val
char * enum_val
Definition sysrepo_types.h:253
sr_val_data_t::int32_val
int32_t int32_val
Definition sysrepo_types.h:258
sr_val_data_t::int16_val
int16_t int16_val
Definition sysrepo_types.h:257
sr_val_type_t
sr_val_type_t
Possible types of a data element stored in the sysrepo datastore.
Definition sysrepo_types.h:211
SR_INT64_T
@ SR_INT64_T
Definition sysrepo_types.h:232
SR_UNKNOWN_T
@ SR_UNKNOWN_T
Definition sysrepo_types.h:213
SR_LEAF_EMPTY_T
@ SR_LEAF_EMPTY_T
Definition sysrepo_types.h:218
SR_INT8_T
@ SR_INT8_T
Definition sysrepo_types.h:229
SR_BINARY_T
@ SR_BINARY_T
Definition sysrepo_types.h:222
SR_CONTAINER_T
@ SR_CONTAINER_T
Definition sysrepo_types.h:216
SR_INT32_T
@ SR_INT32_T
Definition sysrepo_types.h:231
SR_INT16_T
@ SR_INT16_T
Definition sysrepo_types.h:230
SR_ANYDATA_T
@ SR_ANYDATA_T
Definition sysrepo_types.h:239
SR_UINT8_T
@ SR_UINT8_T
Definition sysrepo_types.h:234
SR_STRING_T
@ SR_STRING_T
Definition sysrepo_types.h:233
SR_UINT32_T
@ SR_UINT32_T
Definition sysrepo_types.h:236
SR_IDENTITYREF_T
@ SR_IDENTITYREF_T
Definition sysrepo_types.h:227
SR_BITS_T
@ SR_BITS_T
Definition sysrepo_types.h:223
SR_ENUM_T
@ SR_ENUM_T
Definition sysrepo_types.h:226
SR_ANYXML_T
@ SR_ANYXML_T
Definition sysrepo_types.h:238
SR_NOTIFICATION_T
@ SR_NOTIFICATION_T
Definition sysrepo_types.h:219
SR_CONTAINER_PRESENCE_T
@ SR_CONTAINER_PRESENCE_T
Definition sysrepo_types.h:217
SR_UINT64_T
@ SR_UINT64_T
Definition sysrepo_types.h:237
SR_LIST_T
@ SR_LIST_T
Definition sysrepo_types.h:215
SR_INSTANCEID_T
@ SR_INSTANCEID_T
Definition sysrepo_types.h:228
SR_UINT16_T
@ SR_UINT16_T
Definition sysrepo_types.h:235
SR_BOOL_T
@ SR_BOOL_T
Definition sysrepo_types.h:224
SR_DECIMAL64_T
@ SR_DECIMAL64_T
Definition sysrepo_types.h:225
sr_conn_flag_t
sr_conn_flag_t
Flags used to override default connection handling by sr_connect call.
Definition sysrepo_types.h:104
SR_CONN_CTX_SET_PRIV_PARSED
@ SR_CONN_CTX_SET_PRIV_PARSED
Definition sysrepo_types.h:108
SR_CONN_DEFAULT
@ SR_CONN_DEFAULT
Definition sysrepo_types.h:105
SR_CONN_CACHE_RUNNING
@ SR_CONN_CACHE_RUNNING
Definition sysrepo_types.h:106
sr_cid_t
uint32_t sr_cid_t
Connection ID.
Definition sysrepo_types.h:94
sr_val_data_t::int64_val
int64_t int64_val
Definition sysrepo_types.h:259
sr_val_data_t::binary_val
char * binary_val
Definition sysrepo_types.h:246
sr_val_t::origin
char * origin
Definition sysrepo_types.h:288
sr_val_data_t::bits_val
char * bits_val
Definition sysrepo_types.h:247
sr_val_data_t::decimal64_val
double decimal64_val
Definition sysrepo_types.h:249
sr_val_data_t::uint32_val
uint32_t uint32_val
Definition sysrepo_types.h:263
sr_val_data_t::identityref_val
char * identityref_val
Definition sysrepo_types.h:254
sr_val_t::xpath
char * xpath
Definition sysrepo_types.h:274
sr_get_options_t
uint32_t sr_get_options_t
Options overriding default get handling by sr_get_data call, it is supposed to be a bitmask sr_get_op...
Definition sysrepo_types.h:332
sr_install_mod_t::module_ds
sr_module_ds_t module_ds
Definition sysrepo_types.h:183
sr_get_flag_t
sr_get_flag_t
Flags used to override default data get behavior.
Definition sysrepo_types.h:322
SR_GET_NO_FILTER
@ SR_GET_NO_FILTER
Definition sysrepo_types.h:323
sr_val_data_t::string_val
char * string_val
Definition sysrepo_types.h:260
sr_install_mod_t::perm
mode_t perm
Definition sysrepo_types.h:187
sr_val_t::data
sr_val_data_t data
Definition sysrepo_types.h:291
sr_install_mod_t.__unnamed0__::schema_path
const char * schema_path
sr_datastore_t
sr_datastore_t
Datastores that sysrepo supports. To change which datastore a session operates on,...
Definition sysrepo_types.h:121
SR_DS_RUNNING
@ SR_DS_RUNNING
Definition sysrepo_types.h:123
SR_DS_CANDIDATE
@ SR_DS_CANDIDATE
Definition sysrepo_types.h:124
SR_DS_FACTORY_DEFAULT
@ SR_DS_FACTORY_DEFAULT
Definition sysrepo_types.h:126
SR_DS_OPERATIONAL
@ SR_DS_OPERATIONAL
Definition sysrepo_types.h:125
SR_DS_STARTUP
@ SR_DS_STARTUP
Definition sysrepo_types.h:122
sr_module_ds_t::plugin_name
const char * plugin_name[6]
Definition sysrepo_types.h:153
sr_val_t::dflt
int dflt
Definition sysrepo_types.h:285
sr_error_info_err_t::err_code
sr_error_t err_code
Definition sysrepo_types.h:160
sr_val_data_t::uint16_val
uint16_t uint16_val
Definition sysrepo_types.h:262
sr_val_t::type
sr_val_type_t type
Definition sysrepo_types.h:277
sr_module_ds_t
Custom datastore implementation config for each datastore and notifications of a module.
Definition sysrepo_types.h:152
sr_install_mod_t
Information about a module to be installed.
Definition sysrepo_types.h:177
sr_val_t
Structure that contains value of an data element stored in the sysrepo datastore.
Definition sysrepo_types.h:272
sr_val_data_t
Data of an element (if applicable), properly set according to the type.
Definition sysrepo_types.h:245
sr_error_info_err_t
A single, detailed error message. Used in sr_error_info_t.
Definition sysrepo_types.h:159
sr_error_info_t
Detailed sysrepo session error information.
Definition sysrepo_types.h:169
SR_MOVE_LAST
@ SR_MOVE_LAST
Definition sysrepo_types.h:370
SR_MOVE_FIRST
@ SR_MOVE_FIRST
Definition sysrepo_types.h:369
SR_MOVE_AFTER
@ SR_MOVE_AFTER
Definition sysrepo_types.h:368
SR_MOVE_BEFORE
@ SR_MOVE_BEFORE
Definition sysrepo_types.h:367
SR_OP_CREATED
@ SR_OP_CREATED
Definition sysrepo_types.h:530
SR_OP_MOVED
@ SR_OP_MOVED
Definition sysrepo_types.h:533
SR_OP_MODIFIED
@ SR_OP_MODIFIED
Definition sysrepo_types.h:531
SR_OP_DELETED
@ SR_OP_DELETED
Definition sysrepo_types.h:532
SR_LL_ERR
@ SR_LL_ERR
Definition sysrepo_types.h:65
SR_LL_INF
@ SR_LL_INF
Definition sysrepo_types.h:67
SR_LL_NONE
@ SR_LL_NONE
Definition sysrepo_types.h:64
SR_LL_WRN
@ SR_LL_WRN
Definition sysrepo_types.h:66
SR_LL_DBG
@ SR_LL_DBG
Definition sysrepo_types.h:68