diff options
author | automerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-25 20:26:05 +0000 |
---|---|---|
committer | automerge <automerge@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-04-25 20:26:05 +0000 |
commit | 37bc33e7aacafcc1394a68ef92ddc15e320b4c2f (patch) | |
tree | cd70384416ea562ee9fe605d2326bc41162be575 /include | |
parent | 8911e9f7c38901c3495b409f62b8f99b29837c9e (diff) |
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@61861 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/app.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 972314c57..b09cc8eb8 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -166,7 +166,12 @@ int ast_unlock_path(const char *path); /*! Read a file into asterisk*/ char *ast_read_textfile(const char *file); -#define GROUP_CATEGORY_PREFIX "GROUP" +struct ast_group_info { + struct ast_channel *chan; + char *category; + char *group; + AST_LIST_ENTRY(ast_group_info) list; +}; /*! 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); @@ -180,6 +185,18 @@ int ast_app_group_get_count(char *group, 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); +/*! Discard all group counting for a channel */ +int ast_app_group_discard(struct ast_channel *chan); + +/*! Lock the group count list */ +int ast_app_group_list_lock(void); + +/*! Get the head of the group count list */ +struct ast_group_info *ast_app_group_list_head(void); + +/*! Unlock the group count list */ +int ast_app_group_list_unlock(void); + /*! \brief Define an application argument \param name The name of the argument |