mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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
|
|
@ -8,17 +8,23 @@ OpenAPI_media_component_t *OpenAPI_media_component_create(
|
|||
char *af_app_id,
|
||||
OpenAPI_af_routing_requirement_t *af_rout_req,
|
||||
char *qos_reference,
|
||||
bool is_dis_ue_notif,
|
||||
int dis_ue_notif,
|
||||
OpenAPI_list_t *alt_ser_reqs,
|
||||
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_t *OpenAPI_media_component_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_t *tsn_qos,
|
||||
OpenAPI_tscai_input_container_t *tscai_input_dl,
|
||||
|
|
@ -49,17 +57,23 @@ OpenAPI_media_component_t *OpenAPI_media_component_create(
|
|||
media_component_local_var->af_app_id = af_app_id;
|
||||
media_component_local_var->af_rout_req = af_rout_req;
|
||||
media_component_local_var->qos_reference = qos_reference;
|
||||
media_component_local_var->is_dis_ue_notif = is_dis_ue_notif;
|
||||
media_component_local_var->dis_ue_notif = dis_ue_notif;
|
||||
media_component_local_var->alt_ser_reqs = alt_ser_reqs;
|
||||
media_component_local_var->is_cont_ver = is_cont_ver;
|
||||
media_component_local_var->cont_ver = cont_ver;
|
||||
media_component_local_var->codecs = codecs;
|
||||
media_component_local_var->is_des_max_latency = is_des_max_latency;
|
||||
media_component_local_var->des_max_latency = des_max_latency;
|
||||
media_component_local_var->is_des_max_loss = is_des_max_loss;
|
||||
media_component_local_var->des_max_loss = des_max_loss;
|
||||
media_component_local_var->flus_id = flus_id;
|
||||
media_component_local_var->f_status = f_status;
|
||||
media_component_local_var->mar_bw_dl = mar_bw_dl;
|
||||
media_component_local_var->mar_bw_ul = mar_bw_ul;
|
||||
media_component_local_var->is_max_packet_loss_rate_dl = is_max_packet_loss_rate_dl;
|
||||
media_component_local_var->max_packet_loss_rate_dl = max_packet_loss_rate_dl;
|
||||
media_component_local_var->is_max_packet_loss_rate_ul = is_max_packet_loss_rate_ul;
|
||||
media_component_local_var->max_packet_loss_rate_ul = max_packet_loss_rate_ul;
|
||||
media_component_local_var->max_supp_bw_dl = max_supp_bw_dl;
|
||||
media_component_local_var->max_supp_bw_ul = max_supp_bw_ul;
|
||||
|
|
@ -76,7 +90,9 @@ OpenAPI_media_component_t *OpenAPI_media_component_create(
|
|||
media_component_local_var->res_prio = res_prio;
|
||||
media_component_local_var->rr_bw = rr_bw;
|
||||
media_component_local_var->rs_bw = rs_bw;
|
||||
media_component_local_var->is_sharing_key_dl = is_sharing_key_dl;
|
||||
media_component_local_var->sharing_key_dl = sharing_key_dl;
|
||||
media_component_local_var->is_sharing_key_ul = is_sharing_key_ul;
|
||||
media_component_local_var->sharing_key_ul = sharing_key_ul;
|
||||
media_component_local_var->tsn_qos = tsn_qos;
|
||||
media_component_local_var->tscai_input_dl = tscai_input_dl;
|
||||
|
|
@ -162,7 +178,7 @@ cJSON *OpenAPI_media_component_convertToJSON(OpenAPI_media_component_t *media_co
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component->dis_ue_notif) {
|
||||
if (media_component->is_dis_ue_notif) {
|
||||
if (cJSON_AddBoolToObject(item, "disUeNotif", media_component->dis_ue_notif) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [dis_ue_notif]");
|
||||
goto end;
|
||||
|
|
@ -185,7 +201,7 @@ cJSON *OpenAPI_media_component_convertToJSON(OpenAPI_media_component_t *media_co
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component->cont_ver) {
|
||||
if (media_component->is_cont_ver) {
|
||||
if (cJSON_AddNumberToObject(item, "contVer", media_component->cont_ver) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [cont_ver]");
|
||||
goto end;
|
||||
|
|
@ -208,14 +224,14 @@ cJSON *OpenAPI_media_component_convertToJSON(OpenAPI_media_component_t *media_co
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component->des_max_latency) {
|
||||
if (media_component->is_des_max_latency) {
|
||||
if (cJSON_AddNumberToObject(item, "desMaxLatency", media_component->des_max_latency) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [des_max_latency]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component->des_max_loss) {
|
||||
if (media_component->is_des_max_loss) {
|
||||
if (cJSON_AddNumberToObject(item, "desMaxLoss", media_component->des_max_loss) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [des_max_loss]");
|
||||
goto end;
|
||||
|
|
@ -250,14 +266,14 @@ cJSON *OpenAPI_media_component_convertToJSON(OpenAPI_media_component_t *media_co
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component->max_packet_loss_rate_dl) {
|
||||
if (media_component->is_max_packet_loss_rate_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateDl", media_component->max_packet_loss_rate_dl) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component->max_packet_loss_rate_ul) {
|
||||
if (media_component->is_max_packet_loss_rate_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "maxPacketLossRateUl", media_component->max_packet_loss_rate_ul) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
|
|
@ -381,14 +397,14 @@ cJSON *OpenAPI_media_component_convertToJSON(OpenAPI_media_component_t *media_co
|
|||
}
|
||||
}
|
||||
|
||||
if (media_component->sharing_key_dl) {
|
||||
if (media_component->is_sharing_key_dl) {
|
||||
if (cJSON_AddNumberToObject(item, "sharingKeyDl", media_component->sharing_key_dl) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [sharing_key_dl]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (media_component->sharing_key_ul) {
|
||||
if (media_component->is_sharing_key_ul) {
|
||||
if (cJSON_AddNumberToObject(item, "sharingKeyUl", media_component->sharing_key_ul) == NULL) {
|
||||
ogs_error("OpenAPI_media_component_convertToJSON() failed [sharing_key_ul]");
|
||||
goto end;
|
||||
|
|
@ -443,7 +459,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
OpenAPI_media_component_t *media_component_local_var = NULL;
|
||||
cJSON *af_app_id = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "afAppId");
|
||||
|
||||
if (af_app_id) {
|
||||
if (af_app_id) {
|
||||
if (!cJSON_IsString(af_app_id)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [af_app_id]");
|
||||
goto end;
|
||||
|
|
@ -453,13 +469,13 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *af_rout_req = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "afRoutReq");
|
||||
|
||||
OpenAPI_af_routing_requirement_t *af_rout_req_local_nonprim = NULL;
|
||||
if (af_rout_req) {
|
||||
if (af_rout_req) {
|
||||
af_rout_req_local_nonprim = OpenAPI_af_routing_requirement_parseFromJSON(af_rout_req);
|
||||
}
|
||||
|
||||
cJSON *qos_reference = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "qosReference");
|
||||
|
||||
if (qos_reference) {
|
||||
if (qos_reference) {
|
||||
if (!cJSON_IsString(qos_reference)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [qos_reference]");
|
||||
goto end;
|
||||
|
|
@ -468,7 +484,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *dis_ue_notif = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "disUeNotif");
|
||||
|
||||
if (dis_ue_notif) {
|
||||
if (dis_ue_notif) {
|
||||
if (!cJSON_IsBool(dis_ue_notif)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [dis_ue_notif]");
|
||||
goto end;
|
||||
|
|
@ -478,7 +494,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *alt_ser_reqs = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_parseFromJSON() failed [alt_ser_reqs]");
|
||||
|
|
@ -492,12 +508,12 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(alt_ser_reqsList , ogs_strdup_or_assert(alt_ser_reqs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *cont_ver = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "contVer");
|
||||
|
||||
if (cont_ver) {
|
||||
if (cont_ver) {
|
||||
if (!cJSON_IsNumber(cont_ver)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [cont_ver]");
|
||||
goto end;
|
||||
|
|
@ -507,7 +523,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *codecs = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "codecs");
|
||||
|
||||
OpenAPI_list_t *codecsList;
|
||||
if (codecs) {
|
||||
if (codecs) {
|
||||
cJSON *codecs_local;
|
||||
if (!cJSON_IsArray(codecs)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [codecs]");
|
||||
|
|
@ -521,12 +537,12 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
goto end;
|
||||
}
|
||||
OpenAPI_list_add(codecsList , ogs_strdup_or_assert(codecs_local->valuestring));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cJSON *des_max_latency = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "desMaxLatency");
|
||||
|
||||
if (des_max_latency) {
|
||||
if (des_max_latency) {
|
||||
if (!cJSON_IsNumber(des_max_latency)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [des_max_latency]");
|
||||
goto end;
|
||||
|
|
@ -535,7 +551,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *des_max_loss = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "desMaxLoss");
|
||||
|
||||
if (des_max_loss) {
|
||||
if (des_max_loss) {
|
||||
if (!cJSON_IsNumber(des_max_loss)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [des_max_loss]");
|
||||
goto end;
|
||||
|
|
@ -544,7 +560,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *flus_id = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "flusId");
|
||||
|
||||
if (flus_id) {
|
||||
if (flus_id) {
|
||||
if (!cJSON_IsString(flus_id)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [flus_id]");
|
||||
goto end;
|
||||
|
|
@ -554,7 +570,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *f_status = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "fStatus");
|
||||
|
||||
OpenAPI_flow_status_e f_statusVariable;
|
||||
if (f_status) {
|
||||
if (f_status) {
|
||||
if (!cJSON_IsString(f_status)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [f_status]");
|
||||
goto end;
|
||||
|
|
@ -564,7 +580,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *mar_bw_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "marBwDl");
|
||||
|
||||
if (mar_bw_dl) {
|
||||
if (mar_bw_dl) {
|
||||
if (!cJSON_IsString(mar_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [mar_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -573,7 +589,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *mar_bw_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "marBwUl");
|
||||
|
||||
if (mar_bw_ul) {
|
||||
if (mar_bw_ul) {
|
||||
if (!cJSON_IsString(mar_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [mar_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -582,7 +598,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *max_packet_loss_rate_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_parseFromJSON() failed [max_packet_loss_rate_dl]");
|
||||
goto end;
|
||||
|
|
@ -591,7 +607,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *max_packet_loss_rate_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_parseFromJSON() failed [max_packet_loss_rate_ul]");
|
||||
goto end;
|
||||
|
|
@ -600,7 +616,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *max_supp_bw_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "maxSuppBwDl");
|
||||
|
||||
if (max_supp_bw_dl) {
|
||||
if (max_supp_bw_dl) {
|
||||
if (!cJSON_IsString(max_supp_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [max_supp_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -609,7 +625,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *max_supp_bw_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "maxSuppBwUl");
|
||||
|
||||
if (max_supp_bw_ul) {
|
||||
if (max_supp_bw_ul) {
|
||||
if (!cJSON_IsString(max_supp_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [max_supp_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -622,7 +638,6 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
goto end;
|
||||
}
|
||||
|
||||
|
||||
if (!cJSON_IsNumber(med_comp_n)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [med_comp_n]");
|
||||
goto end;
|
||||
|
|
@ -631,7 +646,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *med_sub_comps = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_parseFromJSON() failed [med_sub_comps]");
|
||||
|
|
@ -654,7 +669,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *med_type = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "medType");
|
||||
|
||||
OpenAPI_media_type_e med_typeVariable;
|
||||
if (med_type) {
|
||||
if (med_type) {
|
||||
if (!cJSON_IsString(med_type)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [med_type]");
|
||||
goto end;
|
||||
|
|
@ -664,7 +679,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *min_des_bw_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "minDesBwDl");
|
||||
|
||||
if (min_des_bw_dl) {
|
||||
if (min_des_bw_dl) {
|
||||
if (!cJSON_IsString(min_des_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [min_des_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -673,7 +688,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *min_des_bw_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "minDesBwUl");
|
||||
|
||||
if (min_des_bw_ul) {
|
||||
if (min_des_bw_ul) {
|
||||
if (!cJSON_IsString(min_des_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [min_des_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -682,7 +697,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *mir_bw_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "mirBwDl");
|
||||
|
||||
if (mir_bw_dl) {
|
||||
if (mir_bw_dl) {
|
||||
if (!cJSON_IsString(mir_bw_dl)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [mir_bw_dl]");
|
||||
goto end;
|
||||
|
|
@ -691,7 +706,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *mir_bw_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "mirBwUl");
|
||||
|
||||
if (mir_bw_ul) {
|
||||
if (mir_bw_ul) {
|
||||
if (!cJSON_IsString(mir_bw_ul)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [mir_bw_ul]");
|
||||
goto end;
|
||||
|
|
@ -701,7 +716,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *preempt_cap = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "preemptCap");
|
||||
|
||||
OpenAPI_preemption_capability_e preempt_capVariable;
|
||||
if (preempt_cap) {
|
||||
if (preempt_cap) {
|
||||
if (!cJSON_IsString(preempt_cap)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [preempt_cap]");
|
||||
goto end;
|
||||
|
|
@ -712,7 +727,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *preempt_vuln = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "preemptVuln");
|
||||
|
||||
OpenAPI_preemption_vulnerability_e preempt_vulnVariable;
|
||||
if (preempt_vuln) {
|
||||
if (preempt_vuln) {
|
||||
if (!cJSON_IsString(preempt_vuln)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [preempt_vuln]");
|
||||
goto end;
|
||||
|
|
@ -723,7 +738,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *prio_sharing_ind = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_parseFromJSON() failed [prio_sharing_ind]");
|
||||
goto end;
|
||||
|
|
@ -734,7 +749,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *res_prio = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "resPrio");
|
||||
|
||||
OpenAPI_reserv_priority_e res_prioVariable;
|
||||
if (res_prio) {
|
||||
if (res_prio) {
|
||||
if (!cJSON_IsString(res_prio)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [res_prio]");
|
||||
goto end;
|
||||
|
|
@ -744,7 +759,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *rr_bw = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "rrBw");
|
||||
|
||||
if (rr_bw) {
|
||||
if (rr_bw) {
|
||||
if (!cJSON_IsString(rr_bw)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [rr_bw]");
|
||||
goto end;
|
||||
|
|
@ -753,7 +768,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *rs_bw = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "rsBw");
|
||||
|
||||
if (rs_bw) {
|
||||
if (rs_bw) {
|
||||
if (!cJSON_IsString(rs_bw)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [rs_bw]");
|
||||
goto end;
|
||||
|
|
@ -762,7 +777,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *sharing_key_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "sharingKeyDl");
|
||||
|
||||
if (sharing_key_dl) {
|
||||
if (sharing_key_dl) {
|
||||
if (!cJSON_IsNumber(sharing_key_dl)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [sharing_key_dl]");
|
||||
goto end;
|
||||
|
|
@ -771,7 +786,7 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
|
||||
cJSON *sharing_key_ul = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "sharingKeyUl");
|
||||
|
||||
if (sharing_key_ul) {
|
||||
if (sharing_key_ul) {
|
||||
if (!cJSON_IsNumber(sharing_key_ul)) {
|
||||
ogs_error("OpenAPI_media_component_parseFromJSON() failed [sharing_key_ul]");
|
||||
goto end;
|
||||
|
|
@ -781,21 +796,21 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
cJSON *tsn_qos = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "tsnQos");
|
||||
|
||||
OpenAPI_tsn_qos_container_t *tsn_qos_local_nonprim = NULL;
|
||||
if (tsn_qos) {
|
||||
if (tsn_qos) {
|
||||
tsn_qos_local_nonprim = OpenAPI_tsn_qos_container_parseFromJSON(tsn_qos);
|
||||
}
|
||||
|
||||
cJSON *tscai_input_dl = cJSON_GetObjectItemCaseSensitive(media_componentJSON, "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_componentJSON, "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);
|
||||
}
|
||||
|
||||
|
|
@ -803,20 +818,27 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
af_app_id ? ogs_strdup_or_assert(af_app_id->valuestring) : NULL,
|
||||
af_rout_req ? af_rout_req_local_nonprim : NULL,
|
||||
qos_reference ? ogs_strdup_or_assert(qos_reference->valuestring) : NULL,
|
||||
dis_ue_notif ? true : false,
|
||||
dis_ue_notif ? dis_ue_notif->valueint : 0,
|
||||
alt_ser_reqs ? alt_ser_reqsList : NULL,
|
||||
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,
|
||||
|
|
@ -830,7 +852,9 @@ OpenAPI_media_component_t *OpenAPI_media_component_parseFromJSON(cJSON *media_co
|
|||
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