diff options
Diffstat (limited to 'tests/scanner/regress.c')
-rw-r--r-- | tests/scanner/regress.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 2fba9fd5..c6ca6b74 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -3324,6 +3324,20 @@ regress_test_callback_destroy_notify (RegressTestCallbackUserData callback, } /** + * regress_test_callback_destroy_notify_no_user_data: + * @callback: (scope notified): + * + * Adds a scope notified callback with no user data. This can invoke an error + * condition in bindings which needs to be tested. + **/ +int +regress_test_callback_destroy_notify_no_user_data (RegressTestCallbackUserData callback, + GDestroyNotify notify) +{ + return regress_test_callback_destroy_notify(callback, NULL, notify); +} + +/** * regress_test_callback_thaw_notifications: * * Invokes all callbacks installed by #test_callback_destroy_notify(), |