This is an automated email from the ASF dual-hosted git repository.
pengzheng pushed a commit to branch hotfix/framework-startup-optimization
in repository https://gitbox.apache.org/repos/asf/celix.git
The following commit(s) were added to
refs/heads/hotfix/framework-startup-optimization by this push:
new aa79fcba Minor documentation improvement.
aa79fcba is described below
commit aa79fcbaf1c550d6338086340f7e0405fbfb3edf
Author: PengZheng <[email protected]>
AuthorDate: Wed Aug 2 18:31:56 2023 +0800
Minor documentation improvement.
---
libs/framework/src/bundle_archive_private.h | 15 +++++++++++++++
libs/framework/src/celix_bundle_cache.h | 2 +-
2 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/libs/framework/src/bundle_archive_private.h
b/libs/framework/src/bundle_archive_private.h
index 1fe326fc..7a2c774a 100644
--- a/libs/framework/src/bundle_archive_private.h
+++ b/libs/framework/src/bundle_archive_private.h
@@ -75,9 +75,24 @@ const char*
celix_bundleArchive_getPersistentStoreRoot(bundle_archive_t *archive
*/
const char* celix_bundleArchive_getCurrentRevisionRoot(bundle_archive_pt
archive);
+/**
+ * @brief Invalidate the whole bundle archive.
+ */
void celix_bundleArchive_invalidate(bundle_archive_pt archive);
+
+/**
+ * @brief Invalidate the bundle archive's bundle cache.
+ */
void celix_bundleArchive_invalidateCache(bundle_archive_pt archive);
+
+/**
+ * @brief Return if the bundle cache is valid.
+ */
bool celix_bundleArchive_isCacheValid(bundle_archive_pt archive);
+
+/**
+ * @brief Remove all valid directories of the bundle archive.
+ */
void celix_bundleArchive_removeInvalidDirs(bundle_archive_pt archive);
#ifdef __cplusplus
diff --git a/libs/framework/src/celix_bundle_cache.h
b/libs/framework/src/celix_bundle_cache.h
index 309138b8..fef8a742 100644
--- a/libs/framework/src/celix_bundle_cache.h
+++ b/libs/framework/src/celix_bundle_cache.h
@@ -91,7 +91,7 @@ celix_status_t
celix_bundleCache_createSystemArchive(celix_framework_t* fw, bund
/**
* @brief Destroy the archive from the cache.
- * It releases all resources allocated in celix_bundleCache_createArchive and
deletes the invalid directories if needed.
+ * It releases all resources allocated in celix_bundleCache_createArchive and
deletes invalid directories if any.
* @param [in] cache The bundle cache to destroy archive from.
* @param [in] archive The archive to destroy.
*/