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

51 lines
1.6 KiB
C

/*
* user_location.h
*
* At least one of eutraLocation, nrLocation and n3gaLocation shall be present. Several of them may be present.
*/
#ifndef _OpenAPI_user_location_H_
#define _OpenAPI_user_location_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#include "eutra_location.h"
#include "gera_location.h"
#include "n3ga_location.h"
#include "nr_location.h"
#include "utra_location.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_user_location_s OpenAPI_user_location_t;
typedef struct OpenAPI_user_location_s {
struct OpenAPI_eutra_location_s *eutra_location;
struct OpenAPI_nr_location_s *nr_location;
struct OpenAPI_n3ga_location_s *n3ga_location;
struct OpenAPI_utra_location_s *utra_location;
struct OpenAPI_gera_location_s *gera_location;
} OpenAPI_user_location_t;
OpenAPI_user_location_t *OpenAPI_user_location_create(
OpenAPI_eutra_location_t *eutra_location,
OpenAPI_nr_location_t *nr_location,
OpenAPI_n3ga_location_t *n3ga_location,
OpenAPI_utra_location_t *utra_location,
OpenAPI_gera_location_t *gera_location
);
void OpenAPI_user_location_free(OpenAPI_user_location_t *user_location);
OpenAPI_user_location_t *OpenAPI_user_location_parseFromJSON(cJSON *user_locationJSON);
cJSON *OpenAPI_user_location_convertToJSON(OpenAPI_user_location_t *user_location);
OpenAPI_user_location_t *OpenAPI_user_location_copy(OpenAPI_user_location_t *dst, OpenAPI_user_location_t *src);
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_user_location_H_ */