Refactor mapper application to enable unit tests
Change-Id: I58cac8879f93ce49bfb654a1bf559d7f77b5b486
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
diff --git a/phosphor-ldap-mapper/ldap_mapper_serialize.hpp b/phosphor-ldap-mapper/ldap_mapper_serialize.hpp
index f48f73c..5ab71c0 100644
--- a/phosphor-ldap-mapper/ldap_mapper_serialize.hpp
+++ b/phosphor-ldap-mapper/ldap_mapper_serialize.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <experimental/filesystem>
+#include "config.h"
#include "ldap_mapper_entry.hpp"
namespace phosphor
@@ -14,10 +15,12 @@
*
* @param[in] entry - LDAP privilege mapper entry
* @param[in] id - filename of the persisted LDAP mapper entry
+ * @param[in] dir - pathname of directory where the serialized privilege
+ * mappings are stored.
*
* @return fs::path - pathname of persisted error file
*/
-fs::path serialize(const LDAPMapperEntry& entry, Id id);
+fs::path serialize(const LDAPMapperEntry& entry, Id id, const fs::path& dir);
/** @brief Deserialize a persisted LDAP privilege mapper into a D-Bus object
*