Skip to content

Commit

Permalink
gh-87: Add celix_bundle_context_type.h header.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnoltes committed Feb 11, 2024
1 parent 7b37d72 commit 9d2e7a5
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 10 deletions.
11 changes: 3 additions & 8 deletions libs/framework/include/celix_bundle_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,12 @@
#ifndef CELIX_BUNDLE_CONTEXT_H_
#define CELIX_BUNDLE_CONTEXT_H_

#include <stdarg.h>

#include "celix_cleanup.h"
#include "celix_types.h"
#include "celix_service_factory.h"
#include "celix_properties.h"
#include "celix_array_list.h"
#include "celix_bundle_context_type.h"
#include "celix_framework_export.h"
#include "celix_filter.h"
#include "celix_service_factory.h"
#include "celix_bundle_event.h"
#include "celix_log_level.h"
#include "celix_framework_export.h"

#ifdef __cplusplus
extern "C" {
Expand Down
41 changes: 41 additions & 0 deletions libs/framework/include/celix_bundle_context_type.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

#ifndef CELIX_BUNDLE_CONTEXT_TYPE_H
#define CELIX_BUNDLE_CONTEXT_TYPE_H

#ifdef __cplusplus
extern "C" {
#endif

/**
* @file celix_bundle_context_type.h
* @brief Header file for celix_bundle_context_t opaque type. Can be used for forward declaration.
*/

/**
* @brief The opaque type representing a bundle context.
*/
typedef struct celix_bundle_context celix_bundle_context_t;

#ifdef __cplusplus
}
#endif

#endif //CELIX_BUNDLE_CONTEXT_TYPE_H
4 changes: 2 additions & 2 deletions libs/framework/include/celix_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@
#ifndef CELIX_CELIX_TYPES_H
#define CELIX_CELIX_TYPES_H

#include "celix_bundle_context_type.h"

/**
* Celix types contains the declaration of many of the celix types.
* These types are declared in a separate header for forward declaration
*/


#ifdef ADD_CELIX_DEPRECATED_WARNING
#define CELIX_DEPRECATED_ATTR __attribute__ ((deprecated))
#define CELIX_DEPRECATED_ATTR_MSG(msg) __attribute__ ((deprecated(msg)))
Expand All @@ -40,7 +41,6 @@ extern "C" {

typedef struct celix_framework celix_framework_t;
typedef struct celix_bundle celix_bundle_t;
typedef struct celix_bundle_context celix_bundle_context_t;
typedef struct celix_dependency_manager celix_dependency_manager_t;
typedef struct celix_dm_component_struct celix_dm_component_t;
typedef struct celix_dm_service_dependency celix_dm_service_dependency_t;
Expand Down

0 comments on commit 9d2e7a5

Please sign in to comment.