mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
100 lines
2.8 KiB
C
100 lines
2.8 KiB
C
/*
|
|
* amf_event.h
|
|
*
|
|
* Describes an event to be subscribed
|
|
*/
|
|
|
|
#ifndef _OpenAPI_amf_event_H_
|
|
#define _OpenAPI_amf_event_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "amf_event_area.h"
|
|
#include "amf_event_type.h"
|
|
#include "dispersion_area.h"
|
|
#include "ext_snssai.h"
|
|
#include "location_filter.h"
|
|
#include "presence_info.h"
|
|
#include "reachability_filter.h"
|
|
#include "target_area.h"
|
|
#include "traffic_descriptor.h"
|
|
#include "ue_in_area_filter.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_amf_event_s OpenAPI_amf_event_t;
|
|
typedef struct OpenAPI_amf_event_s {
|
|
struct OpenAPI_amf_event_type_s *type;
|
|
bool is_immediate_flag;
|
|
int immediate_flag;
|
|
OpenAPI_list_t *area_list;
|
|
OpenAPI_list_t *location_filter_list;
|
|
bool is_ref_id;
|
|
int ref_id;
|
|
OpenAPI_list_t *traffic_descriptor_list;
|
|
bool is_report_ue_reachable;
|
|
int report_ue_reachable;
|
|
struct OpenAPI_reachability_filter_s *reachability_filter;
|
|
bool is_udm_detect_ind;
|
|
int udm_detect_ind;
|
|
bool is_max_reports;
|
|
int max_reports;
|
|
OpenAPI_list_t* presence_info_list;
|
|
bool is_max_response_time;
|
|
int max_response_time;
|
|
struct OpenAPI_target_area_s *target_area;
|
|
OpenAPI_list_t *snssai_filter;
|
|
struct OpenAPI_ue_in_area_filter_s *ue_in_area_filter;
|
|
bool is_min_interval;
|
|
int min_interval;
|
|
char *next_report;
|
|
bool is_idle_status_ind;
|
|
int idle_status_ind;
|
|
struct OpenAPI_dispersion_area_s *dispersion_area;
|
|
} OpenAPI_amf_event_t;
|
|
|
|
OpenAPI_amf_event_t *OpenAPI_amf_event_create(
|
|
OpenAPI_amf_event_type_t *type,
|
|
bool is_immediate_flag,
|
|
int immediate_flag,
|
|
OpenAPI_list_t *area_list,
|
|
OpenAPI_list_t *location_filter_list,
|
|
bool is_ref_id,
|
|
int ref_id,
|
|
OpenAPI_list_t *traffic_descriptor_list,
|
|
bool is_report_ue_reachable,
|
|
int report_ue_reachable,
|
|
OpenAPI_reachability_filter_t *reachability_filter,
|
|
bool is_udm_detect_ind,
|
|
int udm_detect_ind,
|
|
bool is_max_reports,
|
|
int max_reports,
|
|
OpenAPI_list_t* presence_info_list,
|
|
bool is_max_response_time,
|
|
int max_response_time,
|
|
OpenAPI_target_area_t *target_area,
|
|
OpenAPI_list_t *snssai_filter,
|
|
OpenAPI_ue_in_area_filter_t *ue_in_area_filter,
|
|
bool is_min_interval,
|
|
int min_interval,
|
|
char *next_report,
|
|
bool is_idle_status_ind,
|
|
int idle_status_ind,
|
|
OpenAPI_dispersion_area_t *dispersion_area
|
|
);
|
|
void OpenAPI_amf_event_free(OpenAPI_amf_event_t *amf_event);
|
|
OpenAPI_amf_event_t *OpenAPI_amf_event_parseFromJSON(cJSON *amf_eventJSON);
|
|
cJSON *OpenAPI_amf_event_convertToJSON(OpenAPI_amf_event_t *amf_event);
|
|
OpenAPI_amf_event_t *OpenAPI_amf_event_copy(OpenAPI_amf_event_t *dst, OpenAPI_amf_event_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_amf_event_H_ */
|
|
|