mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 06:10:11 +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/code_word_ind.c
Normal file
30
lib/sbi/openapi/model/code_word_ind.c
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "code_word_ind.h"
|
||||
|
||||
char* OpenAPI_code_word_ind_ToString(OpenAPI_code_word_ind_e code_word_ind)
|
||||
{
|
||||
const char *code_word_indArray[] = { "NULL", "CODEWORD_CHECK_IN_UE", "CODEWORD_CHECK_IN_GMLC" };
|
||||
size_t sizeofArray = sizeof(code_word_indArray) / sizeof(code_word_indArray[0]);
|
||||
if (code_word_ind < sizeofArray)
|
||||
return (char *)code_word_indArray[code_word_ind];
|
||||
else
|
||||
return (char *)"Unknown";
|
||||
}
|
||||
|
||||
OpenAPI_code_word_ind_e OpenAPI_code_word_ind_FromString(char* code_word_ind)
|
||||
{
|
||||
int stringToReturn = 0;
|
||||
const char *code_word_indArray[] = { "NULL", "CODEWORD_CHECK_IN_UE", "CODEWORD_CHECK_IN_GMLC" };
|
||||
size_t sizeofArray = sizeof(code_word_indArray) / sizeof(code_word_indArray[0]);
|
||||
while (stringToReturn < sizeofArray) {
|
||||
if (strcmp(code_word_ind, code_word_indArray[stringToReturn]) == 0) {
|
||||
return stringToReturn;
|
||||
}
|
||||
stringToReturn++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue