2020-06-04 18:12:05 +00:00
|
|
|
/*
|
|
|
|
* n3ga_location.h
|
|
|
|
*
|
2021-07-07 08:32:55 +00:00
|
|
|
*
|
2020-06-04 18:12:05 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _OpenAPI_n3ga_location_H_
|
|
|
|
#define _OpenAPI_n3ga_location_H_
|
|
|
|
|
|
|
|
#include <string.h>
|
|
|
|
#include "../external/cJSON.h"
|
|
|
|
#include "../include/list.h"
|
|
|
|
#include "../include/keyValuePair.h"
|
|
|
|
#include "../include/binary.h"
|
|
|
|
#include "hfc_node_id.h"
|
2021-03-08 12:25:09 +00:00
|
|
|
#include "line_type.h"
|
2020-06-04 18:12:05 +00:00
|
|
|
#include "tai.h"
|
2021-03-08 12:25:09 +00:00
|
|
|
#include "tnap_id.h"
|
|
|
|
#include "twap_id.h"
|
2020-06-04 18:12:05 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct OpenAPI_n3ga_location_s OpenAPI_n3ga_location_t;
|
|
|
|
typedef struct OpenAPI_n3ga_location_s {
|
|
|
|
struct OpenAPI_tai_s *n3gpp_tai;
|
|
|
|
char *n3_iwf_id;
|
|
|
|
char *ue_ipv4_addr;
|
|
|
|
char *ue_ipv6_addr;
|
2021-07-16 08:02:33 +00:00
|
|
|
bool is_port_number;
|
2020-06-04 18:12:05 +00:00
|
|
|
int port_number;
|
2021-03-08 12:25:09 +00:00
|
|
|
struct OpenAPI_tnap_id_s *tnap_id;
|
|
|
|
struct OpenAPI_twap_id_s *twap_id;
|
2020-06-04 18:12:05 +00:00
|
|
|
struct OpenAPI_hfc_node_id_s *hfc_node_id;
|
2021-07-07 08:32:55 +00:00
|
|
|
char *gli;
|
2021-03-08 12:25:09 +00:00
|
|
|
OpenAPI_line_type_e w5gban_line_type;
|
|
|
|
char *gci;
|
2020-06-04 18:12:05 +00:00
|
|
|
} OpenAPI_n3ga_location_t;
|
|
|
|
|
|
|
|
OpenAPI_n3ga_location_t *OpenAPI_n3ga_location_create(
|
|
|
|
OpenAPI_tai_t *n3gpp_tai,
|
|
|
|
char *n3_iwf_id,
|
|
|
|
char *ue_ipv4_addr,
|
|
|
|
char *ue_ipv6_addr,
|
2021-07-16 08:02:33 +00:00
|
|
|
bool is_port_number,
|
2020-06-04 18:12:05 +00:00
|
|
|
int port_number,
|
2021-03-08 12:25:09 +00:00
|
|
|
OpenAPI_tnap_id_t *tnap_id,
|
|
|
|
OpenAPI_twap_id_t *twap_id,
|
2020-06-04 18:12:05 +00:00
|
|
|
OpenAPI_hfc_node_id_t *hfc_node_id,
|
2021-07-07 08:32:55 +00:00
|
|
|
char *gli,
|
2021-03-08 12:25:09 +00:00
|
|
|
OpenAPI_line_type_e w5gban_line_type,
|
|
|
|
char *gci
|
2021-07-07 08:32:55 +00:00
|
|
|
);
|
2020-06-04 18:12:05 +00:00
|
|
|
void OpenAPI_n3ga_location_free(OpenAPI_n3ga_location_t *n3ga_location);
|
|
|
|
OpenAPI_n3ga_location_t *OpenAPI_n3ga_location_parseFromJSON(cJSON *n3ga_locationJSON);
|
|
|
|
cJSON *OpenAPI_n3ga_location_convertToJSON(OpenAPI_n3ga_location_t *n3ga_location);
|
2020-06-17 05:22:28 +00:00
|
|
|
OpenAPI_n3ga_location_t *OpenAPI_n3ga_location_copy(OpenAPI_n3ga_location_t *dst, OpenAPI_n3ga_location_t *src);
|
2020-06-04 18:12:05 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _OpenAPI_n3ga_location_H_ */
|
|
|
|
|