X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-manipulation%2Fsrc%2FresourceContainer%2Finclude%2FBundleInfoInternal.h;h=078ad43bc2b33ba215d9724ce8c917ae73422b44;hb=37bbf3358c62db35b0d97c73fa9ed587775e144e;hp=8467da3bed602baef236c69aee51b012f6f1b1e3;hpb=280d602a0434d6e3aa169363e9d97b02995794c5;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-manipulation/src/resourceContainer/include/BundleInfoInternal.h b/service/resource-manipulation/src/resourceContainer/include/BundleInfoInternal.h index 8467da3..078ad43 100644 --- a/service/resource-manipulation/src/resourceContainer/include/BundleInfoInternal.h +++ b/service/resource-manipulation/src/resourceContainer/include/BundleInfoInternal.h @@ -29,11 +29,14 @@ using namespace std; using namespace OIC::Service; -namespace OIC{ - namespace Service{ - +namespace OIC +{ + namespace Service + { typedef void activator_t(ResourceContainerBundleAPI *, std::string bundleId); typedef void deactivator_t(void); + typedef void resourceCreator_t(resourceInfo resourceInfo); + typedef void resourceDestroyer_t(BundleResource *pBundleResource); class BundleInfoInternal: public BundleInfo { @@ -73,19 +76,27 @@ namespace OIC{ void setBundleDeactivator(deactivator_t *); deactivator_t *getBundleDeactivator(); + void setResourceCreator(resourceCreator_t *); + resourceCreator_t *getResourceCreator(); + + void setResourceDestroyer(resourceDestroyer_t *); + resourceDestroyer_t *getResourceDestroyer(); + void setBundleHandle(void *); void *getBundleHandle(); void setJavaBundle(bool javaBundle); bool getJavaBundle(); - void setBundleInfo(BundleInfo* bundleInfo); + void setBundleInfo(BundleInfo *bundleInfo); private: bool m_loaded, m_activated, m_java_bundle; int m_id; activator_t *m_activator; deactivator_t *m_deactivator; + resourceCreator_t *m_resourceCreator; + resourceDestroyer_t *m_resourceDestroyer; void *m_bundleHandle; string m_activator_name; jmethodID m_java_activator, m_java_deactivator;