mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20:09 +00:00
comply with coding standard
This commit is contained in:
parent
f278d58a69
commit
2471b1b53d
562 changed files with 3332 additions and 3332 deletions
|
|
@ -656,7 +656,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [selected_dnn]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *s_nssai = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "sNssai");
|
||||
if (!s_nssai) {
|
||||
|
|
@ -673,7 +673,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
OpenAPI_snssai_t *hplmn_snssai_local_nonprim = NULL;
|
||||
if (hplmn_snssai) {
|
||||
hplmn_snssai_local_nonprim = OpenAPI_snssai_parseFromJSON(hplmn_snssai);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pdu_session_type = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionType");
|
||||
if (!pdu_session_type) {
|
||||
|
|
@ -696,7 +696,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [gpsi]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *h_smf_uri = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hSmfUri");
|
||||
|
||||
|
|
@ -705,7 +705,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_uri]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *smf_uri = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfUri");
|
||||
|
||||
|
|
@ -714,7 +714,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_uri]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pdu_session_ref = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionRef");
|
||||
|
||||
|
|
@ -723,7 +723,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_ref]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pcf_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfId");
|
||||
|
||||
|
|
@ -732,7 +732,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pcf_group_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfGroupId");
|
||||
|
||||
|
|
@ -741,7 +741,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_group_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pcf_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pcfSetId");
|
||||
|
||||
|
|
@ -750,7 +750,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pcf_set_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *sel_mode = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "selMode");
|
||||
|
||||
|
|
@ -761,7 +761,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
goto end;
|
||||
}
|
||||
sel_modeVariable = OpenAPI_dnn_selection_mode_FromString(sel_mode->valuestring);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *udm_group_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "udmGroupId");
|
||||
|
||||
|
|
@ -770,7 +770,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [udm_group_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *routing_indicator = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "routingIndicator");
|
||||
|
||||
|
|
@ -779,7 +779,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [routing_indicator]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *session_ambr = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "sessionAmbr");
|
||||
if (!session_ambr) {
|
||||
|
|
@ -824,7 +824,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *smf_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfInstanceId");
|
||||
|
||||
|
|
@ -833,7 +833,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pdu_session_smf_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfSetId");
|
||||
|
||||
|
|
@ -842,7 +842,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_smf_set_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pdu_session_smf_service_set_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfServiceSetId");
|
||||
|
||||
|
|
@ -851,7 +851,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [pdu_session_smf_service_set_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pdu_session_smf_binding = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "pduSessionSmfBinding");
|
||||
|
||||
|
|
@ -862,7 +862,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
goto end;
|
||||
}
|
||||
pdu_session_smf_bindingVariable = OpenAPI_sbi_binding_level_FromString(pdu_session_smf_binding->valuestring);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *enable_pause_charging = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "enablePauseCharging");
|
||||
|
||||
|
|
@ -871,7 +871,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [enable_pause_charging]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ue_ipv4_address = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ueIpv4Address");
|
||||
|
||||
|
|
@ -880,7 +880,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ue_ipv4_address]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ue_ipv6_prefix = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ueIpv6Prefix");
|
||||
|
||||
|
|
@ -889,14 +889,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ue_ipv6_prefix]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *eps_pdn_cnx_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "epsPdnCnxInfo");
|
||||
|
||||
OpenAPI_eps_pdn_cnx_info_t *eps_pdn_cnx_info_local_nonprim = NULL;
|
||||
if (eps_pdn_cnx_info) {
|
||||
eps_pdn_cnx_info_local_nonprim = OpenAPI_eps_pdn_cnx_info_parseFromJSON(eps_pdn_cnx_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *eps_bearer_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "epsBearerInfo");
|
||||
|
||||
|
|
@ -919,7 +919,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
|
||||
OpenAPI_list_add(eps_bearer_infoList, eps_bearer_infoItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *max_integrity_protected_data_rate = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "maxIntegrityProtectedDataRate");
|
||||
|
||||
|
|
@ -930,7 +930,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
goto end;
|
||||
}
|
||||
max_integrity_protected_data_rateVariable = OpenAPI_max_integrity_protected_data_rate_FromString(max_integrity_protected_data_rate->valuestring);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *always_on_granted = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "alwaysOnGranted");
|
||||
|
||||
|
|
@ -939,14 +939,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [always_on_granted]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *up_security = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "upSecurity");
|
||||
|
||||
OpenAPI_up_security_t *up_security_local_nonprim = NULL;
|
||||
if (up_security) {
|
||||
up_security_local_nonprim = OpenAPI_up_security_parseFromJSON(up_security);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *h_smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "hSmfServiceInstanceId");
|
||||
|
||||
|
|
@ -955,7 +955,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [h_smf_service_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *smf_service_instance_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "smfServiceInstanceId");
|
||||
|
||||
|
|
@ -964,7 +964,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [smf_service_instance_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *recovery_time = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "recoveryTime");
|
||||
|
||||
|
|
@ -973,7 +973,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [recovery_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *forwarding_ind = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "forwardingInd");
|
||||
|
||||
|
|
@ -982,14 +982,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [forwarding_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *psa_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "psaTunnelInfo");
|
||||
|
||||
OpenAPI_tunnel_info_t *psa_tunnel_info_local_nonprim = NULL;
|
||||
if (psa_tunnel_info) {
|
||||
psa_tunnel_info_local_nonprim = OpenAPI_tunnel_info_parseFromJSON(psa_tunnel_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *charging_id = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "chargingId");
|
||||
|
||||
|
|
@ -998,21 +998,21 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [charging_id]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *charging_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "chargingInfo");
|
||||
|
||||
OpenAPI_charging_information_t *charging_info_local_nonprim = NULL;
|
||||
if (charging_info) {
|
||||
charging_info_local_nonprim = OpenAPI_charging_information_parseFromJSON(charging_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *roaming_charging_profile = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "roamingChargingProfile");
|
||||
|
||||
OpenAPI_roaming_charging_profile_t *roaming_charging_profile_local_nonprim = NULL;
|
||||
if (roaming_charging_profile) {
|
||||
roaming_charging_profile_local_nonprim = OpenAPI_roaming_charging_profile_parseFromJSON(roaming_charging_profile);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *nef_ext_buf_support_ind = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "nefExtBufSupportInd");
|
||||
|
||||
|
|
@ -1021,7 +1021,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [nef_ext_buf_support_ind]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ipv6_index = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ipv6Index");
|
||||
|
||||
|
|
@ -1030,28 +1030,28 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
ogs_error("OpenAPI_sm_context_parseFromJSON() failed [ipv6_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *dn_aaa_address = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "dnAaaAddress");
|
||||
|
||||
OpenAPI_ip_address_t *dn_aaa_address_local_nonprim = NULL;
|
||||
if (dn_aaa_address) {
|
||||
dn_aaa_address_local_nonprim = OpenAPI_ip_address_parseFromJSON(dn_aaa_address);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *redundant_pdu_session_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "redundantPduSessionInfo");
|
||||
|
||||
OpenAPI_redundant_pdu_session_information_t *redundant_pdu_session_info_local_nonprim = NULL;
|
||||
if (redundant_pdu_session_info) {
|
||||
redundant_pdu_session_info_local_nonprim = OpenAPI_redundant_pdu_session_information_parseFromJSON(redundant_pdu_session_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "ranTunnelInfo");
|
||||
|
||||
OpenAPI_qos_flow_tunnel_t *ran_tunnel_info_local_nonprim = NULL;
|
||||
if (ran_tunnel_info) {
|
||||
ran_tunnel_info_local_nonprim = OpenAPI_qos_flow_tunnel_parseFromJSON(ran_tunnel_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *add_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "addRanTunnelInfo");
|
||||
|
||||
|
|
@ -1074,14 +1074,14 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
|
||||
OpenAPI_list_add(add_ran_tunnel_infoList, add_ran_tunnel_infoItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *red_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "redRanTunnelInfo");
|
||||
|
||||
OpenAPI_qos_flow_tunnel_t *red_ran_tunnel_info_local_nonprim = NULL;
|
||||
if (red_ran_tunnel_info) {
|
||||
red_ran_tunnel_info_local_nonprim = OpenAPI_qos_flow_tunnel_parseFromJSON(red_ran_tunnel_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *add_red_ran_tunnel_info = cJSON_GetObjectItemCaseSensitive(sm_contextJSON, "addRedRanTunnelInfo");
|
||||
|
||||
|
|
@ -1104,7 +1104,7 @@ OpenAPI_sm_context_t *OpenAPI_sm_context_parseFromJSON(cJSON *sm_contextJSON)
|
|||
|
||||
OpenAPI_list_add(add_red_ran_tunnel_infoList, add_red_ran_tunnel_infoItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sm_context_local_var = OpenAPI_sm_context_create (
|
||||
pdu_session_id->valuedouble,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue