mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
Added NRF
This commit is contained in:
parent
46f20cc979
commit
d0673e3066
397 changed files with 85455 additions and 209 deletions
51
lib/sbi/openapi/model/n2_information_class.c
Normal file
51
lib/sbi/openapi/model/n2_information_class.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "n2_information_class.h"
|
||||
|
||||
OpenAPI_n2_information_class_t *OpenAPI_n2_information_class_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_n2_information_class_t *n2_information_class_local_var = OpenAPI_malloc(sizeof(OpenAPI_n2_information_class_t));
|
||||
if (!n2_information_class_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return n2_information_class_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_n2_information_class_free(OpenAPI_n2_information_class_t *n2_information_class)
|
||||
{
|
||||
if (NULL == n2_information_class) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(n2_information_class);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_n2_information_class_convertToJSON(OpenAPI_n2_information_class_t *n2_information_class)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (n2_information_class == NULL) {
|
||||
ogs_error("OpenAPI_n2_information_class_convertToJSON() failed [N2InformationClass]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_n2_information_class_t *OpenAPI_n2_information_class_parseFromJSON(cJSON *n2_information_classJSON)
|
||||
{
|
||||
OpenAPI_n2_information_class_t *n2_information_class_local_var = NULL;
|
||||
n2_information_class_local_var = OpenAPI_n2_information_class_create (
|
||||
);
|
||||
|
||||
return n2_information_class_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue