pnor_partition_table: Make parseTocLine throw exceptions

Change-Id: I66dc8af4fede36c3c952df596040356e11a72644
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mboxd_pnor_partition_table.h b/mboxd_pnor_partition_table.h
index 738524b..122c933 100644
--- a/mboxd_pnor_partition_table.h
+++ b/mboxd_pnor_partition_table.h
@@ -27,8 +27,10 @@
  *  This API should be called before calling any other APIs below. If a table
  *  already exists, this function will not do anything further. This function
  *  will not do anything if the context is NULL.
+ *
+ *  Returns 0 if the call succeeds, else a negative error code.
  */
-void init_vpnor(struct mbox_context *context);
+int init_vpnor(struct mbox_context *context);
 
 /** @brief Create a virtual PNOR partition table.
  *
@@ -37,10 +39,12 @@
  *
  *  This API is same as above one but it reads the partition file from
  *  from the given location(path).
+ *
+ *  Returns 0 if the call succeeds, else a negative error code.
  */
 
-void vpnor_create_partition_table_from_path(struct mbox_context *context,
-                                            const char* path);
+int vpnor_create_partition_table_from_path(struct mbox_context *context,
+                                           const char* path);
 
 
 /** @brief Get partition table size, in blocks (1 block = 4KB)
@@ -82,8 +86,10 @@
 /** @brief Copy bootloader partition (alongwith TOC) to LPC memory
  *
  *  @param[in] context - mbox context pointer
+ *
+ *  @returns 0 on success, negative error code on failure
  */
-void vpnor_copy_bootloader_partition(const struct mbox_context *context);
+int vpnor_copy_bootloader_partition(const struct mbox_context *context);
 
 /** @brief Destroy partition table, if it exists.
  *