sysrepo  1.4.122
YANG datastore
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
C++/Python

Data Structures

class  Connection
 Class for wrapping sr_conn_ctx_t. More...
 
class  Session
 Class for wrapping sr_session_ctx_t. More...
 
class  Subscribe
 Class for wrapping sr_subscription_ctx_t. More...
 
class  Data
 Class for wrapping sr_data_t. More...
 
class  Val
 Class for wrapping sr_val_t. More...
 
class  Vals
 Class for wrapping sr_val_t array. More...
 
class  Vals_Holder
 Class for wrapping sr_val_t in callbacks. More...
 
class  Change_Iter
 Class for wrapping sr_change_iter_t. More...
 
class  Errors
 Class for wrapping sr_error_info_t. More...
 
class  Iter_Change
 Class for wrapping sr_change_iter_t. More...
 
class  Change
 Class for wrapping sr_change_oper_t. More...
 
class  Tree_Change
 Class for wrapping tree sr_change_oper_t. More...
 
class  sysrepo_exception
 Class for wrapping sr_error_t. More...
 
class  Logs
 Class for wrapping ref sr_log_level_t. More...
 
class  Xpath_Ctx
 Class for wrapping sr_xpath_ctx_t. More...
 

Typedefs

using FdRegistration = std::function< void(int, std::function< void()>)>
 
using FdUnregistration = std::function< void(int)>
 
using ModuleChangeCb = std::function< int(S_Session session, const char *module_name, const char *xpath, sr_event_t event, uint32_t request_id)>
 
using RpcCb = std::function< int(S_Session session, const char *op_path, const S_Vals input, sr_event_t event, uint32_t request_id, S_Vals_Holder output)>
 
using RpcTreeCb = std::function< int(S_Session session, const char *op_path, const libyang::S_Data_Node input, sr_event_t event, uint32_t request_id, libyang::S_Data_Node output)>
 
using EventNotifCb = std::function< void(S_Session session, const sr_ev_notif_type_t notif_type, const char *path, const S_Vals vals, time_t timestamp)>
 
using EventNotifTreeCb = std::function< void(S_Session session, const sr_ev_notif_type_t notif_type, const libyang::S_Data_Node notif, time_t timestamp)>
 
using OperGetItemsCb = std::function< int(S_Session session, const char *module_name, const char *path, const char *request_xpath, uint32_t request_id, libyang::S_Data_Node &parent)>
 
using S_Iter_Change = std::shared_ptr< Iter_Change >
 
using S_Session = std::shared_ptr< Session >
 
using S_Subscribe = std::shared_ptr< Subscribe >
 
using S_Connection = std::shared_ptr< Connection >
 
using S_Operation = std::shared_ptr< Operation >
 
using S_Errors = std::shared_ptr< Errors >
 
using S_Data = std::shared_ptr< Data >
 
using S_Val = std::shared_ptr< Val >
 
using S_Vals_Holder = std::shared_ptr< Vals_Holder >
 
using S_Vals = std::shared_ptr< Vals >
 
using S_Xpath_Ctx = std::shared_ptr< Xpath_Ctx >
 
using S_Logs = std::shared_ptr< Logs >
 
using S_Change = std::shared_ptr< Change >
 
using S_Tree_Change = std::shared_ptr< Tree_Change >
 
using S_Deleter = std::shared_ptr< Deleter >
 

Functions

void throw_exception (int error)
 
const char * get_repo_path ()
 
uint32_t connection_count ()
 

Detailed Description

Typedef Documentation

using FdRegistration = std::function<void(int, std::function<void()>)>

Definition at line 152 of file Session.hpp.

using FdUnregistration = std::function<void(int)>

Definition at line 153 of file Session.hpp.

using ModuleChangeCb = std::function<int(S_Session session, const char *module_name, const char *xpath, sr_event_t event, uint32_t request_id)>

Definition at line 154 of file Session.hpp.

using RpcCb = std::function<int(S_Session session, const char *op_path, const S_Vals input, sr_event_t event, uint32_t request_id, S_Vals_Holder output)>

Definition at line 155 of file Session.hpp.

using RpcTreeCb = std::function<int(S_Session session, const char *op_path, const libyang::S_Data_Node input, sr_event_t event, uint32_t request_id, libyang::S_Data_Node output)>

Definition at line 156 of file Session.hpp.

using EventNotifCb = std::function<void(S_Session session, const sr_ev_notif_type_t notif_type, const char *path, const S_Vals vals, time_t timestamp)>

Definition at line 157 of file Session.hpp.

using EventNotifTreeCb = std::function<void(S_Session session, const sr_ev_notif_type_t notif_type, const libyang::S_Data_Node notif, time_t timestamp)>

Definition at line 158 of file Session.hpp.

using OperGetItemsCb = std::function<int(S_Session session, const char *module_name, const char *path, const char *request_xpath, uint32_t request_id, libyang::S_Data_Node &parent)>

Definition at line 159 of file Session.hpp.

using S_Iter_Change = std::shared_ptr<Iter_Change>

Definition at line 57 of file Sysrepo.hpp.

using S_Session = std::shared_ptr<Session>

Definition at line 58 of file Sysrepo.hpp.

using S_Subscribe = std::shared_ptr<Subscribe>

Definition at line 59 of file Sysrepo.hpp.

using S_Connection = std::shared_ptr<Connection>

Definition at line 60 of file Sysrepo.hpp.

using S_Operation = std::shared_ptr<Operation>

Definition at line 61 of file Sysrepo.hpp.

using S_Errors = std::shared_ptr<Errors>

Definition at line 62 of file Sysrepo.hpp.

using S_Data = std::shared_ptr<Data>

Definition at line 63 of file Sysrepo.hpp.

using S_Val = std::shared_ptr<Val>

Definition at line 64 of file Sysrepo.hpp.

using S_Vals_Holder = std::shared_ptr<Vals_Holder>

Definition at line 65 of file Sysrepo.hpp.

using S_Vals = std::shared_ptr<Vals>

Definition at line 66 of file Sysrepo.hpp.

using S_Xpath_Ctx = std::shared_ptr<Xpath_Ctx>

Definition at line 67 of file Sysrepo.hpp.

using S_Logs = std::shared_ptr<Logs>

Definition at line 68 of file Sysrepo.hpp.

using S_Change = std::shared_ptr<Change>

Definition at line 69 of file Sysrepo.hpp.

using S_Tree_Change = std::shared_ptr<Tree_Change>

Definition at line 70 of file Sysrepo.hpp.

using S_Deleter = std::shared_ptr<Deleter>

Definition at line 71 of file Sysrepo.hpp.

Function Documentation

void sysrepo::throw_exception ( int  error)
const char* sysrepo::get_repo_path ( )

Wrapper for sr_get_repo_path

uint32_t sysrepo::connection_count ( )

Wrapper for sr_connection_count