mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +00:00
SBI updated
- openapi-generator version 5.2.0 - add priority/capacity/load in NFProfile/NFService - add AllowedNfTypes in NFProfile/NFService
This commit is contained in:
parent
1326fc85dc
commit
039b9d0aaa
930 changed files with 7387 additions and 5434 deletions
|
|
@ -9,16 +9,22 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
|
|||
OpenAPI_af_routing_requirement_rm_t *af_rout_req,
|
||||
char *qos_reference,
|
||||
OpenAPI_list_t *alt_ser_reqs,
|
||||
bool is_dis_ue_notif,
|
||||
int dis_ue_notif,
|
||||
bool is_cont_ver,
|
||||
int cont_ver,
|
||||
OpenAPI_list_t *codecs,
|
||||
bool is_des_max_latency,
|
||||
float des_max_latency,
|
||||
bool is_des_max_loss,
|
||||
float des_max_loss,
|
||||
char *flus_id,
|
||||
OpenAPI_flow_status_e f_status,
|
||||
char *mar_bw_dl,
|
||||
char *mar_bw_ul,
|
||||
bool is_max_packet_loss_rate_dl,
|
||||
int max_packet_loss_rate_dl,
|
||||
bool is_max_packet_loss_rate_ul,
|
||||
int max_packet_loss_rate_ul,
|
||||
char *max_supp_bw_dl,
|
||||
char *max_supp_bw_ul,
|
||||
|
|
@ -35,7 +41,9 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
|
|||
OpenAPI_reserv_priority_e res_prio,
|
||||
char *rr_bw,
|
||||
char *rs_bw,
|
||||
bool is_sharing_key_dl,
|
||||
int sharing_key_dl,
|
||||
bool is_sharing_key_ul,
|
||||
int sharing_key_ul,
|
||||
OpenAPI_tsn_qos_container_rm_t *tsn_qos,
|
||||
OpenAPI_tscai_input_container_t *tscai_input_dl,
|
||||
|
|
@ -50,16 +58,22 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
|
|||
media_component_rm_local_var->af_rout_req = af_rout_req;
|
||||
media_component_rm_local_var->qos_reference = qos_reference;
|
||||
media_component_rm_local_var->alt_ser_reqs = alt_ser_reqs;
|
||||
media_component_rm_local_var->is_dis_ue_notif = is_dis_ue_notif;
|
||||
media_component_rm_local_var->dis_ue_notif = dis_ue_notif;
|
||||
media_component_rm_local_var->is_cont_ver = is_cont_ver;
|
||||
media_component_rm_local_var->cont_ver = cont_ver;
|
||||
media_component_rm_local_var->codecs = codecs;
|
||||
media_component_rm_local_var->is_des_max_latency = is_des_max_latency;
|
||||
media_component_rm_local_var->des_max_latency = des_max_latency;
|
||||
media_component_rm_local_var->is_des_max_loss = is_des_max_loss;
|
||||
media_component_rm_local_var->des_max_loss = des_max_loss;
|
||||
media_component_rm_local_var->flus_id = flus_id;
|
||||
media_component_rm_local_var->f_status = f_status;
|
||||
media_component_rm_local_var->mar_bw_dl = mar_bw_dl;
|
||||
media_component_rm_local_var->mar_bw_ul = mar_bw_ul;
|
||||
media_component_rm_local_var->is_max_packet_loss_rate_dl = is_max_packet_loss_rate_dl;
|
||||
media_component_rm_local_var->max_packet_loss_rate_dl = max_packet_loss_rate_dl;
|
||||
media_component_rm_local_var->is_max_packet_loss_rate_ul = is_max_packet_loss_rate_ul;
|
||||
media_component_rm_local_var->max_packet_loss_rate_ul = max_packet_loss_rate_ul;
|
||||
media_component_rm_local_var->max_supp_bw_dl = max_supp_bw_dl;
|
||||
media_component_rm_local_var->max_supp_bw_ul = max_supp_bw_ul;
|
||||
|
|
@ -76,7 +90,9 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_create(
|
|||
media_component_rm_local_var->res_prio = res_prio;
|
||||
media_component_rm_local_var->rr_bw = rr_bw;
|
||||
media_component_rm_local_var->rs_bw = rs_bw;
|
||||
media_component_rm_local_var->is_sharing_key_dl = is_sharing_key_dl;
|
||||
media_component_rm_local_var->sharing_key_dl = sharing_key_dl;
|
||||
media_component_rm_local_var->is_sharing_key_ul = is_sharing_key_ul;
|
||||
media_component_rm_local_var->sharing_key_ul = sharing_key_ul;
|
||||
media_component_rm_local_var->tsn_qos = tsn_qos;
|
||||
media_component_rm_local_var->tscai_input_dl = tscai_input_dl;
|
||||
|
|
@ -180,14 +196,14 @@ cJSON *OpenAPI_media_component_rm_convertToJSON(OpenAPI_media_component_rm_t *me
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->dis_ue_notif) {
|
||||
if (media_component_rm->is_dis_ue_notif) {
|
||||
if (cJSON_AddBoolToObject(item, "disUeNotif", media_component_rm->dis_ue_notif) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [dis_ue_notif]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->cont_ver) {
|
||||
if (media_component_rm->is_cont_ver) {
|
||||
if (cJSON_AddNumberToObject(item, "contVer", media_component_rm->cont_ver) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [cont_ver]");
|
||||
goto end;
|
||||
|
|
@ -210,14 +226,14 @@ cJSON *OpenAPI_media_component_rm_convertToJSON(OpenAPI_media_component_rm_t *me
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->des_max_latency) {
|
||||
if (media_component_rm->is_des_max_latency) {
|
||||
if (cJSON_AddNumberToObject(item, "desMaxLatency", media_component_rm->des_max_latency) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [des_max_latency]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->des_max_loss) {
|
||||
if (media_component_rm->is_des_max_loss) {
|
||||
if (cJSON_AddNumberToObject(item, "desMaxLoss", media_component_rm->des_max_loss) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [des_max_loss]");
|
||||
goto end;
|
||||
|
|
@ -252,14 +268,14 @@ cJSON *OpenAPI_media_component_rm_convertToJSON(OpenAPI_media_component_rm_t *me
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->max_packet_loss_rate_dl) {
|
||||
if (media_component_rm->is_max_packet_loss_rate_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateDl", media_component_rm->max_packet_loss_rate_dl) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->max_packet_loss_rate_ul) {
|
||||
if (media_component_rm->is_max_packet_loss_rate_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateUl", media_component_rm->max_packet_loss_rate_ul) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
|
|
@ -395,14 +411,14 @@ cJSON *OpenAPI_media_component_rm_convertToJSON(OpenAPI_media_component_rm_t *me
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->sharing_key_dl) {
|
||||
if (media_component_rm->is_sharing_key_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "sharingKeyDl", media_component_rm->sharing_key_dl) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [sharing_key_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component_rm->sharing_key_ul) {
|
||||
if (media_component_rm->is_sharing_key_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "sharingKeyUl", media_component_rm->sharing_key_ul) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_rm_convertToJSON() failed [sharing_key_ul]");
|
||||
goto end;
|
||||
|
|
@ -457,7 +473,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
OpenAPI_media_component_rm_t *media_component_rm_local_var = NULL;
|
||||
cJSON *af_app_id = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "afAppId");
|
||||
|
||||
if (af_app_id) {
|
||||
if (af_app_id) {
|
||||
if (!cJSON_IsString(af_app_id)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [af_app_id]");
|
||||
goto end;
|
||||
|
|
@ -467,13 +483,13 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *af_rout_req = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "afRoutReq");
|
||||
|
||||
OpenAPI_af_routing_requirement_rm_t *af_rout_req_local_nonprim = NULL;
|
||||
if (af_rout_req) {
|
||||
if (af_rout_req) {
|
||||
af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_rm_parseFromJSON(af_rout_req);
|
||||
}
|
||||
|
||||
cJSON *qos_reference = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "qosReference");
|
||||
|
||||
if (qos_reference) {
|
||||
if (qos_reference) {
|
||||
if (!cJSON_IsString(qos_reference)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [qos_reference]");
|
||||
goto end;
|
||||
|
|
@ -483,7 +499,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *alt_ser_reqs = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "altSerReqs");
|
||||
|
||||
OpenAPI_list_t *alt_ser_reqsList;
|
||||
if (alt_ser_reqs) {
|
||||
if (alt_ser_reqs) {
|
||||
cJSON *alt_ser_reqs_local;
|
||||
if (!cJSON_IsArray(alt_ser_reqs)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [alt_ser_reqs]");
|
||||
|
|
@ -497,12 +513,12 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(alt_ser_reqsList , ogs_strdup_or_assert(alt_ser_reqs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *dis_ue_notif = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "disUeNotif");
|
||||
|
||||
if (dis_ue_notif) {
|
||||
if (dis_ue_notif) {
|
||||
if (!cJSON_IsBool(dis_ue_notif)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [dis_ue_notif]");
|
||||
goto end;
|
||||
|
|
@ -511,7 +527,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *cont_ver = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "contVer");
|
||||
|
||||
if (cont_ver) {
|
||||
if (cont_ver) {
|
||||
if (!cJSON_IsNumber(cont_ver)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [cont_ver]");
|
||||
goto end;
|
||||
|
|
@ -521,7 +537,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *codecs = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "codecs");
|
||||
|
||||
OpenAPI_list_t *codecsList;
|
||||
if (codecs) {
|
||||
if (codecs) {
|
||||
cJSON *codecs_local;
|
||||
if (!cJSON_IsArray(codecs)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [codecs]");
|
||||
|
|
@ -535,12 +551,12 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(codecsList , ogs_strdup_or_assert(codecs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *des_max_latency = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "desMaxLatency");
|
||||
|
||||
if (des_max_latency) {
|
||||
if (des_max_latency) {
|
||||
if (!cJSON_IsNumber(des_max_latency)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [des_max_latency]");
|
||||
goto end;
|
||||
|
|
@ -549,7 +565,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *des_max_loss = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "desMaxLoss");
|
||||
|
||||
if (des_max_loss) {
|
||||
if (des_max_loss) {
|
||||
if (!cJSON_IsNumber(des_max_loss)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [des_max_loss]");
|
||||
goto end;
|
||||
|
|
@ -558,7 +574,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *flus_id = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "flusId");
|
||||
|
||||
if (flus_id) {
|
||||
if (flus_id) {
|
||||
if (!cJSON_IsString(flus_id)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [flus_id]");
|
||||
goto end;
|
||||
|
|
@ -568,7 +584,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *f_status = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "fStatus");
|
||||
|
||||
OpenAPI_flow_status_e f_statusVariable;
|
||||
if (f_status) {
|
||||
if (f_status) {
|
||||
if (!cJSON_IsString(f_status)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [f_status]");
|
||||
goto end;
|
||||
|
|
@ -578,7 +594,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *mar_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "marBwDl");
|
||||
|
||||
if (mar_bw_dl) {
|
||||
if (mar_bw_dl) {
|
||||
if (!cJSON_IsString(mar_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [mar_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -587,7 +603,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *mar_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "marBwUl");
|
||||
|
||||
if (mar_bw_ul) {
|
||||
if (mar_bw_ul) {
|
||||
if (!cJSON_IsString(mar_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [mar_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -596,7 +612,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxPacketLossRateDl");
|
||||
|
||||
if (max_packet_loss_rate_dl) {
|
||||
if (max_packet_loss_rate_dl) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
|
|
@ -605,7 +621,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxPacketLossRateUl");
|
||||
|
||||
if (max_packet_loss_rate_ul) {
|
||||
if (max_packet_loss_rate_ul) {
|
||||
if (!cJSON_IsNumber(max_packet_loss_rate_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
|
|
@ -614,7 +630,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *max_supp_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxSuppBwDl");
|
||||
|
||||
if (max_supp_bw_dl) {
|
||||
if (max_supp_bw_dl) {
|
||||
if (!cJSON_IsString(max_supp_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [max_supp_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -623,7 +639,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *max_supp_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "maxSuppBwUl");
|
||||
|
||||
if (max_supp_bw_ul) {
|
||||
if (max_supp_bw_ul) {
|
||||
if (!cJSON_IsString(max_supp_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [max_supp_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -636,7 +652,6 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(med_comp_n)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [med_comp_n]");
|
||||
goto end;
|
||||
|
|
@ -645,7 +660,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *med_sub_comps = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "medSubComps");
|
||||
|
||||
OpenAPI_list_t *med_sub_compsList;
|
||||
if (med_sub_comps) {
|
||||
if (med_sub_comps) {
|
||||
cJSON *med_sub_comps_local_map;
|
||||
if (!cJSON_IsObject(med_sub_comps)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [med_sub_comps]");
|
||||
|
|
@ -668,7 +683,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *med_type = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "medType");
|
||||
|
||||
OpenAPI_media_type_e med_typeVariable;
|
||||
if (med_type) {
|
||||
if (med_type) {
|
||||
if (!cJSON_IsString(med_type)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [med_type]");
|
||||
goto end;
|
||||
|
|
@ -678,7 +693,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *min_des_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "minDesBwDl");
|
||||
|
||||
if (min_des_bw_dl) {
|
||||
if (min_des_bw_dl) {
|
||||
if (!cJSON_IsString(min_des_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [min_des_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -687,7 +702,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *min_des_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "minDesBwUl");
|
||||
|
||||
if (min_des_bw_ul) {
|
||||
if (min_des_bw_ul) {
|
||||
if (!cJSON_IsString(min_des_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [min_des_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -696,7 +711,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *mir_bw_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "mirBwDl");
|
||||
|
||||
if (mir_bw_dl) {
|
||||
if (mir_bw_dl) {
|
||||
if (!cJSON_IsString(mir_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [mir_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -705,7 +720,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *mir_bw_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "mirBwUl");
|
||||
|
||||
if (mir_bw_ul) {
|
||||
if (mir_bw_ul) {
|
||||
if (!cJSON_IsString(mir_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [mir_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -715,21 +730,21 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *preempt_cap = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "preemptCap");
|
||||
|
||||
OpenAPI_preemption_capability_rm_t *preempt_cap_local_nonprim = NULL;
|
||||
if (preempt_cap) {
|
||||
if (preempt_cap) {
|
||||
preempt_cap_local_nonprim = OpenAPI_preemption_capability_rm_parseFromJSON(preempt_cap);
|
||||
}
|
||||
|
||||
cJSON *preempt_vuln = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "preemptVuln");
|
||||
|
||||
OpenAPI_preemption_vulnerability_rm_t *preempt_vuln_local_nonprim = NULL;
|
||||
if (preempt_vuln) {
|
||||
if (preempt_vuln) {
|
||||
preempt_vuln_local_nonprim = OpenAPI_preemption_vulnerability_rm_parseFromJSON(preempt_vuln);
|
||||
}
|
||||
|
||||
cJSON *prio_sharing_ind = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "prioSharingInd");
|
||||
|
||||
OpenAPI_priority_sharing_indicator_e prio_sharing_indVariable;
|
||||
if (prio_sharing_ind) {
|
||||
if (prio_sharing_ind) {
|
||||
if (!cJSON_IsString(prio_sharing_ind)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [prio_sharing_ind]");
|
||||
goto end;
|
||||
|
|
@ -740,7 +755,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *res_prio = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "resPrio");
|
||||
|
||||
OpenAPI_reserv_priority_e res_prioVariable;
|
||||
if (res_prio) {
|
||||
if (res_prio) {
|
||||
if (!cJSON_IsString(res_prio)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [res_prio]");
|
||||
goto end;
|
||||
|
|
@ -750,7 +765,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *rr_bw = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "rrBw");
|
||||
|
||||
if (rr_bw) {
|
||||
if (rr_bw) {
|
||||
if (!cJSON_IsString(rr_bw)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [rr_bw]");
|
||||
goto end;
|
||||
|
|
@ -759,7 +774,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *rs_bw = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "rsBw");
|
||||
|
||||
if (rs_bw) {
|
||||
if (rs_bw) {
|
||||
if (!cJSON_IsString(rs_bw)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [rs_bw]");
|
||||
goto end;
|
||||
|
|
@ -768,7 +783,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *sharing_key_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "sharingKeyDl");
|
||||
|
||||
if (sharing_key_dl) {
|
||||
if (sharing_key_dl) {
|
||||
if (!cJSON_IsNumber(sharing_key_dl)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [sharing_key_dl]");
|
||||
goto end;
|
||||
|
|
@ -777,7 +792,7 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
|
||||
cJSON *sharing_key_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "sharingKeyUl");
|
||||
|
||||
if (sharing_key_ul) {
|
||||
if (sharing_key_ul) {
|
||||
if (!cJSON_IsNumber(sharing_key_ul)) {
|
||||
ogs_error("OpenAPI_media_component_rm_parseFromJSON() failed [sharing_key_ul]");
|
||||
goto end;
|
||||
|
|
@ -787,21 +802,21 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
cJSON *tsn_qos = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tsnQos");
|
||||
|
||||
OpenAPI_tsn_qos_container_rm_t *tsn_qos_local_nonprim = NULL;
|
||||
if (tsn_qos) {
|
||||
if (tsn_qos) {
|
||||
tsn_qos_local_nonprim = OpenAPI_tsn_qos_container_rm_parseFromJSON(tsn_qos);
|
||||
}
|
||||
|
||||
cJSON *tscai_input_dl = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tscaiInputDl");
|
||||
|
||||
OpenAPI_tscai_input_container_t *tscai_input_dl_local_nonprim = NULL;
|
||||
if (tscai_input_dl) {
|
||||
if (tscai_input_dl) {
|
||||
tscai_input_dl_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_dl);
|
||||
}
|
||||
|
||||
cJSON *tscai_input_ul = cJSON_GetObjectItemCaseSensitive(media_component_rmJSON, "tscaiInputUl");
|
||||
|
||||
OpenAPI_tscai_input_container_t *tscai_input_ul_local_nonprim = NULL;
|
||||
if (tscai_input_ul) {
|
||||
if (tscai_input_ul) {
|
||||
tscai_input_ul_local_nonprim = OpenAPI_tscai_input_container_parseFromJSON(tscai_input_ul);
|
||||
}
|
||||
|
||||
|
|
@ -810,19 +825,26 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
af_rout_req ? af_rout_req_local_nonprim : NULL,
|
||||
qos_reference ? ogs_strdup_or_assert(qos_reference->valuestring) : NULL,
|
||||
alt_ser_reqs ? alt_ser_reqsList : NULL,
|
||||
dis_ue_notif ? true : false,
|
||||
dis_ue_notif ? dis_ue_notif->valueint : 0,
|
||||
cont_ver ? true : false,
|
||||
cont_ver ? cont_ver->valuedouble : 0,
|
||||
codecs ? codecsList : NULL,
|
||||
des_max_latency ? true : false,
|
||||
des_max_latency ? des_max_latency->valuedouble : 0,
|
||||
des_max_loss ? true : false,
|
||||
des_max_loss ? des_max_loss->valuedouble : 0,
|
||||
flus_id ? ogs_strdup_or_assert(flus_id->valuestring) : NULL,
|
||||
f_status ? f_statusVariable : 0,
|
||||
mar_bw_dl ? ogs_strdup_or_assert(mar_bw_dl->valuestring) : NULL,
|
||||
mar_bw_ul ? ogs_strdup_or_assert(mar_bw_ul->valuestring) : NULL,
|
||||
max_packet_loss_rate_dl ? true : false,
|
||||
max_packet_loss_rate_dl ? max_packet_loss_rate_dl->valuedouble : 0,
|
||||
max_packet_loss_rate_ul ? true : false,
|
||||
max_packet_loss_rate_ul ? max_packet_loss_rate_ul->valuedouble : 0,
|
||||
max_supp_bw_dl ? ogs_strdup_or_assert(max_supp_bw_dl->valuestring) : NULL,
|
||||
max_supp_bw_ul ? ogs_strdup_or_assert(max_supp_bw_ul->valuestring) : NULL,
|
||||
|
||||
med_comp_n->valuedouble,
|
||||
med_sub_comps ? med_sub_compsList : NULL,
|
||||
med_type ? med_typeVariable : 0,
|
||||
|
|
@ -836,7 +858,9 @@ OpenAPI_media_component_rm_t *OpenAPI_media_component_rm_parseFromJSON(cJSON *me
|
|||
res_prio ? res_prioVariable : 0,
|
||||
rr_bw ? ogs_strdup_or_assert(rr_bw->valuestring) : NULL,
|
||||
rs_bw ? ogs_strdup_or_assert(rs_bw->valuestring) : NULL,
|
||||
sharing_key_dl ? true : false,
|
||||
sharing_key_dl ? sharing_key_dl->valuedouble : 0,
|
||||
sharing_key_ul ? true : false,
|
||||
sharing_key_ul ? sharing_key_ul->valuedouble : 0,
|
||||
tsn_qos ? tsn_qos_local_nonprim : NULL,
|
||||
tscai_input_dl ? tscai_input_dl_local_nonprim : NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue