Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/scanner/foo.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2009-02-25 23:43:14 (GMT)
committer Colin Walters <walters@verbum.org>2009-02-26 19:07:21 (GMT)
commit4470a24e8cf3827efaddcfe240c3271cf1a0d6c0 (patch)
tree4bbcd76c1c325c403ec0408a81489ab97c5465f0 /tests/scanner/foo.c
parent251de52b083d3e0e42f25cb164a46865c2c2b9a9 (diff)
Bug 557383 - Virtual function support
In order to determine whether a method is virtual, by default we look at the class table to find a callback field. This should be fairly reliable, but we may also later need annotations to more finely control this in the case of a name clash with a signal.
Diffstat (limited to 'tests/scanner/foo.c')
-rw-r--r--tests/scanner/foo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/scanner/foo.c b/tests/scanner/foo.c
index 0488260..98d2f4b 100644
--- a/tests/scanner/foo.c
+++ b/tests/scanner/foo.c
@@ -8,8 +8,8 @@ int foo_init_argv (int argc, char **argv);
int foo_init_argv_address (int *argc, char ***argv);
void foo_private_function (FooObject *foo);
void foo_test_unsigned (unsigned int uint);
-void foo_interface_do_foo (FooInterface *self);
-void foo_do_foo (FooInterface *self);
+void foo_interface_do_foo (FooInterface *self, int x);
+void foo_do_foo (FooInterface *self, int x);
int foo_enum_method (FooEnumType foo_enum);
FooHidden * foo_hidden_copy (const FooHidden *boxed);
void foo_hidden_free (FooHidden *boxed);
@@ -47,9 +47,9 @@ foo_interface_get_type (void)
return object_type;
}
-void foo_interface_do_foo (FooInterface *self)
+void foo_interface_do_foo (FooInterface *self, int x)
{
- FOO_INTERFACE_GET_INTERFACE(self)->do_foo (self);
+ FOO_INTERFACE_GET_INTERFACE(self)->do_foo (self, x);
}
enum {
@@ -191,7 +191,7 @@ foo_object_take_all (FooObject *object, int x, ...)
}
void
-foo_do_foo (FooInterface *self)
+foo_do_foo (FooInterface *self, int x)
{