mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
Depending on the OpenAPI yaml files, fields can be marked as "nullable". Which means that the field can be either present, not present, or null. This feature is important for example in SmContextUpdateData structure, where many fields are described similar as the following: This IE shall be included for the modification .... For deleting the field, it shall contain the Null value.
52 lines
1.5 KiB
C
52 lines
1.5 KiB
C
/*
|
|
* smf_selection_data.h
|
|
*
|
|
* Represents the SMF Selection information that may be replaced by the PCF.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_smf_selection_data_H_
|
|
#define _OpenAPI_smf_selection_data_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "candidate_for_replacement.h"
|
|
#include "snssai.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_smf_selection_data_s OpenAPI_smf_selection_data_t;
|
|
typedef struct OpenAPI_smf_selection_data_s {
|
|
bool is_unsupp_dnn;
|
|
int unsupp_dnn;
|
|
bool is_candidates_null;
|
|
OpenAPI_list_t* candidates;
|
|
struct OpenAPI_snssai_s *snssai;
|
|
struct OpenAPI_snssai_s *mapping_snssai;
|
|
char *dnn;
|
|
} OpenAPI_smf_selection_data_t;
|
|
|
|
OpenAPI_smf_selection_data_t *OpenAPI_smf_selection_data_create(
|
|
bool is_unsupp_dnn,
|
|
int unsupp_dnn,
|
|
bool is_candidates_null,
|
|
OpenAPI_list_t* candidates,
|
|
OpenAPI_snssai_t *snssai,
|
|
OpenAPI_snssai_t *mapping_snssai,
|
|
char *dnn
|
|
);
|
|
void OpenAPI_smf_selection_data_free(OpenAPI_smf_selection_data_t *smf_selection_data);
|
|
OpenAPI_smf_selection_data_t *OpenAPI_smf_selection_data_parseFromJSON(cJSON *smf_selection_dataJSON);
|
|
cJSON *OpenAPI_smf_selection_data_convertToJSON(OpenAPI_smf_selection_data_t *smf_selection_data);
|
|
OpenAPI_smf_selection_data_t *OpenAPI_smf_selection_data_copy(OpenAPI_smf_selection_data_t *dst, OpenAPI_smf_selection_data_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_smf_selection_data_H_ */
|
|
|