Add initial codes
[it/test.git] / simulators / e2sim / src / E2AP / e2ap_asn_codec.hpp
diff --git a/simulators/e2sim/src/E2AP/e2ap_asn_codec.hpp b/simulators/e2sim/src/E2AP/e2ap_asn_codec.hpp
new file mode 100644 (file)
index 0000000..6fd6170
--- /dev/null
@@ -0,0 +1,34 @@
+/*****************************************************************************\r
+#                                                                            *\r
+# Copyright 2019 AT&T Intellectual Property                                  *\r
+# Copyright 2019 Nokia                                                       *\r
+#                                                                            *\r
+# Licensed under the Apache License, Version 2.0 (the "License");            *\r
+# you may not use this file except in compliance with the License.           *\r
+# You may obtain a copy of the License at                                    *\r
+#                                                                            *\r
+#      http://www.apache.org/licenses/LICENSE-2.0                            *\r
+#                                                                            *\r
+# Unless required by applicable law or agreed to in writing, software        *\r
+# distributed under the License is distributed on an "AS IS" BASIS,          *\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   *\r
+# See the License for the specific language governing permissions and        *\r
+# limitations under the License.                                             *\r
+#                                                                            *\r
+******************************************************************************/\r
+#ifndef E2AP_ASN_CODEC_HPP\r
+#define E2AP_ASN_CODEC_HPP\r
+\r
+#include "e2sim_defs.h"\r
+#include "asn_e2ap.hpp"\r
+\r
+#define ERROR_MESSAGE_BUFFER 1024\r
+#define PDU_PRINT_BUFFER     4096\r
+\r
+void e2ap_encode_pdu(e2ap_pdu_t* pdu, unsigned char* buf, int buf_size, int &encoded_size);\r
+\r
+void e2ap_decode_pdu(e2ap_pdu_t* pdu, unsigned char* buf, int &encoded_size);\r
+\r
+void e2ap_print_pdu(e2ap_pdu_t* pdu);\r
+\r
+#endif\r