]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Collect external c files
authorFlorian Brosch <flo.brosch@gmail.com>
Mon, 14 Feb 2011 21:53:44 +0000 (22:53 +0100)
committerFlorian Brosch <flo.brosch@gmail.com>
Mon, 14 Feb 2011 23:34:17 +0000 (00:34 +0100)
src/libvaladoc/api/tree.vala

index 254dcc0f9f2ab798a2874f8b5cb298f6f84e487d..6fb9f277cb66f3999f24a58d600dcc2d7ce9953e 100644 (file)
@@ -29,6 +29,7 @@ private Valadoc.Api.Class glib_error = null;
 
 public class Valadoc.Api.Tree {
        private Deque<Node> unbrowsable_documentation_dependencies = new LinkedList<Node>();
+       private ArrayList<string> external_c_files = new ArrayList<string>();
        private ArrayList<Package> packages = new ArrayList<Package>();
        private Package source_package = null;
        private Settings settings;
@@ -46,6 +47,10 @@ public class Valadoc.Api.Tree {
                get;
        }
 
+       public Collection<string> get_external_c_files () {
+               return external_c_files.read_only_view;
+       }
+
        public Collection<Package> get_package_list () {
                return this.packages.read_only_view;
        }
@@ -333,6 +338,7 @@ public class Valadoc.Api.Tree {
                                        add_deps (Path.build_filename (Path.get_dirname (source), "%s.deps".printf (file_name)), file_name);
                                } else if (source.has_suffix (".c")) {
                                        context.add_c_source_file (rpath);
+                                       external_c_files.add (rpath);
                                } else {
                                        Vala.Report.error (null, "%s is not a supported source file type. Only .vala, .vapi, .gs, and .c files are supported.".printf (source));
                                }