Fix some string used for group management feature
authorJihun Ha <jihun.ha@samsung.com>
Mon, 6 Jul 2015 05:10:38 +0000 (14:10 +0900)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Mon, 6 Jul 2015 16:39:58 +0000 (16:39 +0000)
1. Instead of "oc", "oic" is used for decoding a JSON request in group management.
2. There are a difference of group interface string in octypes.h and ocapi.h.
   "oic.mi.def" will be used in the both.

Change-Id: I79763315926dc6e6bba3444db5ed94a68db65eb2
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1527
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/src/oicgroup.c [changed mode: 0644->0755]
resource/include/OCApi.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index b8ba4b8..2e380fa
@@ -46,7 +46,7 @@
 #define ACTIONSET               "ActionSet"
 #define DELETE_ACTIONSET        "DelActionSet"
 
-#define OIC_ACTION_PREFIX               "{\"oc\":[{\"rep\":{"
+#define OIC_ACTION_PREFIX               "{\"oic\":[{\"rep\":{"
 #define VARIFY_POINTER_NULL(pointer, result, toExit) \
     if(pointer == NULL) \
     {\
old mode 100644 (file)
new mode 100755 (executable)
index a6e9f35..2032ca7
@@ -210,7 +210,7 @@ namespace OC
     const std::string BATCH_INTERFACE = "oic.if.b";
 
     // Used in GET, PUT, POST methods on links to other remote resources of a group.
-    const std::string GROUP_INTERFACE = "oc.mi.grp";
+    const std::string GROUP_INTERFACE = "oic.mi.grp";
 
 
     typedef std::function<void(std::shared_ptr<OCResource>)> FindCallback;