mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
|
|
@ -8,7 +8,7 @@ OpenAPI_user_location_t *OpenAPI_user_location_create(
|
|||
OpenAPI_eutra_location_t *eutra_location,
|
||||
OpenAPI_nr_location_t *nr_location,
|
||||
OpenAPI_n3ga_location_t *n3ga_location
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_user_location_t *user_location_local_var = OpenAPI_malloc(sizeof(OpenAPI_user_location_t));
|
||||
if (!user_location_local_var) {
|
||||
|
|
@ -44,42 +44,42 @@ cJSON *OpenAPI_user_location_convertToJSON(OpenAPI_user_location_t *user_locatio
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (user_location->eutra_location) {
|
||||
cJSON *eutra_location_local_JSON = OpenAPI_eutra_location_convertToJSON(user_location->eutra_location);
|
||||
if (eutra_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [eutra_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "eutraLocation", eutra_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [eutra_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *eutra_location_local_JSON = OpenAPI_eutra_location_convertToJSON(user_location->eutra_location);
|
||||
if (eutra_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [eutra_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "eutraLocation", eutra_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [eutra_location]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (user_location->nr_location) {
|
||||
cJSON *nr_location_local_JSON = OpenAPI_nr_location_convertToJSON(user_location->nr_location);
|
||||
if (nr_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [nr_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "nrLocation", nr_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [nr_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *nr_location_local_JSON = OpenAPI_nr_location_convertToJSON(user_location->nr_location);
|
||||
if (nr_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [nr_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "nrLocation", nr_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [nr_location]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (user_location->n3ga_location) {
|
||||
cJSON *n3ga_location_local_JSON = OpenAPI_n3ga_location_convertToJSON(user_location->n3ga_location);
|
||||
if (n3ga_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [n3ga_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n3gaLocation", n3ga_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [n3ga_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *n3ga_location_local_JSON = OpenAPI_n3ga_location_convertToJSON(user_location->n3ga_location);
|
||||
if (n3ga_location_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [n3ga_location]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "n3gaLocation", n3ga_location_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
ogs_error("OpenAPI_user_location_convertToJSON() failed [n3ga_location]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
|
|
@ -92,29 +92,29 @@ OpenAPI_user_location_t *OpenAPI_user_location_parseFromJSON(cJSON *user_locatio
|
|||
cJSON *eutra_location = cJSON_GetObjectItemCaseSensitive(user_locationJSON, "eutraLocation");
|
||||
|
||||
OpenAPI_eutra_location_t *eutra_location_local_nonprim = NULL;
|
||||
if (eutra_location) {
|
||||
eutra_location_local_nonprim = OpenAPI_eutra_location_parseFromJSON(eutra_location);
|
||||
}
|
||||
if (eutra_location) {
|
||||
eutra_location_local_nonprim = OpenAPI_eutra_location_parseFromJSON(eutra_location);
|
||||
}
|
||||
|
||||
cJSON *nr_location = cJSON_GetObjectItemCaseSensitive(user_locationJSON, "nrLocation");
|
||||
|
||||
OpenAPI_nr_location_t *nr_location_local_nonprim = NULL;
|
||||
if (nr_location) {
|
||||
nr_location_local_nonprim = OpenAPI_nr_location_parseFromJSON(nr_location);
|
||||
}
|
||||
if (nr_location) {
|
||||
nr_location_local_nonprim = OpenAPI_nr_location_parseFromJSON(nr_location);
|
||||
}
|
||||
|
||||
cJSON *n3ga_location = cJSON_GetObjectItemCaseSensitive(user_locationJSON, "n3gaLocation");
|
||||
|
||||
OpenAPI_n3ga_location_t *n3ga_location_local_nonprim = NULL;
|
||||
if (n3ga_location) {
|
||||
n3ga_location_local_nonprim = OpenAPI_n3ga_location_parseFromJSON(n3ga_location);
|
||||
}
|
||||
if (n3ga_location) {
|
||||
n3ga_location_local_nonprim = OpenAPI_n3ga_location_parseFromJSON(n3ga_location);
|
||||
}
|
||||
|
||||
user_location_local_var = OpenAPI_user_location_create (
|
||||
eutra_location ? eutra_location_local_nonprim : NULL,
|
||||
nr_location ? nr_location_local_nonprim : NULL,
|
||||
n3ga_location ? n3ga_location_local_nonprim : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return user_location_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue