mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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
|
|
@ -5,7 +5,9 @@
|
|||
#include "mme_capabilities.h"
|
||||
|
||||
OpenAPI_mme_capabilities_t *OpenAPI_mme_capabilities_create(
|
||||
bool is_non_ip_supported,
|
||||
int non_ip_supported,
|
||||
bool is_ethernet_supported,
|
||||
int ethernet_supported
|
||||
)
|
||||
{
|
||||
|
|
@ -13,7 +15,9 @@ OpenAPI_mme_capabilities_t *OpenAPI_mme_capabilities_create(
|
|||
if (!mme_capabilities_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
mme_capabilities_local_var->is_non_ip_supported = is_non_ip_supported;
|
||||
mme_capabilities_local_var->non_ip_supported = non_ip_supported;
|
||||
mme_capabilities_local_var->is_ethernet_supported = is_ethernet_supported;
|
||||
mme_capabilities_local_var->ethernet_supported = ethernet_supported;
|
||||
|
||||
return mme_capabilities_local_var;
|
||||
|
|
@ -38,14 +42,14 @@ cJSON *OpenAPI_mme_capabilities_convertToJSON(OpenAPI_mme_capabilities_t *mme_ca
|
|||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
if (mme_capabilities->non_ip_supported) {
|
||||
if (mme_capabilities->is_non_ip_supported) {
|
||||
if (cJSON_AddBoolToObject(item, "nonIpSupported", mme_capabilities->non_ip_supported) == NULL) {
|
||||
ogs_error("OpenAPI_mme_capabilities_convertToJSON() failed [non_ip_supported]");
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
if (mme_capabilities->ethernet_supported) {
|
||||
if (mme_capabilities->is_ethernet_supported) {
|
||||
if (cJSON_AddBoolToObject(item, "ethernetSupported", mme_capabilities->ethernet_supported) == NULL) {
|
||||
ogs_error("OpenAPI_mme_capabilities_convertToJSON() failed [ethernet_supported]");
|
||||
goto end;
|
||||
|
|
@ -61,7 +65,7 @@ OpenAPI_mme_capabilities_t *OpenAPI_mme_capabilities_parseFromJSON(cJSON *mme_ca
|
|||
OpenAPI_mme_capabilities_t *mme_capabilities_local_var = NULL;
|
||||
cJSON *non_ip_supported = cJSON_GetObjectItemCaseSensitive(mme_capabilitiesJSON, "nonIpSupported");
|
||||
|
||||
if (non_ip_supported) {
|
||||
if (non_ip_supported) {
|
||||
if (!cJSON_IsBool(non_ip_supported)) {
|
||||
ogs_error("OpenAPI_mme_capabilities_parseFromJSON() failed [non_ip_supported]");
|
||||
goto end;
|
||||
|
|
@ -70,7 +74,7 @@ OpenAPI_mme_capabilities_t *OpenAPI_mme_capabilities_parseFromJSON(cJSON *mme_ca
|
|||
|
||||
cJSON *ethernet_supported = cJSON_GetObjectItemCaseSensitive(mme_capabilitiesJSON, "ethernetSupported");
|
||||
|
||||
if (ethernet_supported) {
|
||||
if (ethernet_supported) {
|
||||
if (!cJSON_IsBool(ethernet_supported)) {
|
||||
ogs_error("OpenAPI_mme_capabilities_parseFromJSON() failed [ethernet_supported]");
|
||||
goto end;
|
||||
|
|
@ -78,7 +82,9 @@ OpenAPI_mme_capabilities_t *OpenAPI_mme_capabilities_parseFromJSON(cJSON *mme_ca
|
|||
}
|
||||
|
||||
mme_capabilities_local_var = OpenAPI_mme_capabilities_create (
|
||||
non_ip_supported ? true : false,
|
||||
non_ip_supported ? non_ip_supported->valueint : 0,
|
||||
ethernet_supported ? true : false,
|
||||
ethernet_supported ? ethernet_supported->valueint : 0
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue