mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10: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/domain_name_protocol.c
Normal file
51
lib/sbi/openapi/model/domain_name_protocol.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "domain_name_protocol.h"
|
||||
|
||||
OpenAPI_domain_name_protocol_t *OpenAPI_domain_name_protocol_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_domain_name_protocol_t *domain_name_protocol_local_var = OpenAPI_malloc(sizeof(OpenAPI_domain_name_protocol_t));
|
||||
if (!domain_name_protocol_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return domain_name_protocol_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_domain_name_protocol_free(OpenAPI_domain_name_protocol_t *domain_name_protocol)
|
||||
{
|
||||
if (NULL == domain_name_protocol) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(domain_name_protocol);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_domain_name_protocol_convertToJSON(OpenAPI_domain_name_protocol_t *domain_name_protocol)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (domain_name_protocol == NULL) {
|
||||
ogs_error("OpenAPI_domain_name_protocol_convertToJSON() failed [DomainNameProtocol]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_domain_name_protocol_t *OpenAPI_domain_name_protocol_parseFromJSON(cJSON *domain_name_protocolJSON)
|
||||
{
|
||||
OpenAPI_domain_name_protocol_t *domain_name_protocol_local_var = NULL;
|
||||
domain_name_protocol_local_var = OpenAPI_domain_name_protocol_create (
|
||||
);
|
||||
|
||||
return domain_name_protocol_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue