X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fric_stub%2Fric_e2ap_msg_hdl.h;h=0d7ec721692a5880feff84afb4847d9fca907770;hb=refs%2Fchanges%2F52%2F12252%2F6;hp=47ab8d75e0775aea507b1eac0689ca327b9178fc;hpb=b5b72edf4ea89b4064284c63dfa936b1c24718d6;p=o-du%2Fl2.git diff --git a/src/ric_stub/ric_e2ap_msg_hdl.h b/src/ric_stub/ric_e2ap_msg_hdl.h index 47ab8d75e..0d7ec7216 100644 --- a/src/ric_stub/ric_e2ap_msg_hdl.h +++ b/src/ric_stub/ric_e2ap_msg_hdl.h @@ -31,7 +31,14 @@ #define CELL_INDEX 0 #define RIC_STYLE_TYPE 1 -#define RIC_ACTION_GRANULARITY_PERIOD 100 + +/* if config type is CONFIG_ADD then + * for action Id = n, RIC_ACTION_GRANULARITY_PERIOD = 100+ n*100 + * else config type is CONFIG_MOD then + * for action Id = n, RIC_ACTION_GRANULARITY_PERIOD = 100 +50(n+1) */ +#define RIC_ACTION_GRANULARITY_PERIOD(_configType, _actionId) \ + ((_configType == CONFIG_ADD) ? (100 + 100 * _actionId ) : ( 100 + 50 *( _actionId +1))) + /* allocate and zero out a static buffer */ #define RIC_ALLOC(_datPtr, _size) \ { \ @@ -66,6 +73,8 @@ uint8_t BuildAndSendE2NodeConfigUpdateAck(DuDb *duDb, uint8_t transId, E2NodeCo uint8_t BuildAndSendConnectionUpdate(uint32_t duId); uint8_t BuildAndSendE2ConnectionUpdate(uint32_t duId, E2Connection connectionInfo); uint8_t BuildAndSendRicSubscriptionDeleteRequest(uint32_t duId, RicSubscription *ricSubsDb); +void BuildRicSubsModificationReq(DuDb *duDb, RicSubscription *ricSubsInfo); + /********************************************************************** End of file **********************************************************************/