mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-05 15:24:14 +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/transport_protocol_1.c
Normal file
30
lib/sbi/openapi/model/transport_protocol_1.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "transport_protocol_1.h"
|
||||
|
||||
char* OpenAPI_transport_protocol_1_ToString(OpenAPI_transport_protocol_1_e transport_protocol_1)
|
||||
{
|
||||
const char *transport_protocol_1Array[] = { "NULL", "TCP" };
|
||||
size_t sizeofArray = sizeof(transport_protocol_1Array) / sizeof(transport_protocol_1Array[0]);
|
||||
if (transport_protocol_1 < sizeofArray)
|
||||
return (char *)transport_protocol_1Array[transport_protocol_1];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_transport_protocol_1_e OpenAPI_transport_protocol_1_FromString(char* transport_protocol_1)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *transport_protocol_1Array[] = { "NULL", "TCP" };
|
||||
size_t sizeofArray = sizeof(transport_protocol_1Array) / sizeof(transport_protocol_1Array[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(transport_protocol_1, transport_protocol_1Array[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue