mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 13:50:08 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "qos_monitoring_info.h"
|
||||
|
||||
OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_create(
|
||||
bool is_qos_monitoring_ind,
|
||||
int qos_monitoring_ind
|
||||
)
|
||||
{
|
||||
|
|
@ -12,6 +13,7 @@ OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_create(
|
|||
if (!qos_monitoring_info_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
qos_monitoring_info_local_var->is_qos_monitoring_ind = is_qos_monitoring_ind;
|
||||
qos_monitoring_info_local_var->qos_monitoring_ind = qos_monitoring_ind;
|
||||
|
||||
return qos_monitoring_info_local_var;
|
||||
|
|
@ -36,7 +38,7 @@ cJSON *OpenAPI_qos_monitoring_info_convertToJSON(OpenAPI_qos_monitoring_info_t *
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (qos_monitoring_info->qos_monitoring_ind) {
|
||||
if (qos_monitoring_info->is_qos_monitoring_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "qosMonitoringInd", qos_monitoring_info->qos_monitoring_ind) == NULL) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_convertToJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
|
|
@ -52,7 +54,7 @@ OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_parseFromJSON(cJSON *
|
|||
OpenAPI_qos_monitoring_info_t *qos_monitoring_info_local_var = NULL;
|
||||
cJSON *qos_monitoring_ind = cJSON_GetObjectItemCaseSensitive(qos_monitoring_infoJSON, "qosMonitoringInd");
|
||||
|
||||
if (qos_monitoring_ind) {
|
||||
if (qos_monitoring_ind) {
|
||||
if (!cJSON_IsBool(qos_monitoring_ind)) {
|
||||
ogs_error("OpenAPI_qos_monitoring_info_parseFromJSON() failed [qos_monitoring_ind]");
|
||||
goto end;
|
||||
|
|
@ -60,6 +62,7 @@ OpenAPI_qos_monitoring_info_t *OpenAPI_qos_monitoring_info_parseFromJSON(cJSON *
|
|||
}
|
||||
|
||||
qos_monitoring_info_local_var = OpenAPI_qos_monitoring_info_create (
|
||||
qos_monitoring_ind ? true : false,
|
||||
qos_monitoring_ind ? qos_monitoring_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue