Added ability to init with only transports that are compiled-in.
authorJoseph Morrow <joseph.l.morrow@intel.com>
Mon, 23 Feb 2015 21:07:13 +0000 (16:07 -0500)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Tue, 24 Feb 2015 17:32:30 +0000 (17:32 +0000)
commit429151c9bd9f1327a228d00d24bb14023dbe3499
tree9851441abe9626dc9256386f8c360ff6d6cf9d9b
parent21fa44a9e3a9efea5f9ac4d320f4dfa9b4d427f4
Added ability to init with only transports that are compiled-in.

Added algorithm to try to initialize all transports. If a transport
is not currently supported (ie. not compile-in to CA Library) then
we ignore the error.

This fixes Jira Ticket IOT-255 -> "CA Call to CASelectNetwork() fails
with CA_NOT_SUPPORTED when two network types are specified."

Change-Id: I599a4a70fa3f64aa6215997bfbb0e0252437e830
Signed-off-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/326
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/csdk/stack/src/ocstack.c