mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
Bug 5858 - Make the chanvars.c functions return a 'const char *'
This should prevent us from unintentionally changing variable values when they're returned from pbx_builtin_getvar_helper. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7304 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -167,16 +167,16 @@ char *ast_read_textfile(const char *file);
|
||||
#define GROUP_CATEGORY_PREFIX "GROUP"
|
||||
|
||||
/*! Split a group string into group and category, returning a default category if none is provided. */
|
||||
int ast_app_group_split_group(char *data, char *group, int group_max, char *category, int category_max);
|
||||
int ast_app_group_split_group(const char *data, char *group, int group_max, char *category, int category_max);
|
||||
|
||||
/*! Set the group for a channel, splitting the provided data into group and category, if specified. */
|
||||
int ast_app_group_set_channel(struct ast_channel *chan, char *data);
|
||||
int ast_app_group_set_channel(struct ast_channel *chan, const char *data);
|
||||
|
||||
/*! Get the current channel count of the specified group and category. */
|
||||
int ast_app_group_get_count(char *group, char *category);
|
||||
int ast_app_group_get_count(const char *group, const char *category);
|
||||
|
||||
/*! Get the current channel count of all groups that match the specified pattern and category. */
|
||||
int ast_app_group_match_get_count(char *groupmatch, char *category);
|
||||
int ast_app_group_match_get_count(const char *groupmatch, const char *category);
|
||||
|
||||
/*!
|
||||
\brief Define an application argument
|
||||
|
Reference in New Issue
Block a user