mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
format: Const-ify some parameters
This commit is contained in:
parent
49b10ba694
commit
a3a0042144
2 changed files with 4 additions and 4 deletions
|
|
@ -70,11 +70,11 @@ void pa_format_info_free2(pa_format_info *f, void *userdata) {
|
||||||
pa_format_info_free(f);
|
pa_format_info_free(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pa_format_info_valid(pa_format_info *f) {
|
int pa_format_info_valid(const pa_format_info *f) {
|
||||||
return (f->encoding >= 0 && f->encoding < PA_ENCODING_MAX && f->plist != NULL);
|
return (f->encoding >= 0 && f->encoding < PA_ENCODING_MAX && f->plist != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pa_format_info_is_pcm(pa_format_info *f) {
|
int pa_format_info_is_pcm(const pa_format_info *f) {
|
||||||
return f->encoding == PA_ENCODING_PCM;
|
return f->encoding == PA_ENCODING_PCM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,10 +72,10 @@ pa_format_info* pa_format_info_copy(const pa_format_info *src);
|
||||||
void pa_format_info_free(pa_format_info *f);
|
void pa_format_info_free(pa_format_info *f);
|
||||||
|
|
||||||
/** Returns non-zero when the format info structure is valid */
|
/** Returns non-zero when the format info structure is valid */
|
||||||
int pa_format_info_valid(pa_format_info *f);
|
int pa_format_info_valid(const pa_format_info *f);
|
||||||
|
|
||||||
/** Returns non-zero when the format info structure represents a PCM (i.e. uncompressed data) format */
|
/** Returns non-zero when the format info structure represents a PCM (i.e. uncompressed data) format */
|
||||||
int pa_format_info_is_pcm(pa_format_info *f);
|
int pa_format_info_is_pcm(const pa_format_info *f);
|
||||||
|
|
||||||
PA_C_DECL_END
|
PA_C_DECL_END
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue