diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2013-08-15 14:17:45 +0200 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2013-08-15 14:17:45 +0200 |
commit | a1fd2800b51fcb693b8e482047c56c623878ed47 (patch) | |
tree | 0cfad530b1d1ae29f3835956f1494439ab91b4b3 /src/indmanager | |
parent | 2a68a8e828a7f4895fa9895c024636b1685d80e5 (diff) | |
download | openlmi-providers-a1fd2800b51fcb693b8e482047c56c623878ed47.tar.gz openlmi-providers-a1fd2800b51fcb693b8e482047c56c623878ed47.tar.xz openlmi-providers-a1fd2800b51fcb693b8e482047c56c623878ed47.zip |
indmanager: Fix IMEventWatcher arguments to be able to actually set data
Diffstat (limited to 'src/indmanager')
-rw-r--r-- | src/indmanager/README | 2 | ||||
-rw-r--r-- | src/indmanager/ind_manager.c | 2 | ||||
-rw-r--r-- | src/indmanager/ind_manager.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/indmanager/README b/src/indmanager/README index 00de221..ddc5569 100644 --- a/src/indmanager/README +++ b/src/indmanager/README @@ -79,7 +79,7 @@ to verify filter. Function should return true when given filter is allowed, false otherwise. Filter is passed from im_verify_filter function * IMEventWatcher -typedef bool (*IMEventWatcher) (void *data); +typedef bool (*IMEventWatcher) (void **data); User should define this callback, which should be blocking. The purpose of this called is to inform manager that event occured. When the callback returns with true value the manager is informed that event has occured and will send diff --git a/src/indmanager/ind_manager.c b/src/indmanager/ind_manager.c index 7e2cda3..4a8c06c 100644 --- a/src/indmanager/ind_manager.c +++ b/src/indmanager/ind_manager.c @@ -690,7 +690,7 @@ static void *manage(void *data) pthread_mutex_unlock(&_t_mutex); DEBUG("manage thread calling watcher"); - if(!manager->watcher(manager->data)) { + if(!manager->watcher(&manager->data)) { continue; } pthread_mutex_lock(&_t_mutex); diff --git a/src/indmanager/ind_manager.h b/src/indmanager/ind_manager.h index eee3faf..1fc21cd 100644 --- a/src/indmanager/ind_manager.h +++ b/src/indmanager/ind_manager.h @@ -75,7 +75,7 @@ // callback functions typedef bool (*IMInstGather) (CMPIInstance **old, CMPIInstance **new, void *data); typedef bool (*IMFilterChecker) (const CMPISelectExp *filter); -typedef bool (*IMEventWatcher) (void *data); +typedef bool (*IMEventWatcher) (void **data); // Indication types // Only one type supported per instance of manager |