Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename PathStats to quic_path_stats_t in FFI #340

Merged
merged 1 commit into from
Jul 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exclude = ["MIN_CLIENT_INITIAL_LEN", "VINT_MAX"]
"PacketOutSpec" = "quic_packet_out_spec_t"
"PacketInfo" = "quic_packet_info_t"
"PathAddress" = "quic_path_address_t"
"PathStats" = "quic_path_stats_t"
"FourTupleIter" = "quic_path_address_iter_t"
"Shutdown" = "quic_shutdown"
"TransportHandler" = "quic_transport_handler_t"
Expand Down
22 changes: 11 additions & 11 deletions include/tquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ typedef struct quic_path_address_t {
/**
* Statistics about path
*/
typedef struct PathStats {
typedef struct quic_path_stats_t {
/**
* The number of QUIC packets received.
*/
Expand All @@ -303,14 +303,14 @@ typedef struct PathStats {
* The number of lost bytes.
*/
uint64_t lost_bytes;
/**
* Total number of bytes acked.
*/
uint64_t acked_bytes;
/**
* Total number of packets acked.
*/
uint64_t acked_count;
/**
* Total number of bytes acked.
*/
uint64_t acked_bytes;
/**
* Initial congestion window in bytes.
*/
Expand Down Expand Up @@ -367,7 +367,7 @@ typedef struct PathStats {
* Pacing rate estimated by congestion control algorithm.
*/
uint64_t pacing_rate;
} PathStats;
} quic_path_stats_t;

/**
* Statistics about a QUIC connection.
Expand Down Expand Up @@ -1020,11 +1020,11 @@ bool quic_conn_active_path(const struct quic_conn_t *conn, struct quic_path_addr
/**
* Return the latest statistics about the specified path.
*/
const struct PathStats *quic_conn_path_stats(struct quic_conn_t *conn,
const struct sockaddr *local,
socklen_t local_len,
const struct sockaddr *remote,
socklen_t remote_len);
const struct quic_path_stats_t *quic_conn_path_stats(struct quic_conn_t *conn,
const struct sockaddr *local,
socklen_t local_len,
const struct sockaddr *remote,
socklen_t remote_len);

/**
* Return statistics about the connection.
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1025,12 +1025,12 @@ pub struct PathStats {
/// The number of lost bytes.
pub lost_bytes: u64,

/// Total number of bytes acked.
pub acked_bytes: u64,

/// Total number of packets acked.
pub acked_count: u64,

/// Total number of bytes acked.
pub acked_bytes: u64,

/// Initial congestion window in bytes.
pub init_cwnd: u64,

Expand Down
Loading