]> granicus.if.org Git - neomutt/commit
notify: use data to match specific callbacks
authorRichard Russon <rich@flatcap.org>
Sat, 20 Jul 2019 12:48:19 +0000 (13:48 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 20 Jul 2019 22:14:08 +0000 (23:14 +0100)
commit1cfbabe64cac391e957f53ad88d49626c1244e48
tree8cba16271389f2641f5433fb0a7ef3ebb3facf85
parentb5bae38ef5905c48f68df3b10f5afc30fd83d8e4
notify: use data to match specific callbacks

When removing a notification callback, check both the function and data
pointers.

This means we can reuse a single callback function with multiple data
objects.
context.c
mutt/notify.c
mutt/notify.h