mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-03 05:40:09 +00:00
Add PCF(Policy Control Function)
This commit is contained in:
parent
fb95725ca4
commit
198abc6e8b
299 changed files with 29050 additions and 1075 deletions
60
lib/sbi/openapi/model/policy_update.h
Normal file
60
lib/sbi/openapi/model/policy_update.h
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* policy_update.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_policy_update_H_
|
||||
#define _OpenAPI_policy_update_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "ambr.h"
|
||||
#include "presence_info_rm.h"
|
||||
#include "request_trigger.h"
|
||||
#include "service_area_restriction.h"
|
||||
#include "smf_selection_data.h"
|
||||
#include "wireline_service_area_restriction.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct OpenAPI_policy_update_s OpenAPI_policy_update_t;
|
||||
typedef struct OpenAPI_policy_update_s {
|
||||
char *resource_uri;
|
||||
OpenAPI_list_t *triggers;
|
||||
struct OpenAPI_service_area_restriction_s *serv_area_res;
|
||||
struct OpenAPI_wireline_service_area_restriction_s *wl_serv_area_res;
|
||||
int rfsp;
|
||||
struct OpenAPI_smf_selection_data_s *smf_sel_info;
|
||||
struct OpenAPI_ambr_s *ue_ambr;
|
||||
struct OpenAPI_ambr_s *rg_tmbr;
|
||||
OpenAPI_list_t* pras;
|
||||
} OpenAPI_policy_update_t;
|
||||
|
||||
OpenAPI_policy_update_t *OpenAPI_policy_update_create(
|
||||
char *resource_uri,
|
||||
OpenAPI_list_t *triggers,
|
||||
OpenAPI_service_area_restriction_t *serv_area_res,
|
||||
OpenAPI_wireline_service_area_restriction_t *wl_serv_area_res,
|
||||
int rfsp,
|
||||
OpenAPI_smf_selection_data_t *smf_sel_info,
|
||||
OpenAPI_ambr_t *ue_ambr,
|
||||
OpenAPI_ambr_t *rg_tmbr,
|
||||
OpenAPI_list_t* pras
|
||||
);
|
||||
void OpenAPI_policy_update_free(OpenAPI_policy_update_t *policy_update);
|
||||
OpenAPI_policy_update_t *OpenAPI_policy_update_parseFromJSON(cJSON *policy_updateJSON);
|
||||
cJSON *OpenAPI_policy_update_convertToJSON(OpenAPI_policy_update_t *policy_update);
|
||||
OpenAPI_policy_update_t *OpenAPI_policy_update_copy(OpenAPI_policy_update_t *dst, OpenAPI_policy_update_t *src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_policy_update_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue