Changed ServerInstanceID to UUID 83/983/3
authorErich Keane <erich.keane@intel.com>
Wed, 13 May 2015 21:20:23 +0000 (14:20 -0700)
committerErich Keane <erich.keane@intel.com>
Fri, 15 May 2015 21:57:52 +0000 (21:57 +0000)
commit7333523f607188718755d2ff4b4a36c2e497ebec
treecdf6805637e279c056372e05896276f3561fac67
parentd147b9150542047ee42d7f622524ec0bf3b34128
Changed ServerInstanceID to UUID

The specification and design document both specify that server instance
ID should be a UUID, yet this was initially implemented as a Uint32.

This patch implements UUID generation, UUID-as-string generation,
and UUID-to-string conversion in the ocrandom module.  Additionally,
the server instance ID calls now correctly work with UUID rather than
the int32.  OCResourceIdentifer also now work directly with strings
rather than converting the value to an int32.

Change-Id: Ic37559973f82515f795d75f798dab6b6ff99d31f
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/983
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-by: Doug Hudson <douglas.hudson@intel.com>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
12 files changed:
Readme.scons.txt
build_common/linux/SConscript
resource/csdk/ocrandom/include/ocrandom.h
resource/csdk/ocrandom/src/ocrandom.c
resource/csdk/ocrandom/test/android/randomtest.cpp
resource/csdk/ocrandom/test/linux/randomtest.cpp
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/src/ocstack.c
resource/include/OCResource.h
resource/src/OCResource.cpp
resource/unit_tests.scons
resource/unittests/OCResourceTest.cpp