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/sms_support.c
Normal file
51
lib/sbi/openapi/model/sms_support.c
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "sms_support.h"
|
||||
|
||||
OpenAPI_sms_support_t *OpenAPI_sms_support_create(
|
||||
)
|
||||
{
|
||||
OpenAPI_sms_support_t *sms_support_local_var = OpenAPI_malloc(sizeof(OpenAPI_sms_support_t));
|
||||
if (!sms_support_local_var) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return sms_support_local_var;
|
||||
}
|
||||
|
||||
void OpenAPI_sms_support_free(OpenAPI_sms_support_t *sms_support)
|
||||
{
|
||||
if (NULL == sms_support) {
|
||||
return;
|
||||
}
|
||||
OpenAPI_lnode_t *node;
|
||||
ogs_free(sms_support);
|
||||
}
|
||||
|
||||
cJSON *OpenAPI_sms_support_convertToJSON(OpenAPI_sms_support_t *sms_support)
|
||||
{
|
||||
cJSON *item = NULL;
|
||||
|
||||
if (sms_support == NULL) {
|
||||
ogs_error("OpenAPI_sms_support_convertToJSON() failed [SmsSupport]");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
item = cJSON_CreateObject();
|
||||
end:
|
||||
return item;
|
||||
}
|
||||
|
||||
OpenAPI_sms_support_t *OpenAPI_sms_support_parseFromJSON(cJSON *sms_supportJSON)
|
||||
{
|
||||
OpenAPI_sms_support_t *sms_support_local_var = NULL;
|
||||
sms_support_local_var = OpenAPI_sms_support_create (
|
||||
);
|
||||
|
||||
return sms_support_local_var;
|
||||
end:
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue