summaryrefslogtreecommitdiff
path: root/tests/scanner/foo.h
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2009-11-24 22:18:27 -0200
committerJohan Dahlin <johan@gnome.org>2009-12-02 10:31:29 -0200
commitf74823dbcb647dee950c066119876db9f0edc32f (patch)
tree94d6434eb856fe04182b6252d0102895ca12625d /tests/scanner/foo.h
parent8ebaa58148917ce2b89b68f00aefbdca3eac87fd (diff)
downloadgobject-introspection-f74823dbcb647dee950c066119876db9f0edc32f.tar.gz
Better scope in GAsyncReadyCallback/GDestroyNotify
GAsyncReadyCallback should have use the async scope per default and GDestroyNotify should be notified if the previous parameters are a callback and user data. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=602862
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r--tests/scanner/foo.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h
index b8f88a78..61c2ca45 100644
--- a/tests/scanner/foo.h
+++ b/tests/scanner/foo.h
@@ -2,6 +2,7 @@
#define __FOO_OBJECT_H__
#include <glib-object.h>
+#include <gio/gio.h> /* GAsyncReadyCallback */
#include "utility.h"
#define FOO_SUCCESS_INT 0x1138
@@ -344,6 +345,14 @@ void foo_test_varargs_callback2 (FooVarargsCallback callback);
void foo_test_varargs_callback3 (FooVarargsCallback callback,
FooVarargsCallback callback2);
+/* Make sure callbacks get the right scope by default */
+void foo_async_ready_callback(GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+void foo_destroy_notify_callback(FooCallback callback,
+ gpointer data,
+ GDestroyNotify destroy);
+
typedef enum {
FOO_ERROR_GOOD,
FOO_ERROR_BAD,
@@ -382,4 +391,5 @@ typedef enum {
} FooSkippable;
void foo_skip_me (FooSkippable fs);
+
#endif /* __FOO_OBJECT_H__ */