@@ -691,6 +691,13 @@ server_destroy(void)
691
691
free (np2srv .url_protocols );
692
692
}
693
693
694
+ /**
695
+ * @brief Open the server PID file and write into it.
696
+ *
697
+ * @param[in] pidfile Path to the PID file.
698
+ * @return 0 on success.
699
+ * @return -1 on error.
700
+ */
694
701
static int
695
702
server_open_pidfile (const char * pidfile )
696
703
{
@@ -735,16 +742,6 @@ server_open_pidfile(const char *pidfile)
735
742
* @brief Callback for handling netconf-server, ietf-keystore and ietf-truststore data changes.
736
743
*
737
744
* The diff is given to libnetconf2, which then handles the changes.
738
- *
739
- * @param session sysrepo session.
740
- * @param[in] sub_id Subscription identifier.
741
- * @param[in] module_name Module's name.
742
- * @param[in] xpath XPath.
743
- * @param[in] event Event.
744
- * @param[in] request_id Request identifier.
745
- * @param private_data Private data.
746
- *
747
- * @return SR_ERR_OK on success, on error any other value.
748
745
*/
749
746
static int
750
747
np2srv_libnetconf2_config_cb (sr_session_ctx_t * session , uint32_t UNUSED (sub_id ), const char * UNUSED (module_name ),
@@ -766,10 +763,13 @@ np2srv_libnetconf2_config_cb(sr_session_ctx_t *session, uint32_t UNUSED(sub_id),
766
763
767
764
#ifdef NC_ENABLED_SSH_TLS
768
765
766
+ /**
767
+ * @brief Callback for providing SSH algorithms operational data.
768
+ */
769
769
static int
770
- np2srv_ssh_algs_oper_cb (sr_session_ctx_t * session , uint32_t UNUSED (sub_id ), const char * module_name ,
771
- const char * path , const char * UNUSED (request_xpath ), uint32_t UNUSED (request_id ),
772
- struct lyd_node * * parent , void * UNUSED (private_data ))
770
+ np2srv_ssh_algs_oper_cb (sr_session_ctx_t * session , uint32_t UNUSED (sub_id ), const char * module_name , const char * path ,
771
+ const char * UNUSED (request_xpath ), uint32_t UNUSED (request_id ), struct lyd_node * * parent ,
772
+ void * UNUSED (private_data ))
773
773
{
774
774
int ret = 0 ;
775
775
const struct ly_ctx * ly_ctx ;
0 commit comments