X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fo1%2FConfigInterface.h;fp=src%2Fo1%2Fo1_client%2FConfig.h;h=0f4929e5cc41f51ffef83f7b41e3021b6071d440;hb=b92944068f8a7b643b333515e424517db4192b61;hp=fb7250ca4adde437985f7db47c61a4ef5f388a48;hpb=f01eb5471d34834e2ef1d8dbbfc4b2fe68403650;p=o-du%2Fl2.git diff --git a/src/o1/o1_client/Config.h b/src/o1/ConfigInterface.h similarity index 85% rename from src/o1/o1_client/Config.h rename to src/o1/ConfigInterface.h index fb7250ca4..0f4929e5c 100644 --- a/src/o1/o1_client/Config.h +++ b/src/o1/ConfigInterface.h @@ -16,10 +16,12 @@ ################################################################################ *******************************************************************************/ -/* 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 #include @@ -27,6 +29,11 @@ #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