Remove cJSON library include from resource
authorHabib Virji <habib.virji@samsung.com>
Wed, 23 Nov 2016 12:16:31 +0000 (12:16 +0000)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 30 Nov 2016 17:18:19 +0000 (17:18 +0000)
commit972904514b20e5650755646a8719931b11b3b878
treefe2d30422b2310e7168d91e379d6c5c7ab242367
parent77bbdb01fec6064d85b0af43a7ff2c3e6572fa47
Remove cJSON library include from resource

Removing this reduces ocbtstack from 180kb to 168kb in size.

cJSON is not used anymore in the resource, except in json2cbor tool in
the security module.

cJSON is used in coap-http and simulator and scripts has been updated
to include and build cjson. It was included mostly in sconscript.

pmutility had helper function which was not used anywhere.
smutility, psinterface, oicgroup all had function calling cjson but the
function was not used anywhere in the code. Except psinterface and
smutility there are no public API with cjson. The public API are not
called by either sample or test code. The API are obsolete and using them
will not yield any result and can crash the platform.

Change-Id: Ifbf3384536394a26cd6b168dcd15285ef9ce08a7
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14685
Reviewed-by: Kevin Kane <kkane@microsoft.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Mike Fenelon <mike.fenelon@microsoft.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
35 files changed:
resource/csdk/SConscript
resource/csdk/connectivity/test/SConscript
resource/csdk/octbstack_product.def
resource/csdk/security/SConscript
resource/csdk/security/include/internal/psinterface.h
resource/csdk/security/include/srmutility.h
resource/csdk/security/provisioning/SConscript
resource/csdk/security/provisioning/sample/SConscript
resource/csdk/security/provisioning/src/multipleownershiptransfermanager.c
resource/csdk/security/provisioning/src/ownershiptransfermanager.c
resource/csdk/security/provisioning/src/pmutility.c
resource/csdk/security/provisioning/src/secureresourceprovider.c
resource/csdk/security/provisioning/unittest/SConscript
resource/csdk/security/src/directpairing.c
resource/csdk/security/src/dpairingresource.c
resource/csdk/security/src/pconfresource.c
resource/csdk/security/src/srmutility.c
resource/csdk/security/tool/SConscript
resource/csdk/security/unittest/SConscript
resource/csdk/stack/samples/linux/SimpleClientServer/SConscript
resource/csdk/stack/samples/linux/SimpleClientServer/ocserverslow.cpp
resource/csdk/stack/samples/linux/secure/SConscript
resource/csdk/stack/samples/tizen/build/SConscript
resource/csdk/stack/samples/tizen/build/gbsbuild.sh
resource/csdk/stack/samples/tizen/build/packaging/com.oic.ri.spec
resource/csdk/stack/src/occollection.c
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/oicgroup.c
resource/csdk/stack/test/SConscript
resource/provisioning/SConscript
resource/provisioning/examples/SConscript
resource/provisioning/unittests/SConscript
service/coap-http-proxy/SConscript
service/coap-http-proxy/samples/SConscript
service/simulator/ramlparser/SConscript