The common library exposes functions for the PNF to return the received blocks to the VNF for it to call WLS_Enqueue on them. This is done in order to ensure the Blocks are returned after processing, also preventing the Dequeueing of blocks that are still being used, i.e. the internal value is not -1 All saved blocks are to be enqueued at the reception of a SLOT.indication by the VNF Additionally, the definition of NFAPI_MAX_PACKED_MESSAGE_SIZE was moved to nfapi_interface.h and removed from the other headers, this is done to allow to set the maximum message size when using WLS by only changing the value in one place Fixup fapi_nr_message_header_unpack call in nfapi_hex_parser
31 lines
858 B
CMake
31 lines
858 B
CMake
add_library(nr_fapi_common
|
|
src/nr_fapi.c
|
|
)
|
|
target_include_directories(nr_fapi_common PUBLIC inc)
|
|
target_link_libraries(nr_fapi_common PUBLIC nfapi_common)
|
|
|
|
add_library(nr_fapi_p5
|
|
src/nr_fapi_p5.c
|
|
src/nr_fapi_p5_utils.c
|
|
)
|
|
target_include_directories(nr_fapi_p5 PUBLIC inc)
|
|
target_link_libraries(nr_fapi_p5 PUBLIC nr_fapi_common)
|
|
|
|
add_library(nr_fapi_p7
|
|
src/nr_fapi_p7.c
|
|
src/nr_fapi_p7_utils.c
|
|
)
|
|
target_include_directories(nr_fapi_p7 PUBLIC inc)
|
|
target_link_libraries(nr_fapi_p7 PUBLIC nr_fapi_common)
|
|
|
|
if (OAI_AERIAL)
|
|
target_compile_definitions(nr_fapi_p5 PRIVATE ENABLE_AERIAL)
|
|
target_compile_definitions(nr_fapi_p7 PRIVATE ENABLE_AERIAL)
|
|
endif ()
|
|
|
|
if(OAI_WLS)
|
|
target_compile_definitions(nr_fapi_common PRIVATE ENABLE_WLS)
|
|
else()
|
|
target_compile_definitions(nr_fapi_common PRIVATE ENABLE_SOCKET)
|
|
endif()
|