mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +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
|
|
@ -9,7 +9,7 @@ OpenAPI_network_area_info_t *OpenAPI_network_area_info_create(
|
|||
OpenAPI_list_t *ncgis,
|
||||
OpenAPI_list_t *g_ran_node_ids,
|
||||
OpenAPI_list_t *tais
|
||||
)
|
||||
)
|
||||
{
|
||||
OpenAPI_network_area_info_t *network_area_info_local_var = OpenAPI_malloc(sizeof(OpenAPI_network_area_info_t));
|
||||
if (!network_area_info_local_var) {
|
||||
|
|
@ -59,84 +59,84 @@ cJSON *OpenAPI_network_area_info_convertToJSON(OpenAPI_network_area_info_t *netw
|
|||
|
||||
item = cJSON_CreateObject();
|
||||
if (network_area_info->ecgis) {
|
||||
cJSON *ecgisList = cJSON_AddArrayToObject(item, "ecgis");
|
||||
if (ecgisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *ecgisList = cJSON_AddArrayToObject(item, "ecgis");
|
||||
if (ecgisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *ecgis_node;
|
||||
if (network_area_info->ecgis) {
|
||||
OpenAPI_list_for_each(network_area_info->ecgis, ecgis_node) {
|
||||
cJSON *itemLocal = OpenAPI_ecgi_convertToJSON(ecgis_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ecgisList, itemLocal);
|
||||
OpenAPI_lnode_t *ecgis_node;
|
||||
if (network_area_info->ecgis) {
|
||||
OpenAPI_list_for_each(network_area_info->ecgis, ecgis_node) {
|
||||
cJSON *itemLocal = OpenAPI_ecgi_convertToJSON(ecgis_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ecgisList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (network_area_info->ncgis) {
|
||||
cJSON *ncgisList = cJSON_AddArrayToObject(item, "ncgis");
|
||||
if (ncgisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *ncgisList = cJSON_AddArrayToObject(item, "ncgis");
|
||||
if (ncgisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *ncgis_node;
|
||||
if (network_area_info->ncgis) {
|
||||
OpenAPI_list_for_each(network_area_info->ncgis, ncgis_node) {
|
||||
cJSON *itemLocal = OpenAPI_ncgi_convertToJSON(ncgis_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ncgisList, itemLocal);
|
||||
OpenAPI_lnode_t *ncgis_node;
|
||||
if (network_area_info->ncgis) {
|
||||
OpenAPI_list_for_each(network_area_info->ncgis, ncgis_node) {
|
||||
cJSON *itemLocal = OpenAPI_ncgi_convertToJSON(ncgis_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(ncgisList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (network_area_info->g_ran_node_ids) {
|
||||
cJSON *g_ran_node_idsList = cJSON_AddArrayToObject(item, "gRanNodeIds");
|
||||
if (g_ran_node_idsList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *g_ran_node_idsList = cJSON_AddArrayToObject(item, "gRanNodeIds");
|
||||
if (g_ran_node_idsList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *g_ran_node_ids_node;
|
||||
if (network_area_info->g_ran_node_ids) {
|
||||
OpenAPI_list_for_each(network_area_info->g_ran_node_ids, g_ran_node_ids_node) {
|
||||
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(g_ran_node_ids_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(g_ran_node_idsList, itemLocal);
|
||||
OpenAPI_lnode_t *g_ran_node_ids_node;
|
||||
if (network_area_info->g_ran_node_ids) {
|
||||
OpenAPI_list_for_each(network_area_info->g_ran_node_ids, g_ran_node_ids_node) {
|
||||
cJSON *itemLocal = OpenAPI_global_ran_node_id_convertToJSON(g_ran_node_ids_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(g_ran_node_idsList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (network_area_info->tais) {
|
||||
cJSON *taisList = cJSON_AddArrayToObject(item, "tais");
|
||||
if (taisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *taisList = cJSON_AddArrayToObject(item, "tais");
|
||||
if (taisList == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_lnode_t *tais_node;
|
||||
if (network_area_info->tais) {
|
||||
OpenAPI_list_for_each(network_area_info->tais, tais_node) {
|
||||
cJSON *itemLocal = OpenAPI_tai_convertToJSON(tais_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(taisList, itemLocal);
|
||||
OpenAPI_lnode_t *tais_node;
|
||||
if (network_area_info->tais) {
|
||||
OpenAPI_list_for_each(network_area_info->tais, tais_node) {
|
||||
cJSON *itemLocal = OpenAPI_tai_convertToJSON(tais_node->data);
|
||||
if (itemLocal == NULL) {
|
||||
ogs_error("OpenAPI_network_area_info_convertToJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToArray(taisList, itemLocal);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
return item;
|
||||
|
|
@ -148,101 +148,101 @@ OpenAPI_network_area_info_t *OpenAPI_network_area_info_parseFromJSON(cJSON *netw
|
|||
cJSON *ecgis = cJSON_GetObjectItemCaseSensitive(network_area_infoJSON, "ecgis");
|
||||
|
||||
OpenAPI_list_t *ecgisList;
|
||||
if (ecgis) {
|
||||
cJSON *ecgis_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ecgis)) {
|
||||
if (ecgis) {
|
||||
cJSON *ecgis_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ecgis)){
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
ecgisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ecgis_local_nonprimitive, ecgis ) {
|
||||
if (!cJSON_IsObject(ecgis_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ecgi_t *ecgisItem = OpenAPI_ecgi_parseFromJSON(ecgis_local_nonprimitive);
|
||||
|
||||
ecgisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ecgis_local_nonprimitive, ecgis ) {
|
||||
if (!cJSON_IsObject(ecgis_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ecgis]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ecgi_t *ecgisItem = OpenAPI_ecgi_parseFromJSON(ecgis_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(ecgisList, ecgisItem);
|
||||
}
|
||||
OpenAPI_list_add(ecgisList, ecgisItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ncgis = cJSON_GetObjectItemCaseSensitive(network_area_infoJSON, "ncgis");
|
||||
|
||||
OpenAPI_list_t *ncgisList;
|
||||
if (ncgis) {
|
||||
cJSON *ncgis_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ncgis)) {
|
||||
if (ncgis) {
|
||||
cJSON *ncgis_local_nonprimitive;
|
||||
if (!cJSON_IsArray(ncgis)){
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
ncgisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ncgis_local_nonprimitive, ncgis ) {
|
||||
if (!cJSON_IsObject(ncgis_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ncgi_t *ncgisItem = OpenAPI_ncgi_parseFromJSON(ncgis_local_nonprimitive);
|
||||
|
||||
ncgisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(ncgis_local_nonprimitive, ncgis ) {
|
||||
if (!cJSON_IsObject(ncgis_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [ncgis]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_ncgi_t *ncgisItem = OpenAPI_ncgi_parseFromJSON(ncgis_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(ncgisList, ncgisItem);
|
||||
}
|
||||
OpenAPI_list_add(ncgisList, ncgisItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *g_ran_node_ids = cJSON_GetObjectItemCaseSensitive(network_area_infoJSON, "gRanNodeIds");
|
||||
|
||||
OpenAPI_list_t *g_ran_node_idsList;
|
||||
if (g_ran_node_ids) {
|
||||
cJSON *g_ran_node_ids_local_nonprimitive;
|
||||
if (!cJSON_IsArray(g_ran_node_ids)) {
|
||||
if (g_ran_node_ids) {
|
||||
cJSON *g_ran_node_ids_local_nonprimitive;
|
||||
if (!cJSON_IsArray(g_ran_node_ids)){
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
g_ran_node_idsList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(g_ran_node_ids_local_nonprimitive, g_ran_node_ids ) {
|
||||
if (!cJSON_IsObject(g_ran_node_ids_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_global_ran_node_id_t *g_ran_node_idsItem = OpenAPI_global_ran_node_id_parseFromJSON(g_ran_node_ids_local_nonprimitive);
|
||||
|
||||
g_ran_node_idsList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(g_ran_node_ids_local_nonprimitive, g_ran_node_ids ) {
|
||||
if (!cJSON_IsObject(g_ran_node_ids_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [g_ran_node_ids]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_global_ran_node_id_t *g_ran_node_idsItem = OpenAPI_global_ran_node_id_parseFromJSON(g_ran_node_ids_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(g_ran_node_idsList, g_ran_node_idsItem);
|
||||
}
|
||||
OpenAPI_list_add(g_ran_node_idsList, g_ran_node_idsItem);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tais = cJSON_GetObjectItemCaseSensitive(network_area_infoJSON, "tais");
|
||||
|
||||
OpenAPI_list_t *taisList;
|
||||
if (tais) {
|
||||
cJSON *tais_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tais)) {
|
||||
if (tais) {
|
||||
cJSON *tais_local_nonprimitive;
|
||||
if (!cJSON_IsArray(tais)){
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
|
||||
taisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(tais_local_nonprimitive, tais ) {
|
||||
if (!cJSON_IsObject(tais_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_tai_t *taisItem = OpenAPI_tai_parseFromJSON(tais_local_nonprimitive);
|
||||
|
||||
taisList = OpenAPI_list_create();
|
||||
|
||||
cJSON_ArrayForEach(tais_local_nonprimitive, tais ) {
|
||||
if (!cJSON_IsObject(tais_local_nonprimitive)) {
|
||||
ogs_error("OpenAPI_network_area_info_parseFromJSON() failed [tais]");
|
||||
goto end;
|
||||
}
|
||||
OpenAPI_tai_t *taisItem = OpenAPI_tai_parseFromJSON(tais_local_nonprimitive);
|
||||
|
||||
OpenAPI_list_add(taisList, taisItem);
|
||||
}
|
||||
OpenAPI_list_add(taisList, taisItem);
|
||||
}
|
||||
}
|
||||
|
||||
network_area_info_local_var = OpenAPI_network_area_info_create (
|
||||
ecgis ? ecgisList : NULL,
|
||||
ncgis ? ncgisList : NULL,
|
||||
g_ran_node_ids ? g_ran_node_idsList : NULL,
|
||||
tais ? taisList : NULL
|
||||
);
|
||||
);
|
||||
|
||||
return network_area_info_local_var;
|
||||
end:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue