Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / service / resource-container / bundle-api / include / ResourceContainerBundleAPI.h
index c8593e5..5c713fb 100644 (file)
@@ -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