2017-03-24 06:31:35 +00:00
|
|
|
#ifndef __MME_EVENT_H__
|
|
|
|
#define __MME_EVENT_H__
|
2017-02-13 00:58:55 +00:00
|
|
|
|
2017-03-24 06:31:35 +00:00
|
|
|
#include "core_event.h"
|
2017-03-26 06:34:34 +00:00
|
|
|
#include "core_pkbuf.h"
|
|
|
|
|
2017-02-13 00:58:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2017-04-04 01:49:19 +00:00
|
|
|
/* forward declaration */
|
2017-04-06 11:10:00 +00:00
|
|
|
typedef struct _mme_ue_t mme_ue_t;
|
2017-04-08 02:38:09 +00:00
|
|
|
typedef struct _mme_esm_t mme_esm_t;
|
|
|
|
typedef struct _nas_esm_message_container_t nas_esm_message_container_t;
|
2017-04-04 01:49:19 +00:00
|
|
|
typedef struct OCTET_STRING S1ap_NAS_PDU_t;
|
2017-03-28 07:35:57 +00:00
|
|
|
|
2017-02-13 00:58:55 +00:00
|
|
|
typedef enum {
|
2017-03-24 09:47:05 +00:00
|
|
|
MME_EVT_BASE = FSM_USER_SIG,
|
2017-02-13 00:58:55 +00:00
|
|
|
|
2017-04-08 01:39:35 +00:00
|
|
|
EVT_LO_MME_S1AP_ACCEPT,
|
|
|
|
EVT_LO_MME_S1AP_CONNREFUSED,
|
2017-04-11 02:54:00 +00:00
|
|
|
EVT_LO_MME_EMM_AUTH_REQ,
|
2017-04-11 03:16:07 +00:00
|
|
|
EVT_LO_MME_EMM_LOCATION_UPDATE,
|
2017-04-12 13:27:32 +00:00
|
|
|
EVT_LO_MME_ESM_CREATE_SESSION,
|
2017-04-11 03:16:07 +00:00
|
|
|
EVT_LO_MME_ESM_INFO_REQ,
|
2017-02-13 00:58:55 +00:00
|
|
|
|
2017-03-28 07:35:57 +00:00
|
|
|
EVT_TM_MME_S11_T3,
|
|
|
|
|
2017-04-08 01:39:35 +00:00
|
|
|
EVT_MSG_MME_S1AP,
|
|
|
|
EVT_MSG_MME_EMM,
|
|
|
|
EVT_MSG_MME_ESM,
|
2017-03-24 04:19:36 +00:00
|
|
|
EVT_MSG_MME_S11,
|
2017-02-13 00:58:55 +00:00
|
|
|
|
2017-03-24 09:47:05 +00:00
|
|
|
MME_EVT_TOP,
|
2017-02-13 00:58:55 +00:00
|
|
|
|
|
|
|
} event_e;
|
|
|
|
|
2017-03-27 01:22:30 +00:00
|
|
|
#define mme_event_send(__ptr_e) event_send(mme_self()->queue_id, (__ptr_e))
|
|
|
|
|
2017-03-24 09:47:05 +00:00
|
|
|
CORE_DECLARE(char*) mme_event_get_name(event_t *e);
|
|
|
|
|
2017-04-11 06:02:39 +00:00
|
|
|
CORE_DECLARE(void) mme_event_s1ap_to_nas(mme_ue_t *ue, S1ap_NAS_PDU_t *nasPdu);
|
2017-04-08 02:38:09 +00:00
|
|
|
CORE_DECLARE(void) mme_event_emm_to_esm(mme_esm_t *esm,
|
|
|
|
nas_esm_message_container_t *esm_message_container);
|
2017-04-06 11:10:00 +00:00
|
|
|
CORE_DECLARE(void) mme_event_nas_to_s1ap(mme_ue_t *ue, pkbuf_t *pkbuf);
|
2017-03-26 06:34:34 +00:00
|
|
|
|
2017-02-13 00:58:55 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
2017-03-24 06:31:35 +00:00
|
|
|
#endif /* __MME_EVENT_H__ */
|