-/*****************************************************************************
+
+#/*****************************************************************************
# *
-# Copyright 2019 AT&T Intellectual Property *
-# Copyright 2019 Nokia *
+# Copyright 2020 AT&T Intellectual Property *
# *
# Licensed under the Apache License, Version 2.0 (the "License"); *
# you may not use this file except in compliance with the License. *
# See the License for the specific language governing permissions and *
# limitations under the License. *
# *
-******************************************************************************/
-#ifndef X2AP_MESSAGE_HANDLER_HPP
-#define X2AP_MESSAGE_HANDLER_HPP
-
-#include "e2sim_defs.h"
-#include "e2sim_sctp.hpp"
-#include "asn_x2ap.hpp"
-#include "x2ap_asn_codec.hpp"
+#******************************************************************************/
-void x2ap_handle_sctp_data(int &socket_fd, sctp_buffer_t &data);
+# For clarity: this generates object, not a lib as the CM command implies.
+#
+add_library( encoding_objects OBJECT encode_e2apv1.cpp)
-void x2ap_handle_X2SetupRequest(x2ap_pdu_t* pdu, int &socket_fd);
+include_directories(../ASN1c)
-void x2ap_handle_X2SetupResponse(x2ap_pdu_t* pdu, int &socket_fd);
+target_include_directories (encoding_objects PUBLIC
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ $<INSTALL_INTERFACE:include>
+ PRIVATE src )
-void x2ap_handle_ENDCX2SetupRequest(x2ap_pdu_t* pdu, int &socket_fd);
-#endif
+if( DEV_PKG )
+ install( FILES
+ encode_e2apv1.hpp
+ DESTINATION ${install_inc}
+ )
+endif()
+# ---------------------------------------------------------------------------