[valadoc] libvaladoc: Collect external c files



commit eac9e7d1676f92a1ded3ce759c7fa43564eca161
Author: Florian Brosch <flo brosch gmail com>
Date:   Mon Feb 14 22:53:44 2011 +0100

    libvaladoc: Collect external c files

 src/libvaladoc/api/tree.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/libvaladoc/api/tree.vala b/src/libvaladoc/api/tree.vala
index 254dcc0..6fb9f27 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<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));
 				}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]