mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
arch: DB schema Changes (#796)
- New function : NSSF - New feature : SMF selection
This commit is contained in:
parent
c6bfbed922
commit
9af4268bab
691 changed files with 40727 additions and 18985 deletions
30
lib/sbi/openapi/model/access_network_id.c
Normal file
30
lib/sbi/openapi/model/access_network_id.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "access_network_id.h"
|
||||
|
||||
char* OpenAPI_access_network_id_ToString(OpenAPI_access_network_id_e access_network_id)
|
||||
{
|
||||
const char *access_network_idArray[] = { "NULL", "HRPD", "WIMAX", "WLAN", "ETHERNET" };
|
||||
size_t sizeofArray = sizeof(access_network_idArray) / sizeof(access_network_idArray[0]);
|
||||
if (access_network_id < sizeofArray)
|
||||
return (char *)access_network_idArray[access_network_id];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_access_network_id_e OpenAPI_access_network_id_FromString(char* access_network_id)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *access_network_idArray[] = { "NULL", "HRPD", "WIMAX", "WLAN", "ETHERNET" };
|
||||
size_t sizeofArray = sizeof(access_network_idArray) / sizeof(access_network_idArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(access_network_id, access_network_idArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue