mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
simple 5GC registration is done
This commit is contained in:
parent
bcd02b1f33
commit
b35c2277be
213 changed files with 7713 additions and 5445 deletions
|
|
@ -10,7 +10,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_create(
|
|||
int ebi,
|
||||
char qos_flow_description,
|
||||
OpenAPI_qos_flow_profile_t *qos_flow_profile,
|
||||
OpenAPI_qos_flow_access_type_t *associated_an_type
|
||||
OpenAPI_qos_flow_access_type_e associated_an_type
|
||||
)
|
||||
{
|
||||
OpenAPI_qos_flow_setup_item_t *qos_flow_setup_item_local_var = OpenAPI_malloc(sizeof(OpenAPI_qos_flow_setup_item_t));
|
||||
|
|
@ -34,7 +34,6 @@ void OpenAPI_qos_flow_setup_item_free(OpenAPI_qos_flow_setup_item_t *qos_flow_se
|
|||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
OpenAPI_qos_flow_profile_free(qos_flow_setup_item->qos_flow_profile);
|
||||
OpenAPI_qos_flow_access_type_free(qos_flow_setup_item->associated_an_type);
|
||||
ogs_free(qos_flow_setup_item);
|
||||
}
|
||||
|
||||
|
|
@ -94,13 +93,7 @@ cJSON *OpenAPI_qos_flow_setup_item_convertToJSON(OpenAPI_qos_flow_setup_item_t *
|
|||
}
|
||||
|
||||
if (qos_flow_setup_item->associated_an_type) {
|
||||
cJSON *associated_an_type_local_JSON = OpenAPI_qos_flow_access_type_convertToJSON(qos_flow_setup_item->associated_an_type);
|
||||
if (associated_an_type_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [associated_an_type]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "associatedAnType", associated_an_type_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
if (cJSON_AddStringToObject(item, "associatedAnType", OpenAPI_qos_flow_access_type_ToString(qos_flow_setup_item->associated_an_type)) == NULL) {
|
||||
ogs_error("OpenAPI_qos_flow_setup_item_convertToJSON() failed [associated_an_type]");
|
||||
goto end;
|
||||
}
|
||||
|
|
@ -164,9 +157,13 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
|
|||
|
||||
cJSON *associated_an_type = cJSON_GetObjectItemCaseSensitive(qos_flow_setup_itemJSON, "associatedAnType");
|
||||
|
||||
OpenAPI_qos_flow_access_type_t *associated_an_type_local_nonprim = NULL;
|
||||
OpenAPI_qos_flow_access_type_e associated_an_typeVariable;
|
||||
if (associated_an_type) {
|
||||
associated_an_type_local_nonprim = OpenAPI_qos_flow_access_type_parseFromJSON(associated_an_type);
|
||||
if (!cJSON_IsString(associated_an_type)) {
|
||||
ogs_error("OpenAPI_qos_flow_setup_item_parseFromJSON() failed [associated_an_type]");
|
||||
goto end;
|
||||
}
|
||||
associated_an_typeVariable = OpenAPI_qos_flow_access_type_FromString(associated_an_type->valuestring);
|
||||
}
|
||||
|
||||
qos_flow_setup_item_local_var = OpenAPI_qos_flow_setup_item_create (
|
||||
|
|
@ -175,7 +172,7 @@ OpenAPI_qos_flow_setup_item_t *OpenAPI_qos_flow_setup_item_parseFromJSON(cJSON *
|
|||
ebi ? ebi->valuedouble : 0,
|
||||
qos_flow_description ? qos_flow_description->valueint : 0,
|
||||
qos_flow_profile ? qos_flow_profile_local_nonprim : NULL,
|
||||
associated_an_type ? associated_an_type_local_nonprim : NULL
|
||||
associated_an_type ? associated_an_typeVariable : 0
|
||||
);
|
||||
|
||||
return qos_flow_setup_item_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue