16 #ifndef NC_SESSION_SERVER_CH_H_
17 #define NC_SESSION_SERVER_CH_H_
23 #include <libyang/libyang.h>
30 #ifdef NC_ENABLED_SSH_TLS
74 typedef const struct ly_ctx *(*nc_server_ch_session_acquire_ctx_cb)(
void *cb_data);
107 void *new_session_cb_data);
122 void *new_session_cb_data);
libnetconf2 session manipulation
int(* nc_server_ch_new_session_cb)(const char *client_name, struct nc_session *new_session, void *user_data)
Callback for new Call Home sessions.
void(* nc_server_ch_session_release_ctx_cb)(void *cb_data)
Callback for releasing a locked context for Call Home sessions.
void nc_server_ch_set_dispatch_data(nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb, nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb, void *new_session_cb_data)
Set callbacks and their data for Call Home threads.
struct ly_ctx *(* nc_server_ch_session_acquire_ctx_cb)(void *cb_data)
Callback for getting a locked context for new Call Home sessions.
int nc_server_ch_is_client(const char *name)
Check if a Call Home client exists.
int nc_connect_ch_client_dispatch(const char *client_name, nc_server_ch_session_acquire_ctx_cb acquire_ctx_cb, nc_server_ch_session_release_ctx_cb release_ctx_cb, void *ctx_cb_data, nc_server_ch_new_session_cb new_session_cb, void *new_session_cb_data)
Dispatch a thread connecting to a listening NETCONF client and creating Call Home sessions...
libnetconf2's general public functions and structures definitions.
int nc_server_ch_client_is_endpt(const char *client_name, const char *endpt_name)
Check if an endpoint of a Call Home client exists.