mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +00:00
Add AUSF, UDM, and UDR
This commit is contained in:
parent
0c0241d5e5
commit
72370ff0b2
1151 changed files with 140173 additions and 24799 deletions
51
lib/sbi/openapi/model/flow_direction.c
Normal file
51
lib/sbi/openapi/model/flow_direction.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "flow_direction.h"
|
||||
|
||||
OpenAPI_flow_direction_t *OpenAPI_flow_direction_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_flow_direction_t *flow_direction_local_var = OpenAPI_malloc(sizeof(OpenAPI_flow_direction_t));
|
||||
if (!flow_direction_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return flow_direction_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_flow_direction_free(OpenAPI_flow_direction_t *flow_direction)
|
||||
{
|
||||
if (NULL == flow_direction) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(flow_direction);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_flow_direction_convertToJSON(OpenAPI_flow_direction_t *flow_direction)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (flow_direction == NULL) {
|
||||
ogs_error("OpenAPI_flow_direction_convertToJSON() failed [FlowDirection]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_flow_direction_t *OpenAPI_flow_direction_parseFromJSON(cJSON *flow_directionJSON)
|
||||
{
|
||||
OpenAPI_flow_direction_t *flow_direction_local_var = NULL;
|
||||
flow_direction_local_var = OpenAPI_flow_direction_create (
|
||||
);
|
||||
|
||||
return flow_direction_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue