diff options
author | Simon Feltman <s.feltman@gmail.com> | 2012-10-10 16:20:50 -0700 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-10-17 12:20:35 -0400 |
commit | 130a49c083aa74fccc218a810d353866dbf69e72 (patch) | |
tree | f43a97677b1007c8087aaa7e3201feba9d8661bf /tests/scanner/regress.c | |
parent | 09310ec575c888e9691af5190419f9da21b748d6 (diff) | |
download | gobject-introspection-130a49c083aa74fccc218a810d353866dbf69e72.tar.gz |
[gobject-introspection] Add test method for GDestroy with no user data
Added regress_test_callback_destroy_notify_no_user_data.
Updated Regress-1.0-expected.gir
https://bugzilla.gnome.org/show_bug.cgi?id=685922
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(), |