From 497c5eebcbf4af86ccca15aa87b4be28e76d638c Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 25 Apr 2008 23:50:02 +0000 Subject: Add support for virtual methods. Pair struct FooClass with struct Foo. 2008-04-25 Johan Dahlin * TODO: * giscanner/gidlwriter.py: * giscanner/giscannermodule.c (pygi_source_directive_new), (directive_get_options), (pygi_source_symbol_new), (symbol_get_base_type), (pygi_source_type_new), (type_get_base_type), (type_get_child_list), (pygi_source_scanner_get_symbols), (pygi_source_scanner_get_directives): * giscanner/gobjecttreebuilder.py: * giscanner/sourcescanner.py: * giscanner/treebuilder.py: * tests/parser/foo-object.h: Add support for virtual methods. Pair struct FooClass with struct Foo. Clean up the SourceScanner bindings a bit. Add a testcase for virtual methods. svn path=/trunk/; revision=226 --- tests/parser/Foo-expected.gidl | 7 +++++++ tests/parser/foo-object.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'tests') diff --git a/tests/parser/Foo-expected.gidl b/tests/parser/Foo-expected.gidl index 78554823..42592114 100644 --- a/tests/parser/Foo-expected.gidl +++ b/tests/parser/Foo-expected.gidl @@ -125,6 +125,13 @@ + + + + + + + diff --git a/tests/parser/foo-object.h b/tests/parser/foo-object.h index b01034d2..8605f267 100644 --- a/tests/parser/foo-object.h +++ b/tests/parser/foo-object.h @@ -38,6 +38,8 @@ struct _FooObject struct _FooObjectClass { GObjectClass parent_class; + + gboolean (* virtual_method) (FooObject *object, int first_param); }; gint foo_init (void); -- cgit v1.2.1