mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
e0e8384dd4
commit
9e8dd45164
13 changed files with 23 additions and 23 deletions
2
input.c
2
input.c
|
@ -59,7 +59,7 @@ static void check_mode_change(void)
|
|||
|
||||
if (is_absolute != current_is_absolute ||
|
||||
has_absolute != current_has_absolute) {
|
||||
notifier_list_notify(&mouse_mode_notifiers);
|
||||
notifier_list_notify(&mouse_mode_notifiers, NULL);
|
||||
}
|
||||
|
||||
current_is_absolute = is_absolute;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue