You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only way to get a quiche_path_event is from the return value of quiche_conn_path_event_next. It returns a const quiche_path_event*. However, all the functions that operate on a quiche_path_event take a mutable quiche_path_event* in quiche.h, meaning you have to cast away const on the pointer to use it anywhere or else you get an error. This seems to be a mistake, because in ffi.rs none of those function parameters are mut (with the exception of quiche_path_event_free). Perhaps quiche_conn_path_event_next should just return a mutable pointer?
The text was updated successfully, but these errors were encountered:
ichordev
pushed a commit
to ichordev/quiche
that referenced
this issue
Jan 14, 2025
ichordev
changed the title
FFI: const quiche_path_event* expected to be passed to quiche_path_event* parameters
ffi: const quiche_path_event* expected to be passed to quiche_path_event* parameters
Jan 14, 2025
The only way to get a
quiche_path_event
is from the return value ofquiche_conn_path_event_next
. It returns aconst quiche_path_event*
. However, all the functions that operate on aquiche_path_event
take a mutablequiche_path_event*
in quiche.h, meaning you have to cast awayconst
on the pointer to use it anywhere or else you get an error. This seems to be a mistake, because in ffi.rs none of those function parameters aremut
(with the exception ofquiche_path_event_free
). Perhapsquiche_conn_path_event_next
should just return a mutable pointer?The text was updated successfully, but these errors were encountered: