summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-06-20 14:06:26 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-07-23 11:26:06 -0500
commitf322c7d27acd98fade7679dfc756847c16b09f5c (patch)
tree5dad08a23d9b4661ab5f7abba83427f6fc8498d9 /input.c
parent9487914edb9e692814f1bf69594be37220999a16 (diff)
downloadqemu-f322c7d27acd98fade7679dfc756847c16b09f5c.tar.gz
qemu-f322c7d27acd98fade7679dfc756847c16b09f5c.tar.bz2
qemu-f322c7d27acd98fade7679dfc756847c16b09f5c.zip
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 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index f0a02e783d..310bad58fd 100644
--- a/input.c
+++ b/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;