diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2011-06-20 14:06:26 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-07-23 11:26:06 -0500 |
commit | 9e8dd45164af05a5dab00324dd10b037f5bd1e2a (patch) | |
tree | 5dad08a23d9b4661ab5f7abba83427f6fc8498d9 /notify.c | |
parent | e0e8384dd471376c3f815c3070f161480a28cc90 (diff) | |
download | qemu-9e8dd45164af05a5dab00324dd10b037f5bd1e2a.zip qemu-9e8dd45164af05a5dab00324dd10b037f5bd1e2a.tar.gz qemu-9e8dd45164af05a5dab00324dd10b037f5bd1e2a.tar.bz2 |
notifier: Pass data argument to callback
This allows to pass additional information to the notifier callback
which is useful if sender and receiver do not share any other distinct
data structure.
Will be used first for the clock reset notifier.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'notify.c')
-rw-r--r-- | notify.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -29,11 +29,11 @@ void notifier_list_remove(NotifierList *list, Notifier *notifier) QTAILQ_REMOVE(&list->notifiers, notifier, node); } -void notifier_list_notify(NotifierList *list) +void notifier_list_notify(NotifierList *list, void *data) { Notifier *notifier, *next; QTAILQ_FOREACH_SAFE(notifier, &list->notifiers, node, next) { - notifier->notify(notifier); + notifier->notify(notifier, data); } } |