mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 13:20:08 +00:00
[Release-17] Upgrade SBI to v17.x.0
This commit is contained in:
parent
969c116e77
commit
4d44b1843e
1687 changed files with 121604 additions and 9310 deletions
30
lib/sbi/openapi/model/steer_mode_indicator.c
Normal file
30
lib/sbi/openapi/model/steer_mode_indicator.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "steer_mode_indicator.h"
|
||||
|
||||
char* OpenAPI_steer_mode_indicator_ToString(OpenAPI_steer_mode_indicator_e steer_mode_indicator)
|
||||
{
|
||||
const char *steer_mode_indicatorArray[] = { "NULL", "AUTO_LOAD_BALANCE", "UE_ASSISTANCE" };
|
||||
size_t sizeofArray = sizeof(steer_mode_indicatorArray) / sizeof(steer_mode_indicatorArray[0]);
|
||||
if (steer_mode_indicator < sizeofArray)
|
||||
return (char *)steer_mode_indicatorArray[steer_mode_indicator];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_steer_mode_indicator_e OpenAPI_steer_mode_indicator_FromString(char* steer_mode_indicator)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *steer_mode_indicatorArray[] = { "NULL", "AUTO_LOAD_BALANCE", "UE_ASSISTANCE" };
|
||||
size_t sizeofArray = sizeof(steer_mode_indicatorArray) / sizeof(steer_mode_indicatorArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(steer_mode_indicator, steer_mode_indicatorArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue