mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +00:00
Add only one 5GC scenario (call-flow)
This commit is contained in:
parent
20008b6a13
commit
dbee687a75
1415 changed files with 86635 additions and 5877 deletions
85
lib/sbi/openapi/model/mo_exception_data_flag.c
Normal file
85
lib/sbi/openapi/model/mo_exception_data_flag.c
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "mo_exception_data_flag.h"
|
||||
|
||||
OpenAPI_mo_exception_data_flag_t *OpenAPI_mo_exception_data_flag_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_mo_exception_data_flag_t *mo_exception_data_flag_local_var = OpenAPI_malloc(sizeof(OpenAPI_mo_exception_data_flag_t));
|
||||
if (!mo_exception_data_flag_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return mo_exception_data_flag_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_mo_exception_data_flag_free(OpenAPI_mo_exception_data_flag_t *mo_exception_data_flag)
|
||||
{
|
||||
if (NULL == mo_exception_data_flag) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(mo_exception_data_flag);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_mo_exception_data_flag_convertToJSON(OpenAPI_mo_exception_data_flag_t *mo_exception_data_flag)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (mo_exception_data_flag == NULL) {
|
||||
ogs_error("OpenAPI_mo_exception_data_flag_convertToJSON() failed [MoExceptionDataFlag]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_mo_exception_data_flag_t *OpenAPI_mo_exception_data_flag_parseFromJSON(cJSON *mo_exception_data_flagJSON)
|
||||
{
|
||||
OpenAPI_mo_exception_data_flag_t *mo_exception_data_flag_local_var = NULL;
|
||||
mo_exception_data_flag_local_var = OpenAPI_mo_exception_data_flag_create (
|
||||
);
|
||||
|
||||
return mo_exception_data_flag_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
OpenAPI_mo_exception_data_flag_t *OpenAPI_mo_exception_data_flag_copy(OpenAPI_mo_exception_data_flag_t *dst, OpenAPI_mo_exception_data_flag_t *src)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
char *content = NULL;
|
||||
|
||||
ogs_assert(src);
|
||||
item = OpenAPI_mo_exception_data_flag_convertToJSON(src);
|
||||
if (!item) {
|
||||
ogs_error("OpenAPI_mo_exception_data_flag_convertToJSON() failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
content = cJSON_Print(item);
|
||||
cJSON_Delete(item);
|
||||
|
||||
if (!content) {
|
||||
ogs_error("cJSON_Print() failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_Parse(content);
|
||||
ogs_free(content);
|
||||
if (!item) {
|
||||
ogs_error("cJSON_Parse() failed");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
OpenAPI_mo_exception_data_flag_free(dst);
|
||||
dst = OpenAPI_mo_exception_data_flag_parseFromJSON(item);
|
||||
cJSON_Delete(item);
|
||||
|
||||
return dst;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue