summaryrefslogtreecommitdiffstats
path: root/pnor_partition_table.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'pnor_partition_table.hpp')
-rw-r--r--pnor_partition_table.hpp24
1 files changed, 13 insertions, 11 deletions
diff --git a/pnor_partition_table.hpp b/pnor_partition_table.hpp
index a3251fb..d470822 100644
--- a/pnor_partition_table.hpp
+++ b/pnor_partition_table.hpp
@@ -24,6 +24,19 @@ using checksum_t = uint32_t;
*/
PartitionTable endianFixup(const PartitionTable& src);
+/** @brief Parse a ToC line (entry) into the corresponding FFS partition
+ * object.
+ *
+ * @param[in] line - The ToC line to parse
+ * @param[in] blockSize - The flash block size in bytes
+ * @param[out] part - The partition object to populate with the information
+ * parsed from the provided ToC line
+ *
+ * @returns True on success, false on failure.
+ */
+bool parseTocLine(const std::string& line, size_t blockSize,
+ pnor_partition& part);
+
namespace details
{
@@ -144,17 +157,6 @@ class Table
const pnor_partition& partition(const std::string& name) const;
private:
- /** @brief Parse a ToC line (entry) into the corresponding FFS partition
- * object.
- *
- * @param[in] line - The ToC line to parse
- * @param[out] part - The partition object to populate with the information
- * parsed from the provided ToC line
- *
- * @returns True on success, false on failure.
- */
- bool parseTocLine(const std::string& line, pnor_partition& part);
-
/** @brief Prepares a vector of PNOR partition structures.
*/
void preparePartitions();
OpenPOWER on IntegriCloud