sorcery, bucket: Change observer remove calls to take const callbacks struct.
authorRichard Mudgett <rmudgett@digium.com>
Tue, 3 Dec 2013 17:35:54 +0000 (17:35 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Tue, 3 Dec 2013 17:35:54 +0000 (17:35 +0000)
commit3357c494cb21f24b7185ee3b255bc0cd72d48a55
tree8a188ee6573bbf63fce7cd1b9d28a7d2d31c8047
parent8e8b329e14ad2e4d747c4c4eb33c118305401aee
sorcery, bucket: Change observer remove calls to take const callbacks struct.

* Make ast_sorcery_observer_remove() accept a const callbacks struct.

* Make ast_sorcery_observer_remove() tolerant of the sorcery parameter
being NULL.  Now it can be called within a module unload routine if the
sorcery initialization fails.

* Fix ast_sorcery_observer_add() to fail if the container link fails.
........

Merged revisions 403324 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@403327 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/bucket.h
include/asterisk/sorcery.h
main/bucket.c
main/sorcery.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip/pjsip_options.c
res/res_pjsip_registrar_expire.c
tests/test_sorcery.c