libvlc: use size_t instead of optional uintptr_t in libvlc
uintptr_t
is an optional type in C11 and C++11. For a public API like libvlc
it's better to rely on the types found on all C and C++ compilers.
size_t
and uintptr_t
should be the same on all platforms we support.
Maybe we don't need the static_assert once the CI's pass. It would be a silent
type change.
Host app will either generate a new error or warning and need to be updated or not and will continue to work as before because they are the same type underneath.
libvlcpp will need to be updated accordingly.
Merge request reports
Activity
changed milestone to %4.0
added Component::Bindings: LibVLC (native API) label
Maybe
vlc_log_t::i_object_id
could also be changed to asize_t*
or even avoid*
.Edited by Steve Lhommeadded MRStatus::Reviewable label
416 416 * \version LibVLC 2.1.0 or later 417 417 */ 418 418 LIBVLC_API void libvlc_log_get_object(const libvlc_log_t *ctx, 419 const char **name, const char **header, uintptr_t *id); 419 const char **name, const char **header, size_t *id); added MRStatus::InReview label and removed MRStatus::Reviewable label