aboutsummaryrefslogtreecommitdiff
path: root/notify.h
AgeCommit message (Collapse)AuthorFilesLines
2012-02-17notifier: switch to QLISTPaolo Bonzini1-4/+4
Notifiers do not need to access both ends of the list, and using a QLIST also simplifies the API. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2011-07-23notifier: Pass data argument to callbackJan Kiszka1-2/+2
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>
2010-03-19Add support for generic notifier listsAnthony Liguori1-0/+43
Notifiers are data-less callbacks and a notifier list is a list of registered notifiers that all are interested in a particular event. We'll use this in a few patches to implement mouse change notification. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> --- v1 -> v2 - Do not do memory allocations by placing list nodes in notifier