mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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/steering_container.c
Normal file
51
lib/sbi/openapi/model/steering_container.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "steering_container.h"
|
||||
|
||||
OpenAPI_steering_container_t *OpenAPI_steering_container_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_steering_container_t *steering_container_local_var = OpenAPI_malloc(sizeof(OpenAPI_steering_container_t));
|
||||
if (!steering_container_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return steering_container_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_steering_container_free(OpenAPI_steering_container_t *steering_container)
|
||||
{
|
||||
if (NULL == steering_container) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(steering_container);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_steering_container_convertToJSON(OpenAPI_steering_container_t *steering_container)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (steering_container == NULL) {
|
||||
ogs_error("OpenAPI_steering_container_convertToJSON() failed [SteeringContainer]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_steering_container_t *OpenAPI_steering_container_parseFromJSON(cJSON *steering_containerJSON)
|
||||
{
|
||||
OpenAPI_steering_container_t *steering_container_local_var = NULL;
|
||||
steering_container_local_var = OpenAPI_steering_container_create (
|
||||
);
|
||||
|
||||
return steering_container_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue