+// SPDX-License-Identifier: LGPL-2.1-or-later
/*
* This file is part of the PCEPlib, a PCEP protocol library.
*
* Copyright (C) 2020 Volta Networks https://voltanet.io/
*
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program. If not, see <https://www.gnu.org/licenses/>.
- *
* Author : Brady Johnson <brady@voltanet.io>
*
*/
void send_pcep_open(pcep_session *session); /* forward decl */
-static bool run_session_logic_common()
+static bool run_session_logic_common(void)
{
if (session_logic_handle_ != NULL) {
pcep_log(LOG_WARNING,
}
-bool run_session_logic()
+bool run_session_logic(void)
{
if (!run_session_logic_common()) {
return false;
return true;
}
-bool run_session_logic_wait_for_completion()
+bool run_session_logic_wait_for_completion(void)
{
if (!run_session_logic()) {
return false;
}
-bool stop_session_logic()
+bool stop_session_logic(void)
{
if (session_logic_handle_ == NULL) {
pcep_log(LOG_WARNING, "%s: Session logic already stopped",
}
/* Internal util function */
-static int get_next_session_id()
+static int get_next_session_id(void)
{
if (session_id_ == INT_MAX) {
session_id_ = 0;
/* I flag */
session->pcc_config
.support_pce_lsp_instantiation,
- /* T flag */
- session->pcc_config.support_lsp_triggered_resync,
- /* D flag */
- session->pcc_config.support_lsp_delta_sync,
- /* F flag */
- session->pcc_config.support_pce_triggered_initial_sync));
+ /* T flag */
+ session->pcc_config
+ .support_lsp_triggered_resync,
+ /* D flag */
+ session->pcc_config.support_lsp_delta_sync,
+ /* F flag */
+ session->pcc_config
+ .support_pce_triggered_initial_sync));
}
if (session->pcc_config.support_include_db_version) {