]> xenbits.xensource.com Git - qemu-xen-traditional.git/commit
Add support for generic notifier lists
authorAnthony Liguori <aliguori@us.ibm.com>
Fri, 13 Mar 2020 12:35:26 +0000 (12:35 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 24 Apr 2020 14:42:07 +0000 (15:42 +0100)
commit211ed7d2da5abe7bb17cedc2debbe248c1d1f5d6
tree4bf69c060367c73b2d1f4e7a6b8973a894149f99
parentd0d8ad39ecb51cd7497cd524484fe09f50876798
Add support for generic notifier lists

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>
[cherry-picked from d1e70c5e6d1472856c52969301247fe8c3c8389d
    conflicts: used the sys-qeue interface and added required
    LIST_REMOVE_SAFE function to that]

Signed-off-by: Maximilian Heyne <mheyne@amazon.de>
Reviewed-by: Paul Durrant <paul@xen.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Makefile
notify.c [new file with mode: 0644]
notify.h [new file with mode: 0644]
sys-queue.h