forked from acouzens/open5gs
67 lines
1.5 KiB
C
67 lines
1.5 KiB
C
/*
|
|
* 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 SGW_EVENT_H
|
|
#define SGW_EVENT_H
|
|
|
|
#include "ogs-core.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct ogs_gtp_node_s ogs_gtp_node_t;
|
|
typedef struct sgw_bearer_s sgw_bearer_t;
|
|
|
|
typedef enum {
|
|
SGW_EVT_BASE = OGS_FSM_USER_SIG,
|
|
|
|
SGW_EVT_S11_MESSAGE,
|
|
SGW_EVT_S5C_MESSAGE,
|
|
|
|
SGW_EVT_LO_DLDATA_NOTI,
|
|
|
|
SGW_EVT_TOP,
|
|
|
|
} sgw_event_e;
|
|
|
|
typedef struct sgw_event_s {
|
|
int id;
|
|
ogs_pkbuf_t *pkbuf;
|
|
|
|
ogs_gtp_node_t *gnode;
|
|
|
|
sgw_bearer_t *bearer;
|
|
} sgw_event_t;
|
|
|
|
void sgw_event_init(void);
|
|
void sgw_event_term(void);
|
|
void sgw_event_final(void);
|
|
|
|
sgw_event_t *sgw_event_new(sgw_event_e id);
|
|
void sgw_event_free(sgw_event_t *e);
|
|
|
|
const char *sgw_event_get_name(sgw_event_t *e);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SGW_EVENT_H */
|