diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ouroboros/notifier.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/ouroboros/notifier.h b/include/ouroboros/notifier.h index 7a70f95f..037d5daf 100644 --- a/include/ouroboros/notifier.h +++ b/include/ouroboros/notifier.h @@ -23,7 +23,8 @@ #ifndef OUROBOROS_LIB_NOTIFIER_H #define OUROBOROS_LIB_NOTIFIER_H -typedef void (* notifier_fn_t)(int event, +typedef void (* notifier_fn_t)(void * self, + int event, const void * o); int notifier_init(void); @@ -33,7 +34,8 @@ void notifier_fini(void); void notifier_event(int event, const void * o); -int notifier_reg(notifier_fn_t callback); +int notifier_reg(notifier_fn_t callback, + void * obj); void notifier_unreg(notifier_fn_t callback); |