mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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,11 +5,17 @@
|
|||
#include "preferred_search.h"
|
||||
|
||||
OpenAPI_preferred_search_t *OpenAPI_preferred_search_create(
|
||||
bool is_preferred_tai_match_ind,
|
||||
int preferred_tai_match_ind,
|
||||
bool is_preferred_full_plmn_match_ind,
|
||||
int preferred_full_plmn_match_ind,
|
||||
bool is_preferred_api_versions_match_ind,
|
||||
int preferred_api_versions_match_ind,
|
||||
bool is_other_api_versions_ind,
|
||||
int other_api_versions_ind,
|
||||
bool is_preferred_locality_match_ind,
|
||||
int preferred_locality_match_ind,
|
||||
bool is_other_locality_ind,
|
||||
int other_locality_ind
|
||||
)
|
||||
{
|
||||
|
|
@ -17,11 +23,17 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_create(
|
|||
if (!preferred_search_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
preferred_search_local_var->is_preferred_tai_match_ind = is_preferred_tai_match_ind;
|
||||
preferred_search_local_var->preferred_tai_match_ind = preferred_tai_match_ind;
|
||||
preferred_search_local_var->is_preferred_full_plmn_match_ind = is_preferred_full_plmn_match_ind;
|
||||
preferred_search_local_var->preferred_full_plmn_match_ind = preferred_full_plmn_match_ind;
|
||||
preferred_search_local_var->is_preferred_api_versions_match_ind = is_preferred_api_versions_match_ind;
|
||||
preferred_search_local_var->preferred_api_versions_match_ind = preferred_api_versions_match_ind;
|
||||
preferred_search_local_var->is_other_api_versions_ind = is_other_api_versions_ind;
|
||||
preferred_search_local_var->other_api_versions_ind = other_api_versions_ind;
|
||||
preferred_search_local_var->is_preferred_locality_match_ind = is_preferred_locality_match_ind;
|
||||
preferred_search_local_var->preferred_locality_match_ind = preferred_locality_match_ind;
|
||||
preferred_search_local_var->is_other_locality_ind = is_other_locality_ind;
|
||||
preferred_search_local_var->other_locality_ind = other_locality_ind;
|
||||
|
||||
return preferred_search_local_var;
|
||||
|
|
@ -46,42 +58,42 @@ cJSON *OpenAPI_preferred_search_convertToJSON(OpenAPI_preferred_search_t *prefer
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (preferred_search->preferred_tai_match_ind) {
|
||||
if (preferred_search->is_preferred_tai_match_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "preferredTaiMatchInd", preferred_search->preferred_tai_match_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [preferred_tai_match_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (preferred_search->preferred_full_plmn_match_ind) {
|
||||
if (preferred_search->is_preferred_full_plmn_match_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "preferredFullPlmnMatchInd", preferred_search->preferred_full_plmn_match_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [preferred_full_plmn_match_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (preferred_search->preferred_api_versions_match_ind) {
|
||||
if (preferred_search->is_preferred_api_versions_match_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "preferredApiVersionsMatchInd", preferred_search->preferred_api_versions_match_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [preferred_api_versions_match_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (preferred_search->other_api_versions_ind) {
|
||||
if (preferred_search->is_other_api_versions_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "otherApiVersionsInd", preferred_search->other_api_versions_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [other_api_versions_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (preferred_search->preferred_locality_match_ind) {
|
||||
if (preferred_search->is_preferred_locality_match_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "preferredLocalityMatchInd", preferred_search->preferred_locality_match_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [preferred_locality_match_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (preferred_search->other_locality_ind) {
|
||||
if (preferred_search->is_other_locality_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "otherLocalityInd", preferred_search->other_locality_ind) == NULL) {
|
||||
ogs_error("OpenAPI_preferred_search_convertToJSON() failed [other_locality_ind]");
|
||||
goto end;
|
||||
|
|
@ -97,7 +109,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
OpenAPI_preferred_search_t *preferred_search_local_var = NULL;
|
||||
cJSON *preferred_tai_match_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "preferredTaiMatchInd");
|
||||
|
||||
if (preferred_tai_match_ind) {
|
||||
if (preferred_tai_match_ind) {
|
||||
if (!cJSON_IsBool(preferred_tai_match_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [preferred_tai_match_ind]");
|
||||
goto end;
|
||||
|
|
@ -106,7 +118,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
|
||||
cJSON *preferred_full_plmn_match_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "preferredFullPlmnMatchInd");
|
||||
|
||||
if (preferred_full_plmn_match_ind) {
|
||||
if (preferred_full_plmn_match_ind) {
|
||||
if (!cJSON_IsBool(preferred_full_plmn_match_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [preferred_full_plmn_match_ind]");
|
||||
goto end;
|
||||
|
|
@ -115,7 +127,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
|
||||
cJSON *preferred_api_versions_match_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "preferredApiVersionsMatchInd");
|
||||
|
||||
if (preferred_api_versions_match_ind) {
|
||||
if (preferred_api_versions_match_ind) {
|
||||
if (!cJSON_IsBool(preferred_api_versions_match_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [preferred_api_versions_match_ind]");
|
||||
goto end;
|
||||
|
|
@ -124,7 +136,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
|
||||
cJSON *other_api_versions_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "otherApiVersionsInd");
|
||||
|
||||
if (other_api_versions_ind) {
|
||||
if (other_api_versions_ind) {
|
||||
if (!cJSON_IsBool(other_api_versions_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [other_api_versions_ind]");
|
||||
goto end;
|
||||
|
|
@ -133,7 +145,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
|
||||
cJSON *preferred_locality_match_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "preferredLocalityMatchInd");
|
||||
|
||||
if (preferred_locality_match_ind) {
|
||||
if (preferred_locality_match_ind) {
|
||||
if (!cJSON_IsBool(preferred_locality_match_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [preferred_locality_match_ind]");
|
||||
goto end;
|
||||
|
|
@ -142,7 +154,7 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
|
||||
cJSON *other_locality_ind = cJSON_GetObjectItemCaseSensitive(preferred_searchJSON, "otherLocalityInd");
|
||||
|
||||
if (other_locality_ind) {
|
||||
if (other_locality_ind) {
|
||||
if (!cJSON_IsBool(other_locality_ind)) {
|
||||
ogs_error("OpenAPI_preferred_search_parseFromJSON() failed [other_locality_ind]");
|
||||
goto end;
|
||||
|
|
@ -150,11 +162,17 @@ OpenAPI_preferred_search_t *OpenAPI_preferred_search_parseFromJSON(cJSON *prefer
|
|||
}
|
||||
|
||||
preferred_search_local_var = OpenAPI_preferred_search_create (
|
||||
preferred_tai_match_ind ? true : false,
|
||||
preferred_tai_match_ind ? preferred_tai_match_ind->valueint : 0,
|
||||
preferred_full_plmn_match_ind ? true : false,
|
||||
preferred_full_plmn_match_ind ? preferred_full_plmn_match_ind->valueint : 0,
|
||||
preferred_api_versions_match_ind ? true : false,
|
||||
preferred_api_versions_match_ind ? preferred_api_versions_match_ind->valueint : 0,
|
||||
other_api_versions_ind ? true : false,
|
||||
other_api_versions_ind ? other_api_versions_ind->valueint : 0,
|
||||
preferred_locality_match_ind ? true : false,
|
||||
preferred_locality_match_ind ? preferred_locality_match_ind->valueint : 0,
|
||||
other_locality_ind ? true : false,
|
||||
other_locality_ind ? other_locality_ind->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue