mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +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
30
lib/sbi/openapi/model/sor_update_indicator.c
Normal file
30
lib/sbi/openapi/model/sor_update_indicator.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "sor_update_indicator.h"
|
||||
|
||||
char* OpenAPI_sor_update_indicator_ToString(OpenAPI_sor_update_indicator_e sor_update_indicator)
|
||||
{
|
||||
const char *sor_update_indicatorArray[] = { "NULL", "INITIAL_REGISTRATION", "EMERGENCY_REGISTRATION" };
|
||||
size_t sizeofArray = sizeof(sor_update_indicatorArray) / sizeof(sor_update_indicatorArray[0]);
|
||||
if (sor_update_indicator < sizeofArray)
|
||||
return (char *)sor_update_indicatorArray[sor_update_indicator];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_sor_update_indicator_e OpenAPI_sor_update_indicator_FromString(char* sor_update_indicator)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *sor_update_indicatorArray[] = { "NULL", "INITIAL_REGISTRATION", "EMERGENCY_REGISTRATION" };
|
||||
size_t sizeofArray = sizeof(sor_update_indicatorArray) / sizeof(sor_update_indicatorArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(sor_update_indicator, sor_update_indicatorArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue