mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +00:00
Upgrade SBI(Service-based Interface)
* OpenAPI Generator version: 4.3.1 ==> 5.5.1 * Specification : r16.8.0 (20210629)
This commit is contained in:
parent
2aaa8200c2
commit
f278d58a69
1914 changed files with 91329 additions and 57361 deletions
30
lib/sbi/openapi/model/data_ind_any_of.c
Normal file
30
lib/sbi/openapi/model/data_ind_any_of.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "data_ind_any_of.h"
|
||||
|
||||
char* OpenAPI_data_ind_any_of_ToString(OpenAPI_data_ind_any_of_e data_ind_any_of)
|
||||
{
|
||||
const char *data_ind_any_ofArray[] = { "NULL", "PFD", "IPTV", "BDT", "SVC_PARAM" };
|
||||
size_t sizeofArray = sizeof(data_ind_any_ofArray) / sizeof(data_ind_any_ofArray[0]);
|
||||
if (data_ind_any_of < sizeofArray)
|
||||
return (char *)data_ind_any_ofArray[data_ind_any_of];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_data_ind_any_of_e OpenAPI_data_ind_any_of_FromString(char* data_ind_any_of)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *data_ind_any_ofArray[] = { "NULL", "PFD", "IPTV", "BDT", "SVC_PARAM" };
|
||||
size_t sizeofArray = sizeof(data_ind_any_ofArray) / sizeof(data_ind_any_ofArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(data_ind_any_of, data_ind_any_ofArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue