mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
libpulse: introduce PA_BYTES_SNPRINT_MAX and make use of it wherever applicable
This commit is contained in:
parent
812be32783
commit
e6a666d8d5
6 changed files with 17 additions and 11 deletions
|
|
@ -267,7 +267,6 @@ pa_time_event* pa_context_rttime_new(pa_context *c, pa_usec_t usec, pa_time_even
|
|||
for mainloop->time_restart). \since 0.9.16 */
|
||||
void pa_context_rttime_restart(pa_context *c, pa_time_event *e, pa_usec_t usec);
|
||||
|
||||
|
||||
PA_C_DECL_END
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -302,6 +302,13 @@ pa_sample_format_t pa_parse_sample_format(const char *format) PA_GCC_PURE;
|
|||
/** Pretty print a sample type specification to a string */
|
||||
char* pa_sample_spec_snprint(char *s, size_t l, const pa_sample_spec *spec);
|
||||
|
||||
/** Maximum required string length for pa_bytes_snprint(). Please note
|
||||
* that this value can change with any release without warning and
|
||||
* without being considered API or ABI breakage. You should not use
|
||||
* this definition anywhere where it might become part of an
|
||||
* ABI. \since 0.9.16 */
|
||||
#define PA_BYTES_SNPRINT_MAX 11
|
||||
|
||||
/** Pretty print a byte size value. (i.e. "2.5 MiB") */
|
||||
char* pa_bytes_snprint(char *s, size_t l, unsigned v);
|
||||
|
||||
|
|
|
|||
|
|
@ -319,7 +319,7 @@ typedef struct pa_stream pa_stream;
|
|||
typedef void (*pa_stream_success_cb_t) (pa_stream*s, int success, void *userdata);
|
||||
|
||||
/** A generic request callback */
|
||||
typedef void (*pa_stream_request_cb_t)(pa_stream *p, size_t bytes, void *userdata);
|
||||
typedef void (*pa_stream_request_cb_t)(pa_stream *p, size_t nbytes, void *userdata);
|
||||
|
||||
/** A generic notification callback */
|
||||
typedef void (*pa_stream_notify_cb_t)(pa_stream *p, void *userdata);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue