Integrated UE state messages to agent

This commit is contained in:
Xenofon Foukas
2016-02-22 12:05:17 +00:00
parent b523682af0
commit 1caa45ad4b
3 changed files with 14 additions and 0 deletions
+10
View File
@@ -487,6 +487,16 @@ int enb_agent_destroy_lc_config_reply(Protocol__ProgranMessage *msg) {
return 0;
}
int enb_agent_ue_state_change(mid_t mod_id, uint32_t rnti, uint8_t state_change) {
/* TODO: Create a progRAN message with the state changes requested for the UE with RNTI rnti */
return 0;
}
int enb_agent_destroy_ue_state_change(Protocol__ProgranMessage *msg) {
/* TODO: Dealocate memory for a dynamically allocated UE state change message */
return 0;
}
int enb_agent_destroy_enb_config_request(Protocol__ProgranMessage *msg) {
if(msg->msg_case != PROTOCOL__PROGRAN_MESSAGE__MSG_ENB_CONFIG_REQUEST_MSG)
goto error;
+2
View File
@@ -108,6 +108,8 @@ int enb_agent_destroy_ue_config_request(Protocol__ProgranMessage *msg);
int enb_agent_destroy_lc_config_request(Protocol__ProgranMessage *msg);
int enb_agent_ue_state_change(mid_t mod_id, uint32_t rnti, uint8_t state_change);
int enb_agent_destroy_ue_state_change(Protocol__ProgranMessage *msg);
Protocol__ProgranMessage* enb_agent_handle_message (mid_t mod_id,
uint8_t *data,
+2
View File
@@ -56,6 +56,7 @@ enb_agent_message_decoded_callback agent_messages_callback[][3] = {
{enb_agent_lc_config_reply, 0, 0}, /*PROTOCOL__PROGRAN_MESSAGE__MSG_LC_CONFIG_REQUEST_MSG*/
{0, 0, 0}, /*PROTOCOL__PROGRAN_MESSAGE__MSG_LC_CONFIG_REPLY_MSG*/
{0, 0, 0}, /*PROTOCOL__PROGRAN_MESSAGE__MSG_DL_MAC_CONFIG_MSG*/
{0, 0, 0}, /*PROTOCOL__PROGRAN_MESSAGE__MSG_UE_STATE_CHANGE_MSG*/
};
@@ -74,6 +75,7 @@ enb_agent_message_destruction_callback message_destruction_callback[] = {
enb_agent_destroy_lc_config_request,
enb_agent_destroy_lc_config_reply,
enb_agent_mac_destroy_dl_config,
enb_agent_destroy_ue_state_change,
};
static const char *enb_agent_direction2String[] = {