mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-04 14:20: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
77
lib/sbi/openapi/model/pcc_rule.h
Normal file
77
lib/sbi/openapi/model/pcc_rule.h
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
/*
|
||||
* pcc_rule.h
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_pcc_rule_H_
|
||||
#define _OpenAPI_pcc_rule_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
#include "af_sig_protocol.h"
|
||||
#include "flow_information.h"
|
||||
#include "tscai_input_container.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct OpenAPI_pcc_rule_s OpenAPI_pcc_rule_t;
|
||||
typedef struct OpenAPI_pcc_rule_s {
|
||||
OpenAPI_list_t *flow_infos;
|
||||
char *app_id;
|
||||
int cont_ver;
|
||||
char *pcc_rule_id;
|
||||
int precedence;
|
||||
struct OpenAPI_af_sig_protocol_s *af_sig_protocol;
|
||||
int app_reloc;
|
||||
OpenAPI_list_t *ref_qos_data;
|
||||
OpenAPI_list_t *ref_alt_qos_params;
|
||||
OpenAPI_list_t *ref_tc_data;
|
||||
OpenAPI_list_t *ref_chg_data;
|
||||
OpenAPI_list_t *ref_chg_n3g_data;
|
||||
OpenAPI_list_t *ref_um_data;
|
||||
OpenAPI_list_t *ref_um_n3g_data;
|
||||
char *ref_cond_data;
|
||||
OpenAPI_list_t *ref_qos_mon;
|
||||
int addr_preser_ind;
|
||||
struct OpenAPI_tscai_input_container_s *tscai_input_dl;
|
||||
struct OpenAPI_tscai_input_container_s *tscai_input_ul;
|
||||
} OpenAPI_pcc_rule_t;
|
||||
|
||||
OpenAPI_pcc_rule_t *OpenAPI_pcc_rule_create(
|
||||
OpenAPI_list_t *flow_infos,
|
||||
char *app_id,
|
||||
int cont_ver,
|
||||
char *pcc_rule_id,
|
||||
int precedence,
|
||||
OpenAPI_af_sig_protocol_t *af_sig_protocol,
|
||||
int app_reloc,
|
||||
OpenAPI_list_t *ref_qos_data,
|
||||
OpenAPI_list_t *ref_alt_qos_params,
|
||||
OpenAPI_list_t *ref_tc_data,
|
||||
OpenAPI_list_t *ref_chg_data,
|
||||
OpenAPI_list_t *ref_chg_n3g_data,
|
||||
OpenAPI_list_t *ref_um_data,
|
||||
OpenAPI_list_t *ref_um_n3g_data,
|
||||
char *ref_cond_data,
|
||||
OpenAPI_list_t *ref_qos_mon,
|
||||
int addr_preser_ind,
|
||||
OpenAPI_tscai_input_container_t *tscai_input_dl,
|
||||
OpenAPI_tscai_input_container_t *tscai_input_ul
|
||||
);
|
||||
void OpenAPI_pcc_rule_free(OpenAPI_pcc_rule_t *pcc_rule);
|
||||
OpenAPI_pcc_rule_t *OpenAPI_pcc_rule_parseFromJSON(cJSON *pcc_ruleJSON);
|
||||
cJSON *OpenAPI_pcc_rule_convertToJSON(OpenAPI_pcc_rule_t *pcc_rule);
|
||||
OpenAPI_pcc_rule_t *OpenAPI_pcc_rule_copy(OpenAPI_pcc_rule_t *dst, OpenAPI_pcc_rule_t *src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_pcc_rule_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue