From: Thuyen Tran Date: Tue, 12 Aug 2014 20:33:00 +0000 (-0700) Subject: Updated functions description to match with params listed in function signature X-Git-Tag: 1.2.0+RC1~2329^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ae3d8489a6f4b7fd9dc41e5157117c4b37fb597;p=platform%2Fupstream%2Fiotivity.git Updated functions description to match with params listed in function signature --- diff --git a/examples/simpleclient.cpp b/examples/simpleclient.cpp index ece8eff..71b86f0 100644 --- a/examples/simpleclient.cpp +++ b/examples/simpleclient.cpp @@ -215,10 +215,10 @@ void foundResource(std::shared_ptr resource) void PrintUsage() { - std::cout << endl; - std::cout << "Usage : simpleclient " << endl; - std::cout << " ObserveType : 1 - Observe" << endl; - std::cout << " ObserveType : 2 - ObserveAll" << endl; + std::cout << std::endl; + std::cout << "Usage : simpleclient " << std::endl; + std::cout << " ObserveType : 1 - Observe" << std::endl; + std::cout << " ObserveType : 2 - ObserveAll" << std::endl; } int main(int argc, char* argv[]) { diff --git a/include/OCResource.h b/include/OCResource.h index 5f3e8db..3ed9045 100644 --- a/include/OCResource.h +++ b/include/OCResource.h @@ -99,12 +99,14 @@ namespace OC /** * Function to set the attributes of a resource (via PUT) - * @param AttributeMap Map which can either have all the attribute names and values + * @param attributeMap Map which can either have all the attribute names and values (which will represent entire state of the resource) or a * set of attribute names and values which needs to be modified * The callback function will be invoked with a map of attribute name and values. * The callback function will also have the result from this Put operation * This will have error codes + * @param queryParametersMap map which can have the query parameter name and value + * @param attributeHandler attribute handler * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. * NOTE: OCStackResult is defined in ocstack.h. */ @@ -114,14 +116,15 @@ namespace OC * Function to set the attributes of a resource (via PUT) * @param resourceType resource type of the resource to operate on * @param resourceInterface interface type of the resource to operate on - * @param AttributeMap Map which can either have all the attribute names and values - * (which will represent entire state of the resource) or a - * set of attribute names and values which needs to be modified - * @param QueryParamsMap Map which can have the query parameter name and value - * @param attributeHandler + * @param attributeMap attribute map + * @param queryParametersMap Map which can have the query parameter name and value + * @param attributeHandler attribute handler * The callback function will be invoked with a map of attribute name and values. * The callback function will also have the result from this Put operation - * This will have error codes + * This will have error codes. + * The AttributeMap parameter maps which can either have all the attribute names and values + * (which will represent entire state of the resource) or a + * set of attribute names and values which needs to be modified * @return OCStackResult return value of this API. Returns OC_STACK_OK if success.
* NOTE: OCStackResult is defined in ocstack.h.
* TODO: consider to input hrefs for resource collection @@ -144,9 +147,6 @@ namespace OC /** * Function to cancel the observation on the resource - * @param observeCancellationHandler handles callback - * The callback function will also have the result from this operation - * This will have error codes * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. * NOTE: OCStackResult is defined in ocstack.h. */