projects
/
platform
/
upstream
/
iotivity.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 1.1.0
[platform/upstream/iotivity.git]
/
service
/
resource-container
/
bundle-api
/
include
/
ResourceContainerBundleAPI.h
diff --git
a/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h
b/service/resource-container/bundle-api/include/ResourceContainerBundleAPI.h
index
c8593e5
..
5c713fb
100644
(file)
--- 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
*
*
* @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
/**
* Unregister bundle resource from the container
@@
-110,4
+113,4
@@
namespace OIC
}
}
}
}
-#endif
+#endif
\ No newline at end of file