Skip to content
Snippets Groups Projects
Commit 566f9a54 authored by Kevin Harwell's avatar Kevin Harwell Committed by Gerrit Code Review
Browse files

Merge "format_cap: make function parameters 'const'"

parents a3b3a9d2 1e1651b4
No related branches found
No related tags found
No related merge requests found
......@@ -308,7 +308,7 @@ int ast_format_cap_has_type(const struct ast_format_cap *cap, enum ast_media_typ
*
* \return The contents of the buffer in \c buf
*/
const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str **buf);
const char *ast_format_cap_get_names(const struct ast_format_cap *cap, struct ast_str **buf);
#ifndef AST_FORMAT_CAP_NAMES_LEN
/*! Buffer size for callers of ast_format_cap_get_names to allocate. */
......@@ -322,6 +322,6 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str
* \retval 1 The format cap has zero formats or only ast_format_none
* \retval 0 The format cap has at least one format
*/
int ast_format_cap_empty(struct ast_format_cap *cap);
int ast_format_cap_empty(const struct ast_format_cap *cap);
#endif /* _AST_FORMAT_CAP_H */
......@@ -699,7 +699,7 @@ int ast_format_cap_identical(const struct ast_format_cap *cap1, const struct ast
return internal_format_cap_identical(cap2, cap1);
}
const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str **buf)
const char *ast_format_cap_get_names(const struct ast_format_cap *cap, struct ast_str **buf)
{
int i;
......@@ -725,7 +725,7 @@ const char *ast_format_cap_get_names(struct ast_format_cap *cap, struct ast_str
return ast_str_buffer(*buf);
}
int ast_format_cap_empty(struct ast_format_cap *cap)
int ast_format_cap_empty(const struct ast_format_cap *cap)
{
int count = ast_format_cap_count(cap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment