-
- Downloads
Add JSON API for Asterisk.
This provides a JSON API by pulling in and wrapping the Jansson JSON library[1]. The Asterisk API basically mirrors the Jansson functionality, with a few minor tweaks. * Some names have been asteriskified to protect the innocent. * Jansson provides both reference-stealing and reference-borrowing versions of several API's. The Asterisk API is exclusively reference-stealing for operations that put elements into arrays and objects. * No support for doubles, since we usually don't need that. * Coming along for the ride is the ast_test_validate macro, which made the unit tests much easier to write. [1]: http://www.digip.org/jansson/ (issue ASTERISK-20887) (closes issue ASTERISK-20888) Review: https://reviewboard.asterisk.org/r/2264/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378915 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Showing
- build_tools/menuselect-deps.in 1 addition, 0 deletionsbuild_tools/menuselect-deps.in
- configure 144 additions, 1 deletionconfigure
- configure.ac 3 additions, 0 deletionsconfigure.ac
- contrib/scripts/install_prereq 1 addition, 1 deletioncontrib/scripts/install_prereq
- include/asterisk/autoconfig.h.in 3 additions, 0 deletionsinclude/asterisk/autoconfig.h.in
- include/asterisk/json.h 762 additions, 0 deletionsinclude/asterisk/json.h
- include/asterisk/test.h 27 additions, 1 deletioninclude/asterisk/test.h
- main/Makefile 1 addition, 0 deletionsmain/Makefile
- makeopts.in 3 additions, 0 deletionsmakeopts.in
- res/res_json.c 517 additions, 0 deletionsres/res_json.c
- res/res_json.exports.in 6 additions, 0 deletionsres/res_json.exports.in
- tests/test_json.c 1701 additions, 0 deletionstests/test_json.c
Loading
Please register or sign in to comment