[vlc-commits] [Git][videolan/vlc][master] 3 commits: vlc_tls: add restrict qualifier to match existing callbacks
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Jan 27 07:41:05 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
dd8866ec by Steve Lhomme at 2023-01-27T07:25:24+00:00
vlc_tls: add restrict qualifier to match existing callbacks
- - - - -
cacfd854 by Steve Lhomme at 2023-01-27T07:25:24+00:00
vlc_stream: add restrict qualifier to match existing callbacks
- - - - -
5b79d6e6 by Steve Lhomme at 2023-01-27T07:25:24+00:00
vlc_aout: add restrict qualifier to match existing callbacks
- - - - -
3 changed files:
- include/vlc_aout.h
- include/vlc_stream.h
- include/vlc_tls.h
Changes:
=====================================
include/vlc_aout.h
=====================================
@@ -155,7 +155,7 @@ struct audio_output
void *sys; /**< Private data for callbacks */
- int (*start)(audio_output_t *, audio_sample_format_t *fmt);
+ int (*start)(audio_output_t *, audio_sample_format_t * restrict fmt);
/**< Starts a new stream (mandatory, cannot be NULL).
*
* This callback changes the audio output from stopped to playing state
@@ -181,7 +181,7 @@ struct audio_output
* \note This callback needs not be reentrant.
*/
- int (*time_get)(audio_output_t *, vlc_tick_t *delay);
+ int (*time_get)(audio_output_t *, vlc_tick_t * restrict delay);
/**< Estimates playback buffer latency (can be NULL).
*
* This callback computes an estimation of the delay until the current
=====================================
include/vlc_stream.h
=====================================
@@ -99,7 +99,7 @@ struct stream_t
* \return a data block,
* NULL if no data available yet, on error and at end-of-stream
*/
- block_t *(*pf_block)(stream_t *, bool *eof);
+ block_t *(*pf_block)(stream_t *, bool *restrict eof);
/**
* Read directory.
=====================================
include/vlc_tls.h
=====================================
@@ -75,7 +75,7 @@ struct vlc_tls_operations
*
* See \ref vlc_tls_GetPollFD().
*/
- int (*get_fd)(struct vlc_tls *, short *events);
+ int (*get_fd)(struct vlc_tls *, short *restrict events);
/** Callback for receiving data.
*
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b30232a07d7f6748427cd31b731c093c6fedbe6b...5b79d6e608950d10928c4056c08c74f6f81c16a7
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/b30232a07d7f6748427cd31b731c093c6fedbe6b...5b79d6e608950d10928c4056c08c74f6f81c16a7
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list