Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asterisk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Voice
asterisk
Commits
566f9a54
Commit
566f9a54
authored
5 years ago
by
Kevin Harwell
Committed by
Gerrit Code Review
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge "format_cap: make function parameters 'const'"
parents
a3b3a9d2
1e1651b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/asterisk/format_cap.h
+2
-2
2 additions, 2 deletions
include/asterisk/format_cap.h
main/format_cap.c
+2
-2
2 additions, 2 deletions
main/format_cap.c
with
4 additions
and
4 deletions
include/asterisk/format_cap.h
+
2
−
2
View file @
566f9a54
...
...
@@ -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 */
This diff is collapsed.
Click to expand it.
main/format_cap.c
+
2
−
2
View file @
566f9a54
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment