mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
feat: Add dedicated QoS flow
This commit is contained in:
parent
65aea5ebf2
commit
235a041b8d
205 changed files with 6053 additions and 3831 deletions
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
OpenAPI_termination_notification_t *OpenAPI_termination_notification_create(
|
||||
char *resource_uri,
|
||||
OpenAPI_sm_policy_association_release_cause_t *cause
|
||||
OpenAPI_sm_policy_association_release_cause_e cause
|
||||
)
|
||||
{
|
||||
OpenAPI_termination_notification_t *termination_notification_local_var = OpenAPI_malloc(sizeof(OpenAPI_termination_notification_t));
|
||||
|
|
@ -26,7 +26,6 @@ void OpenAPI_termination_notification_free(OpenAPI_termination_notification_t *t
|
|||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(termination_notification->resource_uri);
|
||||
OpenAPI_sm_policy_association_release_cause_free(termination_notification->cause);
|
||||
ogs_free(termination_notification);
|
||||
}
|
||||
|
||||
|
|
@ -53,13 +52,7 @@ cJSON *OpenAPI_termination_notification_convertToJSON(OpenAPI_termination_notifi
|
|||
ogs_error("OpenAPI_termination_notification_convertToJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
cJSON *cause_local_JSON = OpenAPI_sm_policy_association_release_cause_convertToJSON(termination_notification->cause);
|
||||
if (cause_local_JSON == NULL) {
|
||||
ogs_error("OpenAPI_termination_notification_convertToJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
cJSON_AddItemToObject(item, "cause", cause_local_JSON);
|
||||
if (item->child == NULL) {
|
||||
if (cJSON_AddStringToObject(item, "cause", OpenAPI_sm_policy_association_release_cause_ToString(termination_notification->cause)) == NULL) {
|
||||
ogs_error("OpenAPI_termination_notification_convertToJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
|
|
@ -89,13 +82,17 @@ OpenAPI_termination_notification_t *OpenAPI_termination_notification_parseFromJS
|
|||
goto end;
|
||||
}
|
||||
|
||||
OpenAPI_sm_policy_association_release_cause_t *cause_local_nonprim = NULL;
|
||||
OpenAPI_sm_policy_association_release_cause_e causeVariable;
|
||||
|
||||
cause_local_nonprim = OpenAPI_sm_policy_association_release_cause_parseFromJSON(cause);
|
||||
if (!cJSON_IsString(cause)) {
|
||||
ogs_error("OpenAPI_termination_notification_parseFromJSON() failed [cause]");
|
||||
goto end;
|
||||
}
|
||||
causeVariable = OpenAPI_sm_policy_association_release_cause_FromString(cause->valuestring);
|
||||
|
||||
termination_notification_local_var = OpenAPI_termination_notification_create (
|
||||
ogs_strdup(resource_uri->valuestring),
|
||||
cause_local_nonprim
|
||||
causeVariable
|
||||
);
|
||||
|
||||
return termination_notification_local_var;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue