open5gs/lib/sbi/openapi/model/plmn_id_1.h
2023-03-01 19:56:49 +09:00

40 lines
1.1 KiB
C

/*
* plmn_id_1.h
*
* When PlmnId needs to be converted to string (e.g. when used in maps as key), the string shall be composed of three digits \"mcc\" followed by \"-\" and two or three digits \"mnc\".
*/
#ifndef _OpenAPI_plmn_id_1_H_
#define _OpenAPI_plmn_id_1_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_plmn_id_1_s OpenAPI_plmn_id_1_t;
typedef struct OpenAPI_plmn_id_1_s {
char *mcc;
char *mnc;
} OpenAPI_plmn_id_1_t;
OpenAPI_plmn_id_1_t *OpenAPI_plmn_id_1_create(
char *mcc,
char *mnc
);
void OpenAPI_plmn_id_1_free(OpenAPI_plmn_id_1_t *plmn_id_1);
OpenAPI_plmn_id_1_t *OpenAPI_plmn_id_1_parseFromJSON(cJSON *plmn_id_1JSON);
cJSON *OpenAPI_plmn_id_1_convertToJSON(OpenAPI_plmn_id_1_t *plmn_id_1);
OpenAPI_plmn_id_1_t *OpenAPI_plmn_id_1_copy(OpenAPI_plmn_id_1_t *dst, OpenAPI_plmn_id_1_t *src);
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_plmn_id_1_H_ */