Celix  2.2.0
An implementation of the OSGi specification adapted to C and C++
Public Attributes | List of all members
celix_bundle_tracker_options Struct Reference

#include <celix_bundle_context.h>

Public Attributes

void *callbackHandle OPTS_INIT
 
void(* onStarted )(void *handle, const celix_bundle_t *bundle) OPTS_INIT
 
void(* onStopped )(void *handle, const celix_bundle_t *bundle) OPTS_INIT
 
void(* onBundleEvent )(void *handle, const celix_bundle_event_t *event) OPTS_INIT
 
bool includeFrameworkBundle OPTS_INIT
 

Detailed Description

The Service Bundle Tracking options can be used to fine tune the requested bundle tracker options.

Member Data Documentation

void(* celix_bundle_tracker_options::onBundleEvent) (void *handle, const celix_bundle_event_t *event) OPTS_INIT
Parameters
handleThe handle, contains the value of the callbackHandle.
eventThe bundle event. Is only valid during the callback.
void(* celix_bundle_tracker_options::onStarted) (void *handle, const celix_bundle_t *bundle) OPTS_INIT

Tracker callback when a bundle is installed.

Parameters
handleThe handle, contains the value of the callbackHandle.
bundleThe bundle which has been started. The bundle pointer is only guaranteed to be valid during the callback.
void(* celix_bundle_tracker_options::onStopped) (void *handle, const celix_bundle_t *bundle) OPTS_INIT

Tracker callback when a bundle is removed.

Parameters
handleThe handle, contains the value of the callbackHandle.
bundleThe bundle which has been started. The bundle pointer is only guaranteed to be valid during the callback.
void* callbackHandle celix_bundle_tracker_options::OPTS_INIT

The optional callback pointer used in all the provided callback function (set, add, remove, setWithProperties, etc).

bool includeFrameworkBundle celix_bundle_tracker_options::OPTS_INIT

Default the framework bundle (bundle id 0) will not trigger the callbacks. This is done, because the framework bundle is a special bundle which is generally not needed in the callbacks.


The documentation for this struct was generated from the following file: