Skip to content

Commit

Permalink
gh-685: Cleanup include files for archive, cache and fw_private
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Jan 4, 2025
1 parent 60a5d6a commit 0ac2902
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
24 changes: 7 additions & 17 deletions libs/framework/src/celix_bundle_archive.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,24 +16,14 @@
* specific language governing permissions and limitations
* under the License.
*/
/**
* celix_bundle_archive.h
*
* \date Aug 8, 2010
* \author <a href="mailto:dev@celix.apache.org">Apache Celix Project Team</a>
* \copyright Apache License, Version 2.0
*/

#ifndef BUNDLE_ARCHIVE_H_
#define BUNDLE_ARCHIVE_H_

#include "celix_types.h"
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>

#include "celix_bundle_state.h"
#include "celix_types.h"
#include "celix_errno.h"
#include "celix_framework_export.h"
#include "celix_bundle_manifest_type.h"
#include "celix_cleanup.h"

Expand All @@ -53,7 +43,7 @@
extern "C" {
#endif

/**
/**
* @brief Create bundle archive.
* Create a bundle archive for the given root, id, location and revision nr.
* Also create the bundle cache dir and if will reuse a existing bundle resource cache dir if the provided
Expand All @@ -63,10 +53,10 @@ celix_status_t celix_bundleArchive_create(celix_framework_t* fw, const char *arc

void celix_bundleArchive_destroy(celix_bundle_archive_t* archive);

/**
* Define the cleanup function for a bundle_archive_t, so that it can be used with celix_autoptr.
*/
CELIX_DEFINE_AUTOPTR_CLEANUP_FUNC(celix_bundle_archive_t, celix_bundleArchive_destroy);
/**
* Define the cleanup function for a bundle_archive_t, so that it can be used with celix_autoptr.
*/
CELIX_DEFINE_AUTOPTR_CLEANUP_FUNC(celix_bundle_archive_t, celix_bundleArchive_destroy);

/**
* @brief Returns the bundle id of the bundle archive.
Expand Down
9 changes: 2 additions & 7 deletions libs/framework/src/celix_bundle_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,8 @@
#ifndef CELIX_BUNDLE_CACHE_H_
#define CELIX_BUNDLE_CACHE_H_

#include <stdbool.h>

#include "celix_array_list.h"
#include "celix_framework.h"
#include "celix_long_hash_map.h"

#include "celix_bundle_archive.h"
#include "celix_types.h"
#include "celix_errno.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion libs/framework/src/framework_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#include "celix_log.h"
#include "celix_threads.h"
#include "service_registry.h"
#include <stdbool.h>
#include "celix_long_hash_map.h"

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 0ac2902

Please sign in to comment.