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
35
lib/sbi/openapi/model/object.c
Normal file
35
lib/sbi/openapi/model/object.c
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "object.h"
|
||||
|
||||
OpenAPI_object_t *OpenAPI_object_create(void)
|
||||
{
|
||||
OpenAPI_object_t *object = ogs_malloc(sizeof(OpenAPI_object_t));
|
||||
|
||||
return object;
|
||||
}
|
||||
|
||||
void OpenAPI_object_free(OpenAPI_object_t *object)
|
||||
{
|
||||
ogs_free (object);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_object_convertToJSON(OpenAPI_object_t *object)
|
||||
{
|
||||
cJSON *item = cJSON_CreateObject();
|
||||
|
||||
return item;
|
||||
fail:
|
||||
cJSON_Delete(item);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
OpenAPI_object_t *OpenAPI_object_parseFromJSON(cJSON *objectJSON)
|
||||
{
|
||||
OpenAPI_object_t *object = NULL;
|
||||
|
||||
return object;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue