Restructure O1 module to run as a thread in O-DU High binary [Issue-Id: ODUHIGH-297]
[o-du/l2.git] / src / o1 / ConfigInterface.h
similarity index 85%
rename from src/o1/o1_client/Config.h
rename to src/o1/ConfigInterface.h
index fb7250c..0f4929e 100644 (file)
 ################################################################################
 *******************************************************************************/
 
-/* This file contains definitions of startup configuration structure */
+/* This file contains C interface for ODU and stubs to get startup
+   configuration
+*/
 
-#ifndef __CONFIG_H__
-#define __CONFIG_H__
+#ifndef __CONFIG_INTERFACE_H__
+#define __CONFIG_INTERFACE_H__
 
 #include <stdint.h>
 #include <CommonMessages.h>
 #define IPV4_LEN 16
 #define PORT_LEN 10
 
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
 typedef struct
 {
    char DU_IPV4_Addr[IPV4_LEN];
@@ -37,7 +44,13 @@ typedef struct
    uint16_t RIC_Port;
 }StartupConfig;
 
-uint8_t getStartupConfig();
+
+uint8_t getStartupConfig(StartupConfig *cfg);
+uint8_t getStartupConfigForStub(StartupConfig *cfg);
+
+#ifdef __cplusplus
+}
+#endif
 
 #endif