meta-google: dhcp-done: Adding status report

Previously dhcp-done only sends status code, this one provides the
capability to send status code + status message for better
troubleshooting.
Provide a way to let other process upgrade the status.

Tested: Unit test passed.

Change-Id: I9c689f90502a32b586c41e3491ad47ebc78fcc38
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/subprojects/dhcp-done/file-io.hpp b/subprojects/dhcp-done/file-io.hpp
new file mode 100644
index 0000000..93458ee
--- /dev/null
+++ b/subprojects/dhcp-done/file-io.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <filesystem>
+#include <string>
+
+namespace fs = std::filesystem;
+constexpr auto statusFile = "/run/dhcp_status";
+
+// Function to read contents from a file
+std::string fileRead(const fs::path& filename);
+
+// Function to write contents to a file atomically
+void fileWrite(const fs::path& filename, const std::string& data);