Add resource type rule
authoryoungman <yman.jung@samsung.com>
Tue, 3 Nov 2015 08:27:15 +0000 (17:27 +0900)
committeryoungman <yman.jung@samsung.com>
Tue, 3 Nov 2015 11:08:20 +0000 (20:08 +0900)
Change-Id: I9ace391b36e8b75ab46ffba1779f8516d496fd40
Signed-off-by: youngman <yman.jung@samsung.com>
daemon/icd-ioty.h
lib/include/iotcon-client.h
lib/include/iotcon-resource-types.h
lib/include/iotcon-resource.h

index 0422544..adf4e8b 100644 (file)
@@ -30,8 +30,8 @@
 #define ICD_IOTY_COAPS "coaps://"
 
 /* TODO Define Tizen Information Resource(uri, resource type) */
-#define ICD_IOTY_TIZEN_INFO_URI "/org/tizen/iot/devInfo"
-#define ICD_IOTY_TIZEN_INFO_TYPE "org.tizen.iot.devInfo"
+#define ICD_IOTY_TIZEN_INFO_URI "/org/tizen/iot/d"
+#define ICD_IOTY_TIZEN_INFO_TYPE "org.tizen.iot.d"
 
 #define ICD_IOTY_TIZEN_INFO_DEVICE_NAME "device_name"
 #define ICD_IOTY_TIZEN_INFO_TIZEN_DEVICE_ID "tizen_device_id"
index 4402be1..4c75664 100644 (file)
@@ -66,6 +66,10 @@ typedef void (*iotcon_presence_cb)(int result, unsigned int nonce,
  * @privlevel public
  * @privilege %http://tizen.org/privilege/internet
  *
+ * @remarks The length of @a resource_type should be less than or equal to 61.\n
+ * The @a resource_type must start with a lowercase alphabetic character, followed by a sequence
+ * of lowercase alphabetic, numeric, ".", or "-" characters, and contains no white space.\n
+ *
  * @param[in] host_address The address or addressable name of the server
  * @param[in] connectivity_type The connectivity type
  * @param[in] resource_type A resource type that a client has interested in
@@ -146,6 +150,10 @@ typedef void (*iotcon_found_resource_cb)(iotcon_remote_resource_h resource, int
  * @privlevel public
  * @privilege %http://tizen.org/privilege/internet
  *
+ * @remarks The length of @a resource_type should be less than or equal to 61.\n
+ * The @a resource_type must start with a lowercase alphabetic character, followed by a sequence
+ * of lowercase alphabetic, numeric, ".", or "-" characters, and contains no white space.\n
+ *
  * @param[in] host_address The address or addressable name of server
  * @param[in] connectivity_type The connectivity type
  * @param[in] resource_type The resource type specified as a filter for the resource
index dd5bdf3..02be010 100644 (file)
@@ -73,7 +73,9 @@ void iotcon_resource_types_destroy(iotcon_resource_types_h types);
  * @brief Inserts a resource type into the list.
  *
  * @since_tizen 3.0
- * @remarks The length of resource type should be less than or equal to 61. \n
+ * @remarks The length of @a type should be less than or equal to 61.\n
+ * The @a type must start with a lowercase alphabetic character, followed by a sequence
+ * of lowercase alphabetic, numeric, ".", or "-" characters, and contains no white space.\n
  * Duplicate strings are not allowed.
  *
  * @param[in] types The handle of the resource types
index e36f199..1047b3e 100644 (file)
@@ -177,6 +177,10 @@ int iotcon_resource_bind_interface(iotcon_resource_h resource, iotcon_interface_
  * @privlevel public
  * @privilege %http://tizen.org/privilege/internet
  *
+ * @remarks The length of @a resource_type should be less than or equal to 61.\n
+ * The @a resource_type must start with a lowercase alphabetic character, followed by a sequence
+ * of lowercase alphabetic, numeric, ".", or "-" characters, and contains no white space.\n
+ *
  * @param[in] resource_handle The handle of the resource
  * @param[in] resource_type The type to be bound to the resource
  *