Add nr_fapi_p5_utils.c/.h to nr_fapi_p5 library, with the objective of defining functions to compare, properly free and copy P5 FAPI message
This commit is contained in:
committed by
Rúben Soares Silva
parent
da9fe96efc
commit
5ef1217acc
@@ -1,5 +1,6 @@
|
|||||||
add_library(nr_fapi_p5
|
add_library(nr_fapi_p5
|
||||||
src/nr_fapi_p5.c
|
src/nr_fapi_p5.c
|
||||||
|
src/nr_fapi_p5_utils.c
|
||||||
)
|
)
|
||||||
target_include_directories(nr_fapi_p5 PUBLIC inc)
|
target_include_directories(nr_fapi_p5 PUBLIC inc)
|
||||||
# Note: Dependencies with NFAPI_LIB NFAPI_USER_LIB only necessary until last FAPI function is moved into new library, to be removed at a later stage
|
# Note: Dependencies with NFAPI_LIB NFAPI_USER_LIB only necessary until last FAPI function is moved into new library, to be removed at a later stage
|
||||||
|
|||||||
@@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||||
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
|
* this work for additional information regarding copyright ownership.
|
||||||
|
* The OpenAirInterface Software Alliance licenses this file to You under
|
||||||
|
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||||
|
* except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.openairinterface.org/?page_id=698
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*-------------------------------------------------------------------------------
|
||||||
|
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||||
|
* contact@openairinterface.org
|
||||||
|
*/
|
||||||
|
/*! \file nfapi/open-nFAPI/fapi/inc/nr_fapi_p5_utils.h
|
||||||
|
* \brief
|
||||||
|
* \author Ruben S. Silva
|
||||||
|
* \date 2024
|
||||||
|
* \version 0.1
|
||||||
|
* \company OpenAirInterface Software Alliance
|
||||||
|
* \email: contact@openairinterface.org, rsilva@allbesmart.pt
|
||||||
|
* \note
|
||||||
|
* \warning
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef OPENAIRINTERFACE_NR_FAPI_P5_UTILS_H
|
||||||
|
#define OPENAIRINTERFACE_NR_FAPI_P5_UTILS_H
|
||||||
|
#include "stdio.h"
|
||||||
|
#include "stdint.h"
|
||||||
|
#include "nr_fapi.h"
|
||||||
|
|
||||||
|
#endif // OPENAIRINTERFACE_NR_FAPI_P5_UTILS_H
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "nr_fapi.h"
|
#include "nr_fapi.h"
|
||||||
#include "nr_fapi_p5.h"
|
#include "nr_fapi_p5.h"
|
||||||
|
#include "nr_fapi_p5_utils.h"
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
bool isFAPIMessageIDValid(uint16_t id)
|
bool isFAPIMessageIDValid(uint16_t id)
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
/*
|
||||||
|
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||||
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
|
* this work for additional information regarding copyright ownership.
|
||||||
|
* The OpenAirInterface Software Alliance licenses this file to You under
|
||||||
|
* the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||||
|
* except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.openairinterface.org/?page_id=698
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*-------------------------------------------------------------------------------
|
||||||
|
* For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||||
|
* contact@openairinterface.org
|
||||||
|
*/
|
||||||
|
/*! \file nfapi/open-nFAPI/fapi/src/nr_fapi_p5_utils.c
|
||||||
|
* \brief
|
||||||
|
* \author Ruben S. Silva
|
||||||
|
* \date 2024
|
||||||
|
* \version 0.1
|
||||||
|
* \company OpenAirInterface Software Alliance
|
||||||
|
* \email: contact@openairinterface.org, rsilva@allbesmart.pt
|
||||||
|
* \note
|
||||||
|
* \warning
|
||||||
|
*/
|
||||||
|
#include "nr_fapi_p5_utils.h"
|
||||||
Reference in New Issue
Block a user