summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2006-05-08 11:20:19 +0000
committerRussell Bryant <russell@russellbryant.com>2006-05-08 11:20:19 +0000
commit0fd612930a1e24953159fabd27d1d336500c460f (patch)
tree534a0079e1a77c64d8d5efc33f0f64eda09a5602 /include
parent05ea5482d09db6da17f693ae220e20bf9bcc7311 (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: https://origsvn.digium.com/svn/asterisk/trunk@25443 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/pbx.h3
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 */