<p>Patrick Rudolph has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/25859">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">commonlib/cbfs: Make cbfsf_file_type public<br><br>Make cbfsf_file_type public to support multiple payload types in<br>prog_loaders.<br><br>Change-Id: I37e9fb06f926dc71b001722a6c3b6205a2f20462<br>Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com><br>---<br>M src/commonlib/cbfs.c<br>M src/commonlib/include/commonlib/cbfs.h<br>2 files changed, 7 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/25859/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/commonlib/cbfs.c b/src/commonlib/cbfs.c</span><br><span>index 1db8d31..11e8a27 100644</span><br><span>--- a/src/commonlib/cbfs.c</span><br><span>+++ b/src/commonlib/cbfs.c</span><br><span>@@ -156,7 +156,7 @@</span><br><span>      return 0;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static int cbfsf_file_type(struct cbfsf *fh, uint32_t *ftype)</span><br><span style="color: hsl(120, 100%, 40%);">+int cbfsf_file_type(struct cbfsf *fh, uint32_t *ftype)</span><br><span> {</span><br><span>         const size_t sz = sizeof(*ftype);</span><br><span> </span><br><span>diff --git a/src/commonlib/include/commonlib/cbfs.h b/src/commonlib/include/commonlib/cbfs.h</span><br><span>index 163bef2..c31df51 100644</span><br><span>--- a/src/commonlib/include/commonlib/cbfs.h</span><br><span>+++ b/src/commonlib/include/commonlib/cbfs.h</span><br><span>@@ -71,6 +71,12 @@</span><br><span> int cbfsf_decompression_info(struct cbfsf *fh, uint32_t *algo, size_t *size);</span><br><span> </span><br><span> /*</span><br><span style="color: hsl(120, 100%, 40%);">+ * Return the CBFS file type as out-parameter.</span><br><span style="color: hsl(120, 100%, 40%);">+ * Returns 0 on success and < 0 on error.</span><br><span style="color: hsl(120, 100%, 40%);">+ */</span><br><span style="color: hsl(120, 100%, 40%);">+int cbfsf_file_type(struct cbfsf *fh, uint32_t *ftype);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/*</span><br><span>  * Perform the vb2 hash over the CBFS region skipping empty file contents.</span><br><span>  * Caller is responsible for providing the hash algorithm as well as storage</span><br><span>  * for the final digest. Return 0 on success or non-zero on error.</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/25859">change 25859</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/25859"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I37e9fb06f926dc71b001722a6c3b6205a2f20462 </div>
<div style="display:none"> Gerrit-Change-Number: 25859 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <patrick.rudolph@9elements.com> </div>