mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 21:30:10 +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/notification_method_1_any_of.c
Normal file
30
lib/sbi/openapi/model/notification_method_1_any_of.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "notification_method_1_any_of.h"
|
||||
|
||||
char* OpenAPI_notification_method_1_any_of_ToString(OpenAPI_notification_method_1_any_of_e notification_method_1_any_of)
|
||||
{
|
||||
const char *notification_method_1_any_ofArray[] = { "NULL", "PERIODIC", "ONE_TIME", "ON_EVENT_DETECTION" };
|
||||
size_t sizeofArray = sizeof(notification_method_1_any_ofArray) / sizeof(notification_method_1_any_ofArray[0]);
|
||||
if (notification_method_1_any_of < sizeofArray)
|
||||
return (char *)notification_method_1_any_ofArray[notification_method_1_any_of];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_notification_method_1_any_of_e OpenAPI_notification_method_1_any_of_FromString(char* notification_method_1_any_of)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *notification_method_1_any_ofArray[] = { "NULL", "PERIODIC", "ONE_TIME", "ON_EVENT_DETECTION" };
|
||||
size_t sizeofArray = sizeof(notification_method_1_any_ofArray) / sizeof(notification_method_1_any_ofArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(notification_method_1_any_of, notification_method_1_any_ofArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue