do not export the tzlock and the list head, and introduce a new method,
authorLuigi Rizzo <rizzo@icir.org>
Thu, 30 Mar 2006 17:10:11 +0000 (17:10 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 30 Mar 2006 17:10:11 +0000 (17:10 +0000)
commit48864ab877d4e9038f3f8c0e119ab7e02c07523c
tree56636b4d708638cdb380dc76672be39341eec1f9
parent6d2fbc0b909d9802f67345630cb967311d72eb1c
do not export the tzlock and the list head, and introduce a new method,
ast_walk_indications(), to walk through the list of indications.
The new method returns an unlocked record, which is no different from the
behaviour of other existing methods in indications.c
(i.e. they all need to be fixed, with refcounts or some similar
method).

Note that ast_walk_indications() uses the pointer argument only as a
search key, so its implementation is completely safe.

In turn, this change allows the removal of AST_MUTEX_DEFINE_EXPORTED.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16532 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/indications.h
indications.c
res/res_indications.c
res/snmp/agent.c