mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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/context_data_set_name.c
Normal file
51
lib/sbi/openapi/model/context_data_set_name.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "context_data_set_name.h"
|
||||
|
||||
OpenAPI_context_data_set_name_t *OpenAPI_context_data_set_name_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_context_data_set_name_t *context_data_set_name_local_var = OpenAPI_malloc(sizeof(OpenAPI_context_data_set_name_t));
|
||||
if (!context_data_set_name_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return context_data_set_name_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_context_data_set_name_free(OpenAPI_context_data_set_name_t *context_data_set_name)
|
||||
{
|
||||
if (NULL == context_data_set_name) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(context_data_set_name);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_context_data_set_name_convertToJSON(OpenAPI_context_data_set_name_t *context_data_set_name)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (context_data_set_name == NULL) {
|
||||
ogs_error("OpenAPI_context_data_set_name_convertToJSON() failed [ContextDataSetName]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_context_data_set_name_t *OpenAPI_context_data_set_name_parseFromJSON(cJSON *context_data_set_nameJSON)
|
||||
{
|
||||
OpenAPI_context_data_set_name_t *context_data_set_name_local_var = NULL;
|
||||
context_data_set_name_local_var = OpenAPI_context_data_set_name_create (
|
||||
);
|
||||
|
||||
return context_data_set_name_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue