summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-20 09:19:29 -0700
committerPatrick Venture <venture@google.com>2018-10-20 09:24:56 -0700
commit32c4e36a8f7bb099f0718296e3f50744140345f3 (patch)
tree8094ce7ac78a2f253cb5199e4f8674b23ceea13b
parenta0aae953bb912e6f4afc699f6339b4d6eb00d140 (diff)
downloadipmi-fru-parser-32c4e36a8f7bb099f0718296e3f50744140345f3.zip
ipmi-fru-parser-32c4e36a8f7bb099f0718296e3f50744140345f3.tar.gz
writefrudata: add function header
Change-Id: Ibfe32351e04ace02cb830399a56cf1860a74df87 Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--writefrudata.hpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/writefrudata.hpp b/writefrudata.hpp
index 356b4b5..1f3e49f 100644
--- a/writefrudata.hpp
+++ b/writefrudata.hpp
@@ -41,6 +41,15 @@ struct common_header
#define IPMI_FRU_HDR_CRC_OFFSET offsetof(struct common_header, crc)
#define IPMI_EIGHT_BYTES 8
-int ipmi_validate_fru_area(const uint8_t, const char*, sd_bus*, const bool);
+/**
+ * Validate a FRU.
+ *
+ * @param[in] fruid - The ID to use for this FRU.
+ * @param[in] fru_file_name - the filename of the FRU.
+ * @param[in] bus_type - a systemd bus for publishing the information.
+ * @param[in] bmc_fru - If a particular area accessible only by BMC.
+ */
+int ipmi_validate_fru_area(const uint8_t fruid, const char* fru_file_name,
+ sd_bus* bus_type, const bool bmc_fru);
#endif
OpenPOWER on IntegriCloud