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.
46 lines
1.5 KiB
C
46 lines
1.5 KiB
C
/*
|
|
* as_time_distribution_param.h
|
|
*
|
|
* Contains the 5G acess stratum time distribution parameters.
|
|
*/
|
|
|
|
#ifndef _OpenAPI_as_time_distribution_param_H_
|
|
#define _OpenAPI_as_time_distribution_param_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_as_time_distribution_param_s OpenAPI_as_time_distribution_param_t;
|
|
typedef struct OpenAPI_as_time_distribution_param_s {
|
|
bool is_as_time_dist_ind;
|
|
int as_time_dist_ind;
|
|
bool is_uu_error_budget_null;
|
|
bool is_uu_error_budget;
|
|
int uu_error_budget;
|
|
} OpenAPI_as_time_distribution_param_t;
|
|
|
|
OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_create(
|
|
bool is_as_time_dist_ind,
|
|
int as_time_dist_ind,
|
|
bool is_uu_error_budget_null,
|
|
bool is_uu_error_budget,
|
|
int uu_error_budget
|
|
);
|
|
void OpenAPI_as_time_distribution_param_free(OpenAPI_as_time_distribution_param_t *as_time_distribution_param);
|
|
OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_parseFromJSON(cJSON *as_time_distribution_paramJSON);
|
|
cJSON *OpenAPI_as_time_distribution_param_convertToJSON(OpenAPI_as_time_distribution_param_t *as_time_distribution_param);
|
|
OpenAPI_as_time_distribution_param_t *OpenAPI_as_time_distribution_param_copy(OpenAPI_as_time_distribution_param_t *dst, OpenAPI_as_time_distribution_param_t *src);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* _OpenAPI_as_time_distribution_param_H_ */
|
|
|