Skip to content

Commit 0ac2902

Browse files
committed
gh-685: Cleanup include files for archive, cache and fw_private
1 parent 60a5d6a commit 0ac2902

File tree

3 files changed

+10
-25
lines changed

3 files changed

+10
-25
lines changed

libs/framework/src/celix_bundle_archive.h

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,14 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
/**
20-
* celix_bundle_archive.h
21-
*
22-
* \date Aug 8, 2010
23-
* \author <a href="mailto:dev@celix.apache.org">Apache Celix Project Team</a>
24-
* \copyright Apache License, Version 2.0
25-
*/
2619

2720
#ifndef BUNDLE_ARCHIVE_H_
2821
#define BUNDLE_ARCHIVE_H_
2922

30-
#include "celix_types.h"
31-
#include <stdbool.h>
32-
#include <stdlib.h>
23+
#include <time.h>
3324

34-
#include "celix_bundle_state.h"
25+
#include "celix_types.h"
3526
#include "celix_errno.h"
36-
#include "celix_framework_export.h"
3727
#include "celix_bundle_manifest_type.h"
3828
#include "celix_cleanup.h"
3929

@@ -53,7 +43,7 @@
5343
extern "C" {
5444
#endif
5545

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

6454
void celix_bundleArchive_destroy(celix_bundle_archive_t* archive);
6555

66-
/**
67-
* Define the cleanup function for a bundle_archive_t, so that it can be used with celix_autoptr.
68-
*/
69-
CELIX_DEFINE_AUTOPTR_CLEANUP_FUNC(celix_bundle_archive_t, celix_bundleArchive_destroy);
56+
/**
57+
* Define the cleanup function for a bundle_archive_t, so that it can be used with celix_autoptr.
58+
*/
59+
CELIX_DEFINE_AUTOPTR_CLEANUP_FUNC(celix_bundle_archive_t, celix_bundleArchive_destroy);
7060

7161
/**
7262
* @brief Returns the bundle id of the bundle archive.

libs/framework/src/celix_bundle_cache.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,8 @@
2020
#ifndef CELIX_BUNDLE_CACHE_H_
2121
#define CELIX_BUNDLE_CACHE_H_
2222

23-
#include <stdbool.h>
24-
25-
#include "celix_array_list.h"
26-
#include "celix_framework.h"
27-
#include "celix_long_hash_map.h"
28-
29-
#include "celix_bundle_archive.h"
23+
#include "celix_types.h"
24+
#include "celix_errno.h"
3025

3126
#ifdef __cplusplus
3227
extern "C" {

libs/framework/src/framework_private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "celix_log.h"
4040
#include "celix_threads.h"
4141
#include "service_registry.h"
42-
#include <stdbool.h>
42+
#include "celix_long_hash_map.h"
4343

4444
#ifdef __cplusplus
4545
extern "C" {

0 commit comments

Comments
 (0)