X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FOCPlatform.h;h=04a18489c8c08cdcb2f204d0f6d7ba933947b26b;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=83622bb40e01295f0a5aef14d83cf259c04a8492;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/OCPlatform.h b/resource/include/OCPlatform.h index 83622bb..04a1848 100644 --- a/resource/include/OCPlatform.h +++ b/resource/include/OCPlatform.h @@ -32,7 +32,7 @@ namespace OC { /** - * @brief: This namespace contains the main entrance/functionality of the product. + * This namespace contains the main entrance/functionality of the product. * It may be used with OC::OCPlatform::functionName. To set a custom configuration, * the implementer must make a call to OCPlatform::Configure before the first usage * of a function in this namespace. @@ -41,7 +41,7 @@ namespace OC { /** * API for overwriting the default configuration of the OCPlatform object. - * Note: Any calls made to this AFTER the first call to OCPlatform::Instance + * @note Any calls made to this AFTER the first call to OCPlatform::Instance * will have no affect */ void Configure(const PlatformConfig& config); @@ -55,10 +55,12 @@ namespace OC * @param OCResourceHandle resource handle of the resource * @param QualityOfService the quality of communication * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. - * NOTE: This API is for server side only. - * NOTE: OCResourceHandle is defined in ocstack.h. - * NOTE: OCStackResult is defined in ocstack.h. + * @return Returns ::OC_STACK_OK if success. + * @note This API is for server side only. + * @note OCResourceHandle is defined in ocstack.h + * @note OCStackResult is defined in ocstack.h. + * @see notifyAllObservers(OCResourceHandle) + * @see notifyAllObservers(OCResourceHandle, QualityOfService) */ OCStackResult notifyAllObservers(OCResourceHandle resourceHandle); OCStackResult notifyAllObservers(OCResourceHandle resourceHandle, QualityOfService QoS); @@ -73,11 +75,10 @@ namespace OC * resource change. * @param QualityOfService the quality of communication * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. - * - * NOTE: This API is for server side only. - * NOTE: OCResourceHandle is defined in ocstack.h. - * NOTE: OCStackResult is defined in ocstack.h. + * @return Returns ::OC_STACK_OK if success. + * @note This API is for server side only. + * @note OCResourceHandle is defined in ocstack.h. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult notifyListOfObservers( OCResourceHandle resourceHandle, @@ -91,15 +92,15 @@ namespace OC /** * API for Service and Resource Discovery. - * NOTE: This API applies to client side only. + * @note This API applies to client side only. * - * @param host - Host IP Address of a service to direct resource discovery query. If null or + * @param host Host IP Address of a service to direct resource discovery query. If null or * empty, performs multicast resource discovery query - * @param resourceURI - name of the resource. If null or empty, performs search for all + * @param resourceURI name of the resource. If null or empty, performs search for all * resource names - * @param connectivityType - @ref OCConnectivityType type of connectivity indicating the + * @param connectivityType ::OCConnectivityType type of connectivity indicating the * interface. Example: OC_WIFI, OC_ETHERNET, OC_ALL - * @param handler - Handles callbacks, success states and failure states. + * @param resourceHandler Handles callbacks, success states and failure states. * * Four modes of discovery defined as follows: * (NULL/Empty, NULL/Empty) - Performs ALL service discovery AND ALL resource @@ -112,11 +113,11 @@ namespace OC * from a particular service. * @param QualityOfService the quality of communication * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. - * NOTE: First parameter 'host' currently represents an IP address. This will change in + * @return Returns ::OC_STACK_OK if success. + * @note First parameter 'host' currently represents an IP address. This will change in * future and will refer to endpoint interface so that we can refer to other transports such * as BTH etc. - * NOTE: OCStackResult is defined in ocstack.h. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult findResource(const std::string& host, const std::string& resourceURI, OCConnectivityType connectivityType, FindCallback resourceHandler); @@ -128,14 +129,16 @@ namespace OC * API for Device Discovery * * - * @param host - Host IP Address. If null or empty, Multicast is performed. - * @param deviceURI - Uri containing address to the virtual device in C Stack + * @param host Host IP Address. If null or empty, Multicast is performed. + * @param deviceURI Uri containing address to the virtual device in C Stack ("/oic/d") - * @param connectivityType - @ref OCConnectivityType type of connectivity indicating the + * @param connectivityType ::OCConnectivityType type of connectivity indicating the * interface. Example: OC_WIFI, OC_ETHERNET, OC_ALL - * @param deviceInfoHandler - device discovery callback + * @param deviceInfoHandler device discovery callback * @param QoS the quality of communication * + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult getDeviceInfo(const std::string& host, const std::string& deviceURI, OCConnectivityType connectivityType, FindDeviceCallback deviceInfoHandler); @@ -147,14 +150,16 @@ namespace OC * API for Platform Discovery * * - * @param host - Host IP Address. If null or empty, Multicast is performed. - * @param platformURI - Uri containing address to the virtual platform in C Stack + * @param host Host IP Address. If null or empty, Multicast is performed. + * @param platformURI Uri containing address to the virtual platform in C Stack ("/oic/p") - * @param connectivityType - @ref OCConnectivityType type of connectivity indicating the + * @param connectivityType ::OCConnectivityType type of connectivity indicating the * interface. Example: OC_WIFI, OC_ETHERNET, OC_ALL - * @param platformInfoHandler - platform discovery callback + * @param platformInfoHandler platform discovery callback * @param QoS the quality of communication * + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult getPlatformInfo(const std::string& host, const std::string& platformURI, OCConnectivityType connectivityType, FindPlatformCallback platformInfoHandler); @@ -164,22 +169,22 @@ namespace OC /** * This API registers a resource with the server - * NOTE: This API applies to server side only. - * - * @param resourceHandle - Upon successful registration, resourceHandle will be filled - * @param resourceURI - The URI of the resource. Example: "a/light". See NOTE below - * @param resourceTypeName - The resource type. Example: "light" - * @param resourceInterface - The resource interface (whether it is collection etc). - * @param entityHandler - entity handler callback. - * @param resourceProperty - indicates the property of the resource. Defined in ocstack.h. + * @note This API applies to server side only. + * + * @param resourceHandle Upon successful registration, resourceHandle will be filled + * @param resourceURI The URI of the resource. Example: "a/light". See NOTE below + * @param resourceTypeName The resource type. Example: "light" + * @param resourceInterface The resource interface (whether it is collection etc). + * @param entityHandler entity handler callback. + * @param resourceProperty indicates the property of the resource. Defined in ocstack.h. * setting resourceProperty as OC_DISCOVERABLE will allow Discovery of this resource * setting resourceProperty as OC_OBSERVABLE will allow observation * settings resourceProperty as OC_DISCOVERABLE | OC_OBSERVABLE will allow both discovery and * observation * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. - * NOTE: "a/light" is a relative URI. - * Above relative URI will be prepended (by core) with a host IP + namespace "oc" + * @return Returns ::OC_STACK_OK if success. + * @note "a/light" is a relative URI. + * Above relative URI will be prepended (by core) with a host IP + namespace "oic" * Therefore, fully qualified URI format would be //HostIP-Address/namespace/relativeURI" * Example, a relative URI: 'a/light' will result in a fully qualified URI: * //192.168.1.1/oic/a/light" @@ -187,7 +192,7 @@ namespace OC * qualified URI OR * first parameter can take fully qualified URI and core will take that as is for further * operations - * NOTE: OCStackResult is defined in ocstack.h. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult registerResource(OCResourceHandle& resourceHandle, std::string& resourceURI, @@ -198,12 +203,13 @@ namespace OC /** * This API registers a resource with the server - * NOTE: This API applies to server & client side. + * @note This API applies to server & client side. - * @param resourceHandle - Upon successful registration, resourceHandle will be filled - * @param OCResource - The instance of OCResource that all data filled. + * @param resourceHandle Upon successful registration, resourceHandle will be filled + * @param OCResource The instance of OCResource that all data filled. * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult registerResource(OCResourceHandle& resourceHandle, const std::shared_ptr< OCResource > resource); @@ -211,67 +217,60 @@ namespace OC /** * Register Device Info * - * @param deviceInfo - structure containing all the device specific information - * - * @return - * OC_STACK_OK - no errors - * OC_STACK_ERROR - stack process error + * @param deviceInfo structure containing all the device specific information + * @return Returns ::OC_STACK_OK if no errors and ::OC_STACK_ERROR in case of stack process error */ OCStackResult registerDeviceInfo(const OCDeviceInfo deviceInfo); /** * Register Platform Info * - * @param platformInfo - structure containing all the platform specific information - * - * @return - * OC_STACK_OK - no errors - * OC_STACK_ERROR - stack process error + * @param platformInfo structure containing all the platform specific information + * @return Returns ::OC_STACK_OK if no errors and ::OC_STACK_ERROR in case of stack process error */ OCStackResult registerPlatformInfo(const OCPlatformInfo platformInfo); /** * Set default device entity handler * - * @param entityHandler - entity handler to handle requests for - * any undefined resources or default actions. - * if NULL is passed it removes the device default entity handler. - * - * @return - * OC_STACK_OK - no errors - * OC_STACK_ERROR - stack process error + * @param entityHandler entity handler to handle requests for + * any undefined resources or default actions. + * if NULL is passed it removes the device default entity handler. + * @return Returns ::OC_STACK_OK if no errors and ::OC_STACK_ERROR in case of stack process error */ OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler); /** * This API unregisters a resource with the server - * NOTE: This API applies to server side only. + * @note This API applies to server side only. * - * @param resourceHandle - This is the resource handle which we which to unregister from the + * @param resourceHandle This is the resource handle which we need to unregister from the * server * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success. - * NOTE: OCStackResult is defined in ocstack.h. + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. */ OCStackResult unregisterResource(const OCResourceHandle& resourceHandle); /** * Add a resource to a collection resource. * - * @param collectionHandle - handle to the collection resource - * @param addedResourceHandle - handle to resource to be added to the collection resource - * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success.
- * NOTE: OCStackResult is defined in ocstack.h.
- * NOTE: bindResource must be used only after the both collection resource and - * resource to add under a collections are created and respective handles obtained
- * Example:
- * Step 1: registerResource(homeResourceHandle, "a/home", "home", Link_Interface, - * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 2: registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, - * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 3: bindResource(homeResourceHandle, kitchenResourceHandle);
- * At the end of Step 3, resource "a/home" will contain a reference to "a/kitchen".
+ * @param collectionHandle handle to the collection resource + * @param resourceHandle handle to resource to be added to the collection resource + * + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. + * @note bindResource must be used only after the both collection resource and + * resource to add under a collections are created and respective handles obtained + * + * @par Example: + * -# registerResource(homeResourceHandle, "a/home", "home", Link_Interface, + * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, + * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# bindResource(homeResourceHandle, kitchenResourceHandle); + * @par + * At the end of Step 3, resource "a/home" will contain a reference to "a/kitchen". */ OCStackResult bindResource(const OCResourceHandle collectionHandle, const OCResourceHandle resourceHandle); @@ -279,27 +278,29 @@ namespace OC /** * Add multiple resources to a collection resource. * - * @param collectionHandle - handle to the collection resource + * @param collectionHandle handle to the collection resource * @param addedResourceHandleList reference to list of resource handles to be added to the * collection resource * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success.
- * NOTE: OCStackResult is defined in ocstack.h.
- * NOTE: bindResources must be used only after the both collection resource and + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. + * @note bindResources must be used only after the both collection resource and * list of resources to add under a collection are created and respective handles - * obtained
- * Example:
- * Step 1: registerResource(homeResourceHandle, "a/home", "home", Link_Interface, - * homeEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 2: registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, - * kitchenEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 3: registerResource(roomResourceHandle, "a/room", "room", Link_Interface, - * roomEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 4: std::vector rList; rList.push_back(kitchenResourceHandle); - * rList.push_back(roomResourceHandle);
- * Step 5: bindResource(homeResourceHandle, rList);
+ * obtained. + * + * @par Example: + * -# registerResource(homeResourceHandle, "a/home", "home", Link_Interface, + * homeEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, + * kitchenEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(roomResourceHandle, "a/room", "room", Link_Interface, + * roomEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# std::vector rList; rList.push_back(kitchenResourceHandle); + * rList.push_back(roomResourceHandle); + * -# bindResource(homeResourceHandle, rList); + * @par * At the end of Step 5, resource "a/home" will contain a references to "a/kitchen" and - * "a/room"
+ * "a/room" */ OCStackResult bindResources(const OCResourceHandle collectionHandle, const std::vector& addedResourceHandleList); @@ -307,21 +308,23 @@ namespace OC /** * Unbind a resource from a collection resource. * - * @param collectionHandle - handle to the collection resource + * @param collectionHandle handle to the collection resource * @param resourceHandle resource handle to be unbound from the collection resource * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success.
- * NOTE: OCStackResult is defined in ocstack.h.
- * NOTE: unbindResource must be used only after the both collection resource and - * resource to unbind from a collection are created and respective handles obtained
- * Example
- * Step 1: registerResource(homeResourceHandle, "a/home", "home", Link_Interface, - * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 2: registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, - * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 3: bindResource(homeResourceHandle, kitchenResourceHandle);
- * Step 4: unbindResource(homeResourceHandle, kitchenResourceHandle);
- * At the end of Step 4, resource "a/home" will no longer reference "a/kitchen".
+ * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. + * @note unbindResource must be used only after the both collection resource and + * resource to unbind from a collection are created and respective handles obtained + * + * @par Example: + * -# registerResource(homeResourceHandle, "a/home", "home", Link_Interface, + * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, + * entityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# bindResource(homeResourceHandle, kitchenResourceHandle); + * -# unbindResource(homeResourceHandle, kitchenResourceHandle); + * @par + * At the end of Step 4, resource "a/home" will no longer reference "a/kitchen". */ OCStackResult unbindResource(const OCResourceHandle collectionHandle, const OCResourceHandle resourceHandle); @@ -329,49 +332,50 @@ namespace OC /** * Unbind resources from a collection resource. * - * @param collectionHandle - handle to the collection resource + * @param collectionHandle handle to the collection resource * @param resourceHandleList List of resource handles to be unbound from the collection * resource * - * @return OCStackResult return value of this API. Returns OC_STACK_OK if success.
- * - * NOTE: OCStackResult is defined in ocstack.h.
- * NOTE: unbindResources must be used only after the both collection resource and + * @return Returns ::OC_STACK_OK if success. + * @note OCStackResult is defined in ocstack.h. + * @note unbindResources must be used only after the both collection resource and * list of resources resource to unbind from a collection are created and respective handles - * obtained.
- * Example
- * Step 1: registerResource(homeResourceHandle, "a/home", "home", Link_Interface, - * homeEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 2: registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, - * kitchenEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 3: registerResource(roomResourceHandle, "a/room", "room", Link_Interface, - * roomEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE);
- * Step 4: std::vector rList; rList.push_back(kitchenResourceHandle); - * rList.push_back(roomResourceHandle);
- * Step 5: bindResource(homeResourceHandle, rList);
- * Step 6: unbindResources(homeResourceHandle, rList);
+ * obtained. + * + * @par Example: + * -# registerResource(homeResourceHandle, "a/home", "home", Link_Interface, + * homeEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(kitchenResourceHandle, "a/kitchen", "kitchen", Link_Interface, + * kitchenEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# registerResource(roomResourceHandle, "a/room", "room", Link_Interface, + * roomEntityHandler, OC_DISCOVERABLE | OC_OBSERVABLE); + * -# std::vector rList; rList.push_back(kitchenResourceHandle); + * rList.push_back(roomResourceHandle); + * -# bindResource(homeResourceHandle, rList); + * -# unbindResources(homeResourceHandle, rList); + * @par * At the end of Step 6, resource "a/home" will no longer reference to "a/kitchen" and - * "a/room"
+ * "a/room" */ OCStackResult unbindResources(const OCResourceHandle collectionHandle, const std::vector& resourceHandleList); /** * Binds a type to a particular resource - * @param resourceHandle - handle to the resource - * @param resourceTypeName - new typename to bind to the resource - - * @return OCStackResult - return value of the API. Returns OCSTACK_OK if success
+ * @param resourceHandle handle to the resource + * @param resourceTypeName new typename to bind to the resource + * + * @return Returns ::OC_STACK_OK if success. */ OCStackResult bindTypeToResource(const OCResourceHandle& resourceHandle, const std::string& resourceTypeName); /** * Binds an interface to a particular resource - * @param resourceHandle - handle to the resource - * @param resourceTypeName - new interface to bind to the resource - - * @return OCStackResult - return value of the API. Returns OCSTACK_OK if success
+ * @param resourceHandle handle to the resource + * @param resourceInterfaceName new interface to bind to the resource + * + * @return Returns ::OC_STACK_OK if success. */ OCStackResult bindInterfaceToResource(const OCResourceHandle& resourceHandle, const std::string& resourceInterfaceName); @@ -380,13 +384,13 @@ namespace OC /** * Start Presence announcements. * - * @param ttl - time to live - * Note: If ttl is '0', then the default stack value will be used (60 Seconds). - * - * If ttl is greater than OC_MAX_PRESENCE_TTL_SECONDS, then the ttl will be set to - * OC_MAX_PRESENCE_TTL_SECONDS. - * - * @return OCStackResult - Returns OCSTACK_OK if success
+ * @param ttl time to live + * @par + * If ttl is '0', then the default stack value will be used (60 Seconds). + * If ttl is greater than OC_MAX_PRESENCE_TTL_SECONDS, then the ttl will be set to + * OC_MAX_PRESENCE_TTL_SECONDS. + * @par + * @return Returns ::OC_STACK_OK if success. * * Server can call this function when it comes online for the * first time, or when it comes back online from offline mode, @@ -398,7 +402,7 @@ namespace OC /** * Stop Presence announcements. * - * @return OCStackResult - Returns OCSTACK_OK if success
+ * @return Returns ::OC_STACK_OK if success. * * Server can call this function when it is terminating, * going offline, or when going away from network. @@ -411,18 +415,18 @@ namespace OC * every time a server adds/removes/alters a resource, starts or is intentionally * stopped (potentially more to be added later). * - * @param presenceHandle - a handle object that can be used to identify this subscription + * @param presenceHandle a handle object that can be used to identify this subscription * request. It can be used to unsubscribe from these events in the future. * It will be set upon successful return of this method. - * @param host - The IP address/addressable name of the server to subscribe to. + * @param host The IP address/addressable name of the server to subscribe to. * This should be in the format coap://address:port - * @param connectivityType - @ref OCConnectivityType type of connectivity indicating the + * @param connectivityType ::OCConnectivityType type of connectivity indicating the * interface. Example: OC_WIFI, OC_ETHERNET, OC_ALL - * @param resourceType - a resource type specified as a filter for subscription callbacks. - * @param presenceHandler - callback function that will receive notifications/subscription + * @param resourceType a resource type specified as a filter for subscription callbacks. + * @param presenceHandler callback function that will receive notifications/subscription * events * - * @return OCStackResult - return value of the API. Returns OCSTACK_OK if success
+ * @return Returns ::OC_STACK_OK if success. */ OCStackResult subscribePresence(OCPresenceHandle& presenceHandle, const std::string& host, OCConnectivityType connectivityType, SubscribeCallback presenceHandler); @@ -435,10 +439,10 @@ namespace OC * you may for a short time still receive events from the server since it may take time * for the unsubscribe to take effect. * - * @param presenceHandle - the handle object provided by the subscribePresence call that + * @param presenceHandle the handle object provided by the subscribePresence call that * identifies this subscription. * - * @return OCStackResult - return value of the API. Returns OCSTACK_OK if success
+ * @return Returns ::OC_STACK_OK if success. */ OCStackResult unsubscribePresence(OCPresenceHandle presenceHandle); @@ -452,23 +456,23 @@ namespace OC * to be a Client or Client/Server. Otherwise, this will return an empty * shared ptr. * - * @param host - a string containing a resolvable host address of the server + * @param host a string containing a resolvable host address of the server * holding the resource. Currently this should be in the format * coap://address:port, though in the future, we expect this to * change to //address:port * - * @param uri - the rest of the resource's URI that will permit messages to be + * @param uri the rest of the resource's URI that will permit messages to be * properly routed. Example: /a/light * - * @param connectivityType - @ref OCConnectivityType type of connectivity indicating the + * @param connectivityType ::OCConnectivityType type of connectivity indicating the * interface. Example: OC_WIFI, OC_ETHERNET, OC_ALL * - * @param isObservable - a boolean containing whether the resource supports observation + * @param isObservable a boolean containing whether the resource supports observation * - * @param resourceTypes - a collection of resource types implemented by the resource + * @param resourceTypes a collection of resource types implemented by the resource * - * @param interfaces - a collection of interfaces that the resource supports/implements - * @return OCResource::Ptr - a shared pointer to the new resource object + * @param interfaces a collection of interfaces that the resource supports/implements + * @return OCResource::Ptr a shared pointer to the new resource object */ OCResource::Ptr constructResourceObject(const std::string& host, const std::string& uri, @@ -479,9 +483,10 @@ namespace OC /** * Allows application entity handler to send response to an incoming request. * - * @param pResponse - OCResourceResponse pointer that will permit to set values related - * to resource response.
- * @return OCStackResult - return value of the API. Returns OCSTACK_OK if success
+ * @param pResponse OCResourceResponse pointer that will permit to set values related + * to resource response. + * + * @return Returns ::OC_STACK_OK if success. */ OCStackResult sendResponse(const std::shared_ptr pResponse); }