X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fric_stub%2Fric_stub.h;h=ce86d5f4e10ba736ca1386f0044e8efa73010e31;hb=49856df248fd976b4a9882ca4e650fc0bc3e4ee3;hp=3885d5b5eb8e2a5c5177bfac450ac33b3c70d5a4;hpb=77ebb9517e783aeaf8906360fd3aa9faec00fbab;p=o-du%2Fl2.git diff --git a/src/ric_stub/ric_stub.h b/src/ric_stub/ric_stub.h index 3885d5b5e..ce86d5f4e 100644 --- a/src/ric_stub/ric_stub.h +++ b/src/ric_stub/ric_stub.h @@ -82,6 +82,13 @@ }\ } +typedef enum +{ + ADD_CONNECTION, + MODIFY_CONNECTION, + REMOVE_CONNECTION +}E2Connection; + /* O-RAN.WG3.E2AP-R003-v03.00 : Section 9.2.26 */ typedef enum { @@ -109,8 +116,7 @@ typedef struct ricSubscription { RicRequestId requestId; uint16_t ranFuncId; - uint8_t numOfActions; - ActionInfo actionSequence[MAX_RIC_ACTION]; + CmLListCp actionSequence; }RicSubscription; typedef struct @@ -150,7 +156,7 @@ typedef struct cuGlobalCb DuDb duInfo[MAX_DU_SUPPORTED]; }RicGlobalCb; -RicGlobalCb ricCb; +extern RicGlobalCb ricCb; typedef struct { @@ -195,6 +201,22 @@ typedef struct e2NodeCfgList E2NodeConfigItem removedE2Node[MAX_E2_NODE_COMPONENT]; }E2NodeConfigList; +typedef struct ricSubsActionInfo +{ + ConfigType configType; + uint16_t actionId; +}RicSubsActionInfo; + +typedef struct ricSubsModReq +{ + uint16_t numOfActionToBeAdded; + ActionInfo actionToBeAdded[MAX_RIC_ACTION]; + uint16_t numOfActionToBeModify; + ActionInfo actionToBeModify[MAX_RIC_ACTION]; + uint16_t numOfActionToBeRemove; + ActionInfo actionToBeRemove[MAX_RIC_ACTION]; +}RicSubsModReq; + void readRicCfg(); void cuAppInmsgHdlr(Buffer *mBuf); void sctpNtfyInd(CmInetSctpNotification *ntfy);