From: Florian Brosch Date: Mon, 14 Feb 2011 21:53:44 +0000 (+0100) Subject: libvaladoc: Collect external c files X-Git-Tag: 0.37.1~3^2~395 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eac9e7d1676f92a1ded3ce759c7fa43564eca161;p=thirdparty%2Fvala.git libvaladoc: Collect external c files --- diff --git a/src/libvaladoc/api/tree.vala b/src/libvaladoc/api/tree.vala index 254dcc0f9..6fb9f277c 100644 --- a/src/libvaladoc/api/tree.vala +++ b/src/libvaladoc/api/tree.vala @@ -29,6 +29,7 @@ private Valadoc.Api.Class glib_error = null; public class Valadoc.Api.Tree { private Deque unbrowsable_documentation_dependencies = new LinkedList(); + private ArrayList external_c_files = new ArrayList(); private ArrayList packages = new ArrayList(); private Package source_package = null; private Settings settings; @@ -46,6 +47,10 @@ public class Valadoc.Api.Tree { get; } + public Collection get_external_c_files () { + return external_c_files.read_only_view; + } + public Collection 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)); }