Restructure O1 module to run as a thread in O-DU High binary [Issue-Id: ODUHIGH-297]
[o-du/l2.git] / src / o1 / O1Interface.h
similarity index 70%
rename from src/o1/o1_client/TcpClient.h
rename to src/o1/O1Interface.h
index 8349e58..cff161d 100644 (file)
@@ -1,6 +1,6 @@
 /*******************************************************************************
 ################################################################################
-#   Copyright (c) [2020] [HCL Technologies Ltd.]                               #
+#   Copyright (c) [2020-2021] [HCL Technologies Ltd.]                          #
 #                                                                              #
 #   Licensed under the Apache License, Version 2.0 (the "License");            #
 #   you may not use this file except in compliance with the License.           #
 ################################################################################
 *******************************************************************************/
 
-/* This file contains functions to connect to a TCP server and send massages */
+/* This file contains the C interface for ODU to start the O1 module */
 
-#ifndef __TCP_CLIENT_H__
-#define __TCP_CLIENT_H__
-#include <stdint.h>
-#include "ssi.h"
+#ifndef __O1_INTERFACE_H__
+#define __O1_INTERFACE_H__
 
-uint8_t openSocket(const char*, const uint16_t);
-int sendData(void*, const int);
-int receiveData(void* data, const int size);
-uint8_t closeSocket();
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+int start_O1_module(void);
 
+#ifdef __cplusplus
+}
 #endif
 
-/**********************************************************************
-         End of file
-**********************************************************************/
+
+#endif