Apache Celix
2.3.0
An implementation of the OSGi specification adapted to C and C++
|
Service Use Options used to fine tune which services to use and which callbacks to use. More...
#include <celix_bundle_context.h>
Public Attributes | |
celix_service_filter_options_t filter | CELIX_OPTS_INIT |
The service filter options, used to setup the filter for the service to track. More... | |
double waitTimeoutInSeconds | CELIX_OPTS_INIT |
An optional timeout (in seconds), if > 0 the use service call will block until the timeout is expired or when at least one service is found. Note that it will be ignored when use service on the event loop. Default (0) More... | |
void *callbackHandle | CELIX_OPTS_INIT |
The optional callback pointer used in all the provided callback function (set, add, remove, setWithProperties, etc). More... | |
void(* | use )(void *handle, void *svc) CELIX_OPTS_INIT |
The optional use callback will be called when for every services found conform the service filter options. More... | |
void(* | useWithProperties )(void *handle, void *svc, const celix_properties_t *props) CELIX_OPTS_INIT |
The optional useWithProperties callback is handled as the use callback, but with the addition that the service properties will also be provided to the callback. More... | |
void(* | useWithOwner )(void *handle, void *svc, const celix_properties_t *props, const celix_bundle_t *svcOwner) CELIX_OPTS_INIT |
The optional useWithOwner callback is handled as the yse callback, but with the addition that the service properties and the bundle owning the service will also be provided to the callback. More... | |
int flags | CELIX_OPTS_INIT |
Service Use Options used to fine tune which services to use and which callbacks to use.
celix_service_filter_options_t filter celix_service_use_options::CELIX_OPTS_INIT |
The service filter options, used to setup the filter for the service to track.
double waitTimeoutInSeconds celix_service_use_options::CELIX_OPTS_INIT |
An optional timeout (in seconds), if > 0 the use service call will block until the timeout is expired or when at least one service is found. Note that it will be ignored when use service on the event loop. Default (0)
void* callbackHandle celix_service_use_options::CELIX_OPTS_INIT |
The optional callback pointer used in all the provided callback function (set, add, remove, setWithProperties, etc).
int flags celix_service_use_options::CELIX_OPTS_INIT |
void(* celix_service_use_options::use) (void *handle, void *svc) CELIX_OPTS_INIT |
The optional use callback will be called when for every services found conform the service filter options.
handle | The callbackHandle pointer as provided in the service tracker options. |
svc | The service pointer of the highest ranking service. |
void(* celix_service_use_options::useWithOwner) (void *handle, void *svc, const celix_properties_t *props, const celix_bundle_t *svcOwner) CELIX_OPTS_INIT |
The optional useWithOwner callback is handled as the yse callback, but with the addition that the service properties and the bundle owning the service will also be provided to the callback.
void(* celix_service_use_options::useWithProperties) (void *handle, void *svc, const celix_properties_t *props) CELIX_OPTS_INIT |
The optional useWithProperties callback is handled as the use callback, but with the addition that the service properties will also be provided to the callback.