X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-container%2Fbundle-api%2Finclude%2FResourceContainerBundleAPI.h;h=5c713fb4a467bf807a77292a86f827e816ef5b2a;hb=390866079e285d2c74918432c0d597d5da52f8a0;hp=c8593e523204f6a182fac4d85dc73ccb8a905ac8;hpb=3e9402ad71cb3e93266a77796f44d17bab9853fd;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h b/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h index c8593e5..5c713fb 100644 --- a/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h +++ b/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h @@ -54,9 +54,12 @@ namespace OIC * * @param resource bundle resource to register * - * @return void + * @return int + * 0 in case of an success + * -EEXIST when the resource already exists and was not registered + * -EINVAL when it was not possible to create such a resource */ - virtual void registerResource(BundleResource::Ptr resource) = 0; + virtual int registerResource(BundleResource::Ptr resource) = 0; /** * Unregister bundle resource from the container @@ -110,4 +113,4 @@ namespace OIC } } -#endif +#endif \ No newline at end of file