open5gs/lib/sbi/openapi/model/service_area_restriction.h

51 lines
1.6 KiB
C

/*
* service_area_restriction.h
*
*
*/
#ifndef _OpenAPI_service_area_restriction_H_
#define _OpenAPI_service_area_restriction_H_
#include <string.h>
#include "../external/cJSON.h"
#include "../include/list.h"
#include "../include/keyValuePair.h"
#include "../include/binary.h"
#include "area.h"
#include "restriction_type.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct OpenAPI_service_area_restriction_s OpenAPI_service_area_restriction_t;
typedef struct OpenAPI_service_area_restriction_s {
OpenAPI_restriction_type_e restriction_type;
OpenAPI_list_t *areas;
bool is_max_num_of_tas;
int max_num_of_tas;
bool is_max_num_of_tas_for_not_allowed_areas;
int max_num_of_tas_for_not_allowed_areas;
} OpenAPI_service_area_restriction_t;
OpenAPI_service_area_restriction_t *OpenAPI_service_area_restriction_create(
OpenAPI_restriction_type_e restriction_type,
OpenAPI_list_t *areas,
bool is_max_num_of_tas,
int max_num_of_tas,
bool is_max_num_of_tas_for_not_allowed_areas,
int max_num_of_tas_for_not_allowed_areas
);
void OpenAPI_service_area_restriction_free(OpenAPI_service_area_restriction_t *service_area_restriction);
OpenAPI_service_area_restriction_t *OpenAPI_service_area_restriction_parseFromJSON(cJSON *service_area_restrictionJSON);
cJSON *OpenAPI_service_area_restriction_convertToJSON(OpenAPI_service_area_restriction_t *service_area_restriction);
OpenAPI_service_area_restriction_t *OpenAPI_service_area_restriction_copy(OpenAPI_service_area_restriction_t *dst, OpenAPI_service_area_restriction_t *src);
#ifdef __cplusplus
}
#endif
#endif /* _OpenAPI_service_area_restriction_H_ */