fw: don't expose UnsolicitedDataPolicy::Registry
UnsolicitedDataPolicy::Registry was mistakenly made public when
implementing getPolicyNames.
refs #2181
Change-Id: Ib2e68360aef2e7d3695273f8ef2b6c0c67bd914a
diff --git a/daemon/fw/unsolicited-data-policy.hpp b/daemon/fw/unsolicited-data-policy.hpp
index a5f24d9..766db38 100644
--- a/daemon/fw/unsolicited-data-policy.hpp
+++ b/daemon/fw/unsolicited-data-policy.hpp
@@ -57,9 +57,6 @@
decide(const Face& inFace, const Data& data) const = 0;
public: // registry
- typedef std::function<unique_ptr<UnsolicitedDataPolicy>()> CreateFunc;
- typedef std::map<std::string, CreateFunc> Registry; // indexed by policy name
-
template<typename P>
static void
registerPolicy(const std::string& policyName = P::POLICY_NAME)
@@ -81,6 +78,9 @@
getPolicyNames();
private:
+ typedef std::function<unique_ptr<UnsolicitedDataPolicy>()> CreateFunc;
+ typedef std::map<std::string, CreateFunc> Registry; // indexed by policy name
+
static Registry&
getRegistry();
};