X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=simulators%2Fe2sim%2Fsrc%2Fe2sim_defs.h;fp=simulators%2Fe2sim%2Fsrc%2Fe2sim_defs.h;h=0000000000000000000000000000000000000000;hb=e440e6695aef24ac8c88d852071efb96d192b618;hp=30a016556cdb92ece9a35c8284174b86ced62ed0;hpb=7bd8a0bd3e84d325d1a5d1df6feb7a259fee2004;p=it%2Ftest.git diff --git a/simulators/e2sim/src/e2sim_defs.h b/simulators/e2sim/src/e2sim_defs.h deleted file mode 100644 index 30a0165..0000000 --- a/simulators/e2sim/src/e2sim_defs.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * - * Copyright 2019 AT&T Intellectual Property - * Copyright 2019 Nokia - * - * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0 - * - * 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. - * - */ - -#ifndef E2SIM_DEFS_H -#define E2SIM_DEFS_H - -#include - -#define VERSION "1.2.0" //May 2019 -#define DEFAULT_SCTP_IP "127.0.0.1" -#define X2AP_SCTP_PORT 36422 -#define MAX_SCTP_BUFFER 1024 -#define WORKDIR_ENV "E2SIM_DIR" //environment variable - -#define LOG_I(...) {printf(__VA_ARGS__); printf("\n");} -#define LOG_E(...) {printf(__VA_ARGS__); printf("\n");} -#define LOG_D(...) {printf(__VA_ARGS__); printf("\n");} - -typedef struct SCTP_DATA { - unsigned char *data; - int len; -} sctp_data_t; - -typedef struct { - unsigned char buffer[MAX_SCTP_BUFFER]; - int len; -} sctp_buffer_t; - -typedef struct { - char* server_ip; - int server_port; - //... extend as needed -} options_t; - -options_t read_input_options(int argc, char *argv[]); - -#endif