mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 07:08:11 +00:00
comply with coding standard
This commit is contained in:
parent
f278d58a69
commit
2471b1b53d
562 changed files with 3332 additions and 3332 deletions
|
|
@ -587,7 +587,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_session_rule_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(sess_rulesList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pcc_rules = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "pccRules");
|
||||
|
||||
|
|
@ -610,7 +610,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_pcc_rule_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(pcc_rulesList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pcscf_rest_indication = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "pcscfRestIndication");
|
||||
|
||||
|
|
@ -619,7 +619,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [pcscf_rest_indication]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *qos_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosDecs");
|
||||
|
||||
|
|
@ -642,7 +642,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_qos_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(qos_decsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *chg_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "chgDecs");
|
||||
|
||||
|
|
@ -665,14 +665,14 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_charging_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(chg_decsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *charging_info = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "chargingInfo");
|
||||
|
||||
OpenAPI_charging_information_t *charging_info_local_nonprim = NULL;
|
||||
if (charging_info) {
|
||||
charging_info_local_nonprim = OpenAPI_charging_information_parseFromJSON(charging_info);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *traff_cont_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "traffContDecs");
|
||||
|
||||
|
|
@ -695,7 +695,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_traffic_control_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(traff_cont_decsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *um_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "umDecs");
|
||||
|
||||
|
|
@ -718,7 +718,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_usage_monitoring_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(um_decsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *qos_chars = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosChars");
|
||||
|
||||
|
|
@ -741,7 +741,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_qos_characteristics_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(qos_charsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *qos_mon_decs = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosMonDecs");
|
||||
|
||||
|
|
@ -764,7 +764,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_qos_monitoring_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(qos_mon_decsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *reflective_qo_s_timer = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "reflectiveQoSTimer");
|
||||
|
||||
|
|
@ -773,7 +773,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [reflective_qo_s_timer]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *conds = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "conds");
|
||||
|
||||
|
|
@ -796,7 +796,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_condition_data_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(condsList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *revalidation_time = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "revalidationTime");
|
||||
|
||||
|
|
@ -805,7 +805,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [revalidation_time]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *offline = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "offline");
|
||||
|
||||
|
|
@ -814,7 +814,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [offline]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *online = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "online");
|
||||
|
||||
|
|
@ -823,7 +823,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [online]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *policy_ctrl_req_triggers = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "policyCtrlReqTriggers");
|
||||
|
||||
|
|
@ -845,7 +845,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
|
||||
OpenAPI_list_add(policy_ctrl_req_triggersList, (void *)OpenAPI_policy_control_request_trigger_FromString(policy_ctrl_req_triggers_local_nonprimitive->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *last_req_rule_data = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "lastReqRuleData");
|
||||
|
||||
|
|
@ -868,14 +868,14 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
|
||||
OpenAPI_list_add(last_req_rule_dataList, last_req_rule_dataItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *last_req_usage_data = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "lastReqUsageData");
|
||||
|
||||
OpenAPI_requested_usage_data_t *last_req_usage_data_local_nonprim = NULL;
|
||||
if (last_req_usage_data) {
|
||||
last_req_usage_data_local_nonprim = OpenAPI_requested_usage_data_parseFromJSON(last_req_usage_data);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *pra_infos = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "praInfos");
|
||||
|
||||
|
|
@ -898,7 +898,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
localMapObject->string, OpenAPI_presence_info_rm_parseFromJSON(localMapObject));
|
||||
OpenAPI_list_add(pra_infosList , localMapKeyPair);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ipv4_index = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "ipv4Index");
|
||||
|
||||
|
|
@ -907,7 +907,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [ipv4_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *ipv6_index = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "ipv6Index");
|
||||
|
||||
|
|
@ -916,7 +916,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [ipv6_index]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *qos_flow_usage = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "qosFlowUsage");
|
||||
|
||||
|
|
@ -927,7 +927,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
goto end;
|
||||
}
|
||||
qos_flow_usageVariable = OpenAPI_qos_flow_usage_FromString(qos_flow_usage->valuestring);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *rel_cause = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "relCause");
|
||||
|
||||
|
|
@ -938,7 +938,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
goto end;
|
||||
}
|
||||
rel_causeVariable = OpenAPI_sm_policy_association_release_cause_FromString(rel_cause->valuestring);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *supp_feat = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "suppFeat");
|
||||
|
||||
|
|
@ -947,21 +947,21 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [supp_feat]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tsn_bridge_man_cont = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "tsnBridgeManCont");
|
||||
|
||||
OpenAPI_bridge_management_container_t *tsn_bridge_man_cont_local_nonprim = NULL;
|
||||
if (tsn_bridge_man_cont) {
|
||||
tsn_bridge_man_cont_local_nonprim = OpenAPI_bridge_management_container_parseFromJSON(tsn_bridge_man_cont);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_dstt = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "tsnPortManContDstt");
|
||||
|
||||
OpenAPI_port_management_container_t *tsn_port_man_cont_dstt_local_nonprim = NULL;
|
||||
if (tsn_port_man_cont_dstt) {
|
||||
tsn_port_man_cont_dstt_local_nonprim = OpenAPI_port_management_container_parseFromJSON(tsn_port_man_cont_dstt);
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *tsn_port_man_cont_nwtts = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "tsnPortManContNwtts");
|
||||
|
||||
|
|
@ -984,7 +984,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
|
||||
OpenAPI_list_add(tsn_port_man_cont_nwttsList, tsn_port_man_cont_nwttsItem);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *red_sess_indication = cJSON_GetObjectItemCaseSensitive(sm_policy_decisionJSON, "redSessIndication");
|
||||
|
||||
|
|
@ -993,7 +993,7 @@ OpenAPI_sm_policy_decision_t *OpenAPI_sm_policy_decision_parseFromJSON(cJSON *sm
|
|||
ogs_error("OpenAPI_sm_policy_decision_parseFromJSON() failed [red_sess_indication]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sm_policy_decision_local_var = OpenAPI_sm_policy_decision_create (
|
||||
sess_rules ? sess_rulesList : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue