forked from acouzens/open5gs
47 lines
1.5 KiB
C
47 lines
1.5 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;
|
|
int max_num_of_t_as;
|
|
int max_num_of_t_as_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,
|
|
int max_num_of_t_as,
|
|
int max_num_of_t_as_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_ */
|
|
|