mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 22:30:09 +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/net_loc_access_support.c
Normal file
30
lib/sbi/openapi/model/net_loc_access_support.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "net_loc_access_support.h"
|
||||
|
||||
char* OpenAPI_net_loc_access_support_ToString(OpenAPI_net_loc_access_support_e net_loc_access_support)
|
||||
{
|
||||
const char *net_loc_access_supportArray[] = { "NULL", "ANR_NOT_SUPPORTED", "TZR_NOT_SUPPORTED", "LOC_NOT_SUPPORTED" };
|
||||
size_t sizeofArray = sizeof(net_loc_access_supportArray) / sizeof(net_loc_access_supportArray[0]);
|
||||
if (net_loc_access_support < sizeofArray)
|
||||
return (char *)net_loc_access_supportArray[net_loc_access_support];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_net_loc_access_support_e OpenAPI_net_loc_access_support_FromString(char* net_loc_access_support)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *net_loc_access_supportArray[] = { "NULL", "ANR_NOT_SUPPORTED", "TZR_NOT_SUPPORTED", "LOC_NOT_SUPPORTED" };
|
||||
size_t sizeofArray = sizeof(net_loc_access_supportArray) / sizeof(net_loc_access_supportArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(net_loc_access_support, net_loc_access_supportArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue