mirror of
https://github.com/open5gs/open5gs.git
synced 2026-05-02 05:10:10 +00:00
[Release-17] Upgrade SBI to v17.x.0
This commit is contained in:
parent
969c116e77
commit
4d44b1843e
1687 changed files with 121604 additions and 9310 deletions
52
lib/sbi/openapi/model/perf_data.h
Normal file
52
lib/sbi/openapi/model/perf_data.h
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* perf_data.h
|
||||
*
|
||||
* Represents DN performance data.
|
||||
*/
|
||||
|
||||
#ifndef _OpenAPI_perf_data_H_
|
||||
#define _OpenAPI_perf_data_H_
|
||||
|
||||
#include <string.h>
|
||||
#include "../external/cJSON.h"
|
||||
#include "../include/list.h"
|
||||
#include "../include/keyValuePair.h"
|
||||
#include "../include/binary.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct OpenAPI_perf_data_s OpenAPI_perf_data_t;
|
||||
typedef struct OpenAPI_perf_data_s {
|
||||
char *avg_traffic_rate;
|
||||
char *max_traffic_rate;
|
||||
bool is_ave_packet_delay;
|
||||
int ave_packet_delay;
|
||||
bool is_max_packet_delay;
|
||||
int max_packet_delay;
|
||||
bool is_avg_packet_loss_rate;
|
||||
int avg_packet_loss_rate;
|
||||
} OpenAPI_perf_data_t;
|
||||
|
||||
OpenAPI_perf_data_t *OpenAPI_perf_data_create(
|
||||
char *avg_traffic_rate,
|
||||
char *max_traffic_rate,
|
||||
bool is_ave_packet_delay,
|
||||
int ave_packet_delay,
|
||||
bool is_max_packet_delay,
|
||||
int max_packet_delay,
|
||||
bool is_avg_packet_loss_rate,
|
||||
int avg_packet_loss_rate
|
||||
);
|
||||
void OpenAPI_perf_data_free(OpenAPI_perf_data_t *perf_data);
|
||||
OpenAPI_perf_data_t *OpenAPI_perf_data_parseFromJSON(cJSON *perf_dataJSON);
|
||||
cJSON *OpenAPI_perf_data_convertToJSON(OpenAPI_perf_data_t *perf_data);
|
||||
OpenAPI_perf_data_t *OpenAPI_perf_data_copy(OpenAPI_perf_data_t *dst, OpenAPI_perf_data_t *src);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _OpenAPI_perf_data_H_ */
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue