247 void nc_session_free(
struct nc_session *session,
void (*data_free)(
void *));
249 #if defined(NC_ENABLED_SSH) || defined(NC_ENABLED_TLS)
uint32_t nc_session_get_refcnt(const struct nc_session *session)
Get reference count.
struct ly_ctx * nc_session_get_ctx(const struct nc_session *session)
Get session context.
NC_SSH_AUTH_TYPE
Enumeration of NETCONF SSH authentication methods.
uint16_t nc_session_get_port(const struct nc_session *session)
Get session port.
void nc_session_dereference(struct nc_session *session)
Take reference from the session.
NC_TRANSPORT_IMPL
Enumeration of transport implementations (ways how libnetconf implements NETCONF transport protocol) ...
NC_STATUS
Enumeration of possible session statuses.
NC_SSH_KEY_TYPE
Enumeration of SSH key types.
NC_STATUS nc_session_get_status(const struct nc_session *session)
Get session status.
NC_TRANSPORT_IMPL nc_session_get_ti(const struct nc_session *session)
Get session transport used.
const char * nc_session_get_host(const struct nc_session *session)
Get session host.
uint32_t nc_session_get_killed_by(const struct nc_session *session)
Get session killer session ID.
void nc_session_set_data(struct nc_session *session, void *data)
Assign arbitrary data to a session.
const char * nc_session_get_username(const struct nc_session *session)
Get session username.
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470. ...
uint32_t nc_session_get_id(const struct nc_session *session)
Get session ID.
NC_SESSION_TERM_REASON nc_session_get_term_reason(const struct nc_session *session)
Get session termination reason.
NC_CH_CONN_TYPE
Enumeration of Call Home connection types.
void nc_session_free(struct nc_session *session, void(*data_free)(void *))
Free the NETCONF session object.
const char * nc_session_get_path(const struct nc_session *session)
Get session path (unix socket only).
int nc_session_get_version(const struct nc_session *session)
Get session NETCONF version.
void nc_session_reference(struct nc_session *session)
Put a reference to the session in order to avoid unwanted release of session.
void * nc_session_get_data(const struct nc_session *session)
Get the data assigned to a session.
NC_TLS_CTN_MAPTYPE
Enumeration of cert-to-name mapping types.
NC_CH_START_WITH
Enumeration of Call Home client priority policy.
void nc_thread_destroy(void)
Free all the dynamically allocated thread-specific libssl/libcrypto resources.
libnetconf2's general public functions and structures definitions.