mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
[Release-17] Upgrade SBI to v17.x.0
This commit is contained in:
parent
969c116e77
commit
4d44b1843e
1687 changed files with 121604 additions and 9310 deletions
|
|
@ -15,7 +15,13 @@ OpenAPI_authentication_info_t *OpenAPI_authentication_info_create(
|
|||
OpenAPI_list_t *cell_cag_info,
|
||||
bool is_n5gc_ind,
|
||||
int n5gc_ind,
|
||||
char *supported_features
|
||||
char *supported_features,
|
||||
bool is_nswo_ind,
|
||||
int nswo_ind,
|
||||
bool is_disaster_roaming_ind,
|
||||
int disaster_roaming_ind,
|
||||
bool is_onboarding_ind,
|
||||
int onboarding_ind
|
||||
)
|
||||
{
|
||||
OpenAPI_authentication_info_t *authentication_info_local_var = ogs_malloc(sizeof(OpenAPI_authentication_info_t));
|
||||
|
|
@ -32,6 +38,12 @@ OpenAPI_authentication_info_t *OpenAPI_authentication_info_create(
|
|||
authentication_info_local_var->is_n5gc_ind = is_n5gc_ind;
|
||||
authentication_info_local_var->n5gc_ind = n5gc_ind;
|
||||
authentication_info_local_var->supported_features = supported_features;
|
||||
authentication_info_local_var->is_nswo_ind = is_nswo_ind;
|
||||
authentication_info_local_var->nswo_ind = nswo_ind;
|
||||
authentication_info_local_var->is_disaster_roaming_ind = is_disaster_roaming_ind;
|
||||
authentication_info_local_var->disaster_roaming_ind = disaster_roaming_ind;
|
||||
authentication_info_local_var->is_onboarding_ind = is_onboarding_ind;
|
||||
authentication_info_local_var->onboarding_ind = onboarding_ind;
|
||||
|
||||
return authentication_info_local_var;
|
||||
}
|
||||
|
|
@ -189,6 +201,27 @@ cJSON *OpenAPI_authentication_info_convertToJSON(OpenAPI_authentication_info_t *
|
|||
}
|
||||
}
|
||||
|
||||
if (authentication_info->is_nswo_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "nswoInd", authentication_info->nswo_ind) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_info_convertToJSON() failed [nswo_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_info->is_disaster_roaming_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "disasterRoamingInd", authentication_info->disaster_roaming_ind) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_info_convertToJSON() failed [disaster_roaming_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (authentication_info->is_onboarding_ind) {
|
||||
if (cJSON_AddBoolToObject(item, "onboardingInd", authentication_info->onboarding_ind) == NULL) {
|
||||
ogs_error("OpenAPI_authentication_info_convertToJSON() failed [onboarding_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
|
@ -210,6 +243,9 @@ OpenAPI_authentication_info_t *OpenAPI_authentication_info_parseFromJSON(cJSON *
|
|||
OpenAPI_list_t *cell_cag_infoList = NULL;
|
||||
cJSON *n5gc_ind = NULL;
|
||||
cJSON *supported_features = NULL;
|
||||
cJSON *nswo_ind = NULL;
|
||||
cJSON *disaster_roaming_ind = NULL;
|
||||
cJSON *onboarding_ind = NULL;
|
||||
supi_or_suci = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "supiOrSuci");
|
||||
if (!supi_or_suci) {
|
||||
ogs_error("OpenAPI_authentication_info_parseFromJSON() failed [supi_or_suci]");
|
||||
|
|
@ -301,6 +337,30 @@ OpenAPI_authentication_info_t *OpenAPI_authentication_info_parseFromJSON(cJSON *
|
|||
}
|
||||
}
|
||||
|
||||
nswo_ind = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "nswoInd");
|
||||
if (nswo_ind) {
|
||||
if (!cJSON_IsBool(nswo_ind)) {
|
||||
ogs_error("OpenAPI_authentication_info_parseFromJSON() failed [nswo_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
disaster_roaming_ind = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "disasterRoamingInd");
|
||||
if (disaster_roaming_ind) {
|
||||
if (!cJSON_IsBool(disaster_roaming_ind)) {
|
||||
ogs_error("OpenAPI_authentication_info_parseFromJSON() failed [disaster_roaming_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
onboarding_ind = cJSON_GetObjectItemCaseSensitive(authentication_infoJSON, "onboardingInd");
|
||||
if (onboarding_ind) {
|
||||
if (!cJSON_IsBool(onboarding_ind)) {
|
||||
ogs_error("OpenAPI_authentication_info_parseFromJSON() failed [onboarding_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
authentication_info_local_var = OpenAPI_authentication_info_create (
|
||||
ogs_strdup(supi_or_suci->valuestring),
|
||||
ogs_strdup(serving_network_name->valuestring),
|
||||
|
|
@ -312,7 +372,13 @@ OpenAPI_authentication_info_t *OpenAPI_authentication_info_parseFromJSON(cJSON *
|
|||
cell_cag_info ? cell_cag_infoList : NULL,
|
||||
n5gc_ind ? true : false,
|
||||
n5gc_ind ? n5gc_ind->valueint : 0,
|
||||
supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL
|
||||
supported_features && !cJSON_IsNull(supported_features) ? ogs_strdup(supported_features->valuestring) : NULL,
|
||||
nswo_ind ? true : false,
|
||||
nswo_ind ? nswo_ind->valueint : 0,
|
||||
disaster_roaming_ind ? true : false,
|
||||
disaster_roaming_ind ? disaster_roaming_ind->valueint : 0,
|
||||
onboarding_ind ? true : false,
|
||||
onboarding_ind ? onboarding_ind->valueint : 0
|
||||
);
|
||||
|
||||
return authentication_info_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue