set present status True after updating inventory
diff --git a/writefrudata.H b/writefrudata.H
index 89c20ac..9c0c6b3 100644
--- a/writefrudata.H
+++ b/writefrudata.H
@@ -5,6 +5,10 @@
#include <stddef.h>
#include <systemd/sd-bus.h>
+#ifndef __cplusplus
+#include <stdbool.h> // For bool variable
+#endif
+
// IPMI commands for Storage net functions.
enum ipmi_netfn_storage_cmds
{
@@ -51,6 +55,14 @@
#define IPMI_FRU_HDR_CRC_OFFSET offsetof(struct common_header, crc)
#define IPMI_EIGHT_BYTES 8
-extern "C" int ipmi_validate_fru_area(const uint8_t, const char *, sd_bus *);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+int ipmi_validate_fru_area(const uint8_t, const char *, sd_bus *, const bool);
+
+#ifdef __cplusplus
+} // extern C
+#endif
#endif