Commit cfb654e7 authored by Guido Casati's avatar Guido Casati

HO Preparation: add alloc_ho_ctx to rrc_gNB_mobility lib

parent ff5b2bc8
...@@ -42,8 +42,7 @@ ...@@ -42,8 +42,7 @@
#include "openair2/E2AP/RAN_FUNCTION/O-RAN/ran_func_rc_extern.h" #include "openair2/E2AP/RAN_FUNCTION/O-RAN/ran_func_rc_extern.h"
#endif #endif
typedef enum { HO_CTX_BOTH, HO_CTX_SOURCE, HO_CTX_TARGET } ho_ctx_type_t; nr_handover_context_t *alloc_ho_ctx(ho_ctx_type_t type)
static nr_handover_context_t *alloc_ho_ctx(ho_ctx_type_t type)
{ {
nr_handover_context_t *ho_ctx = calloc_or_fail(1, sizeof(*ho_ctx)); nr_handover_context_t *ho_ctx = calloc_or_fail(1, sizeof(*ho_ctx));
if (type == HO_CTX_SOURCE || type == HO_CTX_BOTH) { if (type == HO_CTX_SOURCE || type == HO_CTX_BOTH) {
......
...@@ -72,6 +72,9 @@ typedef struct nr_handover_context_s { ...@@ -72,6 +72,9 @@ typedef struct nr_handover_context_s {
nr_ho_target_cu_t *target; nr_ho_target_cu_t *target;
} nr_handover_context_t; } nr_handover_context_t;
typedef enum { HO_CTX_BOTH, HO_CTX_SOURCE, HO_CTX_TARGET } ho_ctx_type_t;
nr_handover_context_t *alloc_ho_ctx(ho_ctx_type_t type);
void nr_rrc_trigger_f1_ho(gNB_RRC_INST *rrc, gNB_RRC_UE_t *ue, nr_rrc_du_container_t *source_du, nr_rrc_du_container_t *target_du); void nr_rrc_trigger_f1_ho(gNB_RRC_INST *rrc, gNB_RRC_UE_t *ue, nr_rrc_du_container_t *source_du, nr_rrc_du_container_t *target_du);
void nr_rrc_finalize_ho(gNB_RRC_UE_t *ue); void nr_rrc_finalize_ho(gNB_RRC_UE_t *ue);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment