PengZheng commented on code in PR #476: URL: https://github.com/apache/celix/pull/476#discussion_r1115645076
########## libs/framework/include/celix_bundle_context.h: ########## @@ -942,6 +942,31 @@ bool celix_bundleContext_stopBundle(celix_bundle_context_t *ctx, long bndId); */ bool celix_bundleContext_startBundle(celix_bundle_context_t *ctx, long bndId); +/** + * @brief Update the bundle with the provided bundle id async. + * + * This will do the following: + * - stop the bundle (if needed); + * - update the bundle revision if a newer bundle zip if found; + * - start the bundle, if it was started. + * + * Will silently ignore bundle ids < 0. + * + * If this function is called on the Celix event thread, the actual updating of the bundle will be done async and + * on a separate thread. + * If this function is called from a different thread than the Celix event thread, then the function will + * return after the bundle update is completed. + * + * @warning Update bundle is not yet fully supported. Use at your own risk. + * + * @param ctx The bundle context + * @param bndId The bundle id to start. Review Comment: ```suggestion * @param bndId The bundle id to update. ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org