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.
42 lines
1.3 KiB
C
42 lines
1.3 KiB
C
/*
|
|
* sm_policy_dnn_data_patch.h
|
|
*
|
|
* Contains the SM policy data for a given DNN (and S-NSSAI).
|
|
*/
|
|
|
|
#ifndef _OpenAPI_sm_policy_dnn_data_patch_H_
|
|
#define _OpenAPI_sm_policy_dnn_data_patch_H_
|
|
|
|
#include <string.h>
|
|
#include "../external/cJSON.h"
|
|
#include "../include/list.h"
|
|
#include "../include/keyValuePair.h"
|
|
#include "../include/binary.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct OpenAPI_sm_policy_dnn_data_patch_s OpenAPI_sm_policy_dnn_data_patch_t;
|
|
typedef struct OpenAPI_sm_policy_dnn_data_patch_s {
|
|
char *dnn;
|
|
bool is_bdt_ref_ids_null;
|
|
OpenAPI_list_t* bdt_ref_ids;
|
|
} OpenAPI_sm_policy_dnn_data_patch_t;
|
|
|
|
OpenAPI_sm_policy_dnn_data_patch_t *OpenAPI_sm_policy_dnn_data_patch_create(
|
|
char *dnn,
|
|
bool is_bdt_ref_ids_null,
|
|
OpenAPI_list_t* bdt_ref_ids
|
|
);
|
|
void OpenAPI_sm_policy_dnn_data_patch_free(OpenAPI_sm_policy_dnn_data_patch_t *sm_policy_dnn_data_patch);
|
|
OpenAPI_sm_policy_dnn_data_patch_t *OpenAPI_sm_policy_dnn_data_patch_parseFromJSON(cJSON *sm_policy_dnn_data_patchJSON);
|
|
cJSON *OpenAPI_sm_policy_dnn_data_patch_convertToJSON(OpenAPI_sm_policy_dnn_data_patch_t *sm_policy_dnn_data_patch);
|
|
OpenAPI_sm_policy_dnn_data_patch_t *OpenAPI_sm_policy_dnn_data_patch_copy(OpenAPI_sm_policy_dnn_data_patch_t *dst, OpenAPI_sm_policy_dnn_data_patch_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_sm_policy_dnn_data_patch_H_ */
|
|
|