open5gs/src/mme/event.h

44 lines
831 B
C
Raw Normal View History

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"
#include "s1ap_message.h"
2017-02-13 00:58:55 +00:00
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
2017-03-28 07:35:57 +00:00
typedef struct _ue_ctx_t ue_ctx_t;
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-03-04 15:57:52 +00:00
EVT_LO_ENB_S1AP_ACCEPT,
EVT_LO_ENB_S1AP_CONNREFUSED,
2017-02-13 00:58:55 +00:00
2017-03-28 07:35:57 +00:00
EVT_TM_MME_S11_T3,
2017-03-05 08:07:43 +00:00
EVT_MSG_ENB_S1AP,
2017-03-05 08:36:16 +00:00
EVT_MSG_UE_EMM,
2017-03-27 10:32:24 +00:00
EVT_MSG_UE_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-03-26 06:34:34 +00:00
CORE_DECLARE(void) mme_event_s1ap_to_nas(ue_ctx_t *ue, S1ap_NAS_PDU_t *nasPdu);
CORE_DECLARE(void) mme_event_nas_to_s1ap(ue_ctx_t *ue, pkbuf_t *pkbuf);
2017-02-13 00:58:55 +00:00
#ifdef __cplusplus
}
#endif /* __cplusplus */
2017-03-24 06:31:35 +00:00
#endif /* __MME_EVENT_H__ */