summaryrefslogtreecommitdiff
path: root/tests/scanner/regress.h
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@gnome.org>2015-06-02 19:24:49 +0200
committerDebarshi Ray <debarshir@gnome.org>2015-06-18 16:40:21 +0200
commit09daa28c5b4625b6f274b3b340bc85e33bef80b5 (patch)
tree6ab3f24b4d2cc228983a5e90d29cb664c9b8d38e /tests/scanner/regress.h
parent427e28ff942bad9a3a19d316912c40e39085a5bd (diff)
downloadgobject-introspection-09daa28c5b4625b6f274b3b340bc85e33bef80b5.tar.gz
tests: Add regression test for (transfer full) returning callbacks
https://bugzilla.gnome.org/show_bug.cgi?id=750286
Diffstat (limited to 'tests/scanner/regress.h')
-rw-r--r--tests/scanner/regress.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/scanner/regress.h b/tests/scanner/regress.h
index 9bef3c86..51740736 100644
--- a/tests/scanner/regress.h
+++ b/tests/scanner/regress.h
@@ -1042,6 +1042,11 @@ typedef void (*RegressTestCallbackOwnedGError) (GError *error);
*/
typedef int (*RegressTestCallbackFull) (int foo, double bar, char *path);
/**
+ * RegressTestCallbackReturnFull:
+ * Return value: (transfer full):
+ */
+typedef RegressTestObj *(*RegressTestCallbackReturnFull) (void);
+/**
* RegressTestCallbackArray:
* @one: (array length=one_length):
* @one_length:
@@ -1076,6 +1081,9 @@ int regress_test_callback_user_data (RegressTestCallbackUserData callback,
gpointer user_data);
_GI_TEST_EXTERN
+void regress_test_callback_return_full (RegressTestCallbackReturnFull callback);
+
+_GI_TEST_EXTERN
int regress_test_callback_destroy_notify (RegressTestCallbackUserData callback,
gpointer user_data,
GDestroyNotify notify);