mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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.
43 lines
1.4 KiB
C
43 lines
1.4 KiB
C
/*
|
|
* candidate_for_replacement.h
|
|
*
|
|
* Represents a list of candidate DNNs for replacement for an S-NSSAI.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_candidate_for_replacement_H_
|
|
#define _OpenAPI_candidate_for_replacement_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
#include "snssai.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_candidate_for_replacement_s OpenAPI_candidate_for_replacement_t;
|
|
typedef struct OpenAPI_candidate_for_replacement_s {
|
|
struct OpenAPI_snssai_s *snssai;
|
|
bool is_dnns_null;
|
|
OpenAPI_list_t *dnns;
|
|
} OpenAPI_candidate_for_replacement_t;
|
|
|
|
OpenAPI_candidate_for_replacement_t *OpenAPI_candidate_for_replacement_create(
|
|
OpenAPI_snssai_t *snssai,
|
|
bool is_dnns_null,
|
|
OpenAPI_list_t *dnns
|
|
);
|
|
void OpenAPI_candidate_for_replacement_free(OpenAPI_candidate_for_replacement_t *candidate_for_replacement);
|
|
OpenAPI_candidate_for_replacement_t *OpenAPI_candidate_for_replacement_parseFromJSON(cJSON *candidate_for_replacementJSON);
|
|
cJSON *OpenAPI_candidate_for_replacement_convertToJSON(OpenAPI_candidate_for_replacement_t *candidate_for_replacement);
|
|
OpenAPI_candidate_for_replacement_t *OpenAPI_candidate_for_replacement_copy(OpenAPI_candidate_for_replacement_t *dst, OpenAPI_candidate_for_replacement_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_candidate_for_replacement_H_ */
|
|
|