diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 11:20:19 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 11:20:19 +0000 |
commit | 6dcc6fb75e811e76a5ad0a7e574468096d943ec8 (patch) | |
tree | 534a0079e1a77c64d8d5efc33f0f64eda09a5602 /include/asterisk/pbx.h | |
parent | 7fa2d5ed400233b8496040253316d29c61f366c0 (diff) |
- convert the lists of switches to use the linked list macros
- remove some checks of the result of ast_mutex_lock, since it is not necessary
(this would be a good project to add to the janitor projects list).
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25443 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/pbx.h')
-rw-r--r-- | include/asterisk/pbx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 5bc8b84d8..b2ee2577c 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -25,6 +25,7 @@ #include "asterisk/sched.h" #include "asterisk/channel.h" +#include "asterisk/linkedlists.h" #if defined(__cplusplus) || defined(c_plusplus) extern "C" { @@ -80,7 +81,7 @@ typedef int (ast_switch_f)(struct ast_channel *chan, const char *context, /*!< Data structure associated with an Asterisk switch */ struct ast_switch { - struct ast_switch *next; + AST_LIST_ENTRY(ast_switch) list; const char *name; /*!< Name of the switch */ const char *description; /*!< Description of the switch */ |