2019-07-20 02:20:09 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 by Sukchan Lee <acetcom@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of Open5GS.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MME_TIMER_H
|
|
|
|
#define MME_TIMER_H
|
|
|
|
|
|
|
|
#include "ogs-core.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-07-20 04:07:40 +00:00
|
|
|
/* forward declaration */
|
2019-07-20 02:20:09 +00:00
|
|
|
typedef enum {
|
|
|
|
MME_TIMER_BASE = 0,
|
|
|
|
|
2019-07-20 06:16:46 +00:00
|
|
|
/* S1AP */
|
|
|
|
MME_TIMER_S1_DELAYED_SEND,
|
|
|
|
|
|
|
|
/* EMM */
|
2019-07-20 02:20:09 +00:00
|
|
|
MME_TIMER_T3413,
|
|
|
|
|
2019-07-20 06:16:46 +00:00
|
|
|
/* SGSAP */
|
|
|
|
MME_TIMER_SGS_CLI_CONN_TO_SRV,
|
|
|
|
|
2019-07-20 07:25:09 +00:00
|
|
|
MAX_NUM_OF_MME_TIMER,
|
2019-07-20 02:20:09 +00:00
|
|
|
|
|
|
|
} mme_timer_e;
|
|
|
|
|
2019-07-20 07:25:09 +00:00
|
|
|
typedef struct mme_timer_cfg_s {
|
|
|
|
int max_count;
|
|
|
|
ogs_time_t duration;
|
|
|
|
} mme_timer_cfg_t;
|
|
|
|
|
|
|
|
mme_timer_cfg_t *mme_timer_cfg(mme_timer_e id);
|
2019-07-20 02:20:09 +00:00
|
|
|
|
2019-07-20 04:07:40 +00:00
|
|
|
const char *mme_timer_get_name(mme_timer_e id);
|
|
|
|
|
2019-07-20 06:16:46 +00:00
|
|
|
void mme_timer_s1_delayed_send(void *data);
|
2019-07-20 04:07:40 +00:00
|
|
|
void mme_timer_t3413_expire(void *data);
|
2019-07-20 06:34:41 +00:00
|
|
|
void mme_timer_sgs_cli_conn_to_srv(void *data);
|
2019-07-20 04:07:40 +00:00
|
|
|
|
2019-07-20 02:20:09 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MME_TIMER_H */
|