From 7695ea2643456ab0c837f958cc484d26529e1098 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 11 Jan 2013 22:31:42 +0000 Subject: 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 --- main/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'main/Makefile') diff --git a/main/Makefile b/main/Makefile index d0a2d0559..fbb885cf8 100644 --- a/main/Makefile +++ b/main/Makefile @@ -35,6 +35,7 @@ AST_LIBS+=$(BKTR_LIB) AST_LIBS+=$(LIBXML2_LIB) AST_LIBS+=$(SQLITE3_LIB) AST_LIBS+=$(ASTSSL_LIBS) +AST_LIBS+=$(JANSSON_LIB) ifneq ($(findstring $(OSARCH), linux-gnu uclinux linux-uclibc linux-gnueabi kfreebsd-gnu linux-gnueabihf),) ifneq ($(findstring LOADABLE_MODULES,$(MENUSELECT_CFLAGS)),) -- cgit v1.2.3