[asterisk-dev] [Code Review] 2477: Sorcery Observers + Preliminary JSON Support
svnbot
reviewboard at asterisk.org
Mon May 6 08:04:12 CDT 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2477/
-----------------------------------------------------------
(Updated May 6, 2013, 8:04 a.m.)
Status
------
This change has been marked as submitted.
Review request for Asterisk Developers.
Changes
-------
Committed in revision 387662
Repository: Asterisk
Description
-------
This change adds the following to sorcery:
1. Observers
Observers can be added to a sorcery object type and get called when create, update, delete, or load/reload operations occur. An observer can implement only the specific operations it is interested in. Observers are called from a separate thread in a serialized fashion so that the thread calling the sorcery API is minimally impacted.
2. Test for observers
A unit test has been added that confirms that observers are called for the different operations.
3. Preliminary JSON Support
A new API call has been added which returns a JSON object representing a sorcery object.
Diffs
-----
/trunk/include/asterisk/sorcery.h 386730
/trunk/main/sorcery.c 386731
/trunk/res/res_sorcery_astdb.c 386730
/trunk/tests/test_sorcery.c 386730
Diff: https://reviewboard.asterisk.org/r/2477/diff/
Testing
-------
Ran sorcery unit tests, confirmed happy.
Thanks,
Joshua Colp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20130506/22ac048e/attachment.htm>
More information about the asterisk-dev
mailing list