]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
GAsync: Declare functions for abstract async methods
authorJürg Billeter <j@bitron.ch>
Fri, 12 Feb 2010 10:00:05 +0000 (11:00 +0100)
committerJürg Billeter <j@bitron.ch>
Fri, 12 Feb 2010 10:01:19 +0000 (11:01 +0100)
Fixes bug 598266.

codegen/valagasyncmodule.vala

index 9bd6cb746c8603131d2519e659e82bfaa26d9195..5222048105660c0e68b4e425356c004c43de1e4a 100644 (file)
@@ -319,6 +319,15 @@ internal class Vala.GAsyncModule : GSignalModule {
                                // only append data struct here to make sure all struct member
                                // types are declared before the struct definition
                                append_struct (data);
+                       } else {
+                               generate_method_declaration (m, source_declarations);
+
+                               if (!m.is_internal_symbol ()) {
+                                       generate_method_declaration (m, header_declarations);
+                               }
+                               if (!m.is_private_symbol ()) {
+                                       generate_method_declaration (m, internal_header_declarations);
+                               }
                        }
 
                        if (m.is_abstract || m.is_virtual) {