open5gs/lib/sbi/openapi/model/pcf_info.h

55 lines
1.3 KiB
C
Raw Normal View History

2020-05-18 21:00:37 +00:00
/*
* pcf_info.h
*
2020-06-04 18:12:05 +00:00
* Information of a PCF NF Instance
2020-05-18 21:00:37 +00:00
*/
#ifndef _OpenAPI_pcf_info_H_
#define _OpenAPI_pcf_info_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#include "identity_range.h"
#include "supi_range.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_pcf_info_s OpenAPI_pcf_info_t;
typedef struct OpenAPI_pcf_info_s {
char *group_id;
OpenAPI_list_t *dnn_list;
OpenAPI_list_t *supi_ranges;
OpenAPI_list_t *gpsi_ranges;
char *rx_diam_host;
char *rx_diam_realm;
bool is_v2x_support_ind;
2020-06-04 18:12:05 +00:00
int v2x_support_ind;
2020-05-18 21:00:37 +00:00
} OpenAPI_pcf_info_t;
OpenAPI_pcf_info_t *OpenAPI_pcf_info_create(
char *group_id,
OpenAPI_list_t *dnn_list,
OpenAPI_list_t *supi_ranges,
OpenAPI_list_t *gpsi_ranges,
char *rx_diam_host,
2020-06-04 18:12:05 +00:00
char *rx_diam_realm,
bool is_v2x_support_ind,
2020-06-04 18:12:05 +00:00
int v2x_support_ind
);
2020-05-18 21:00:37 +00:00
void OpenAPI_pcf_info_free(OpenAPI_pcf_info_t *pcf_info);
OpenAPI_pcf_info_t *OpenAPI_pcf_info_parseFromJSON(cJSON *pcf_infoJSON);
cJSON *OpenAPI_pcf_info_convertToJSON(OpenAPI_pcf_info_t *pcf_info);
2020-06-17 05:22:28 +00:00
OpenAPI_pcf_info_t *OpenAPI_pcf_info_copy(OpenAPI_pcf_info_t *dst, OpenAPI_pcf_info_t *src);
2020-05-18 21:00:37 +00:00
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_pcf_info_H_ */