Add support for type-only interfaces

Modify Maker template for type-only interfaces that do not
have properties.

Resolves openbmc/openbmc#1786

Change-Id: I2c48b37cf273943a0c696f6b92db0bc901a1c9b4
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
diff --git a/serialize.hpp b/serialize.hpp
index 7d0b10e..84463b3 100644
--- a/serialize.hpp
+++ b/serialize.hpp
@@ -34,6 +34,21 @@
     oarchive(object);
 }
 
+/** @brief Serialize inventory item path
+ *  Serializing only path for an empty interface to be consistent
+ *  interfaces.
+ *  @param[in] path - DBus object path
+ *  @param[in] iface - Inventory interface name
+ */
+inline void serialize(const Path& path, const Interface& iface)
+{
+    fs::path p(PIM_PERSIST_PATH);
+    p /= path;
+    fs::create_directories(p);
+    p /= iface;
+    std::ofstream os(p, std::ios::binary);
+}
+
 /** @brief Deserialize inventory item
  *
  *  @param[in] path - DBus object path