summaryrefslogtreecommitdiff
path: root/utils/regtools/lib/soc_desc.hpp
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2014-02-09 02:07:33 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2014-02-10 23:14:26 +0100
commit8358707d8276dd297655395b922560e3c65631e1 (patch)
treea83f2fda1657b9c67ced9c2cf4c337143097e913 /utils/regtools/lib/soc_desc.hpp
parent1f4f7369eebfea85b9cb74a7ecae04b05bf44d07 (diff)
downloadrockbox-8358707d8276dd297655395b922560e3c65631e1.tar.gz
rockbox-8358707d8276dd297655395b922560e3c65631e1.zip
hwstub/regtools/qeditor: put soc descriptors in a list instead of a vector
A SoC descriptor is not a small object: it can be as large as ~100KiB so it's better to avoid copying things over. Change-Id: I1ef862e1260299cdaa0c4d2822ac45968713498a
Diffstat (limited to 'utils/regtools/lib/soc_desc.hpp')
-rw-r--r--utils/regtools/lib/soc_desc.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/regtools/lib/soc_desc.hpp b/utils/regtools/lib/soc_desc.hpp
index 476ea1d242..d1a1f0cb50 100644
--- a/utils/regtools/lib/soc_desc.hpp
+++ b/utils/regtools/lib/soc_desc.hpp
@@ -23,6 +23,7 @@
23 23
24#include <stdint.h> 24#include <stdint.h>
25#include <vector> 25#include <vector>
26#include <list>
26#include <string> 27#include <string>
27 28
28/** 29/**
@@ -142,6 +143,6 @@ struct soc_t
142 143
143/** Parse a SoC description from a XML file, append it to <soc>. A file 144/** Parse a SoC description from a XML file, append it to <soc>. A file
144 * can contain multiple SoC descriptions */ 145 * can contain multiple SoC descriptions */
145bool soc_desc_parse_xml(const std::string& filename, std::vector< soc_t >& soc); 146bool soc_desc_parse_xml(const std::string& filename, std::list< soc_t >& soc);
146 147
147#endif /* __SOC_DESC__ */ \ No newline at end of file 148#endif /* __SOC_DESC__ */ \ No newline at end of file