################################################################################
*******************************************************************************/
-/* 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];
uint16_t RIC_Port;
}StartupConfig;
-uint8_t getStartupConfig();
+
+uint8_t getStartupConfig(StartupConfig *cfg);
+uint8_t getStartupConfigForStub(StartupConfig *cfg);
+
+#ifdef __cplusplus
+}
+#endif
#endif