Add function to find assocs based on endpoint

The helper function findAssociations can find all
associations based on an endpoint path and return
enough information to recreate those associations
later.

For example, searching for something like "endpointA"

could return:
  owner:  "ownerA"
  Association{"typeA", "typeB", "endpointB"}

Which implies the association:
  endpointA/typeA -> endpointB/typeB

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I0fbcf5397435f10b3072dd2640b342ee47d52f9b
diff --git a/src/associations.hpp b/src/associations.hpp
index 60342b2..37f5e54 100644
--- a/src/associations.hpp
+++ b/src/associations.hpp
@@ -152,3 +152,15 @@
                                const interface_map_type& interfaceMap,
                                AssociationMaps& assocMaps,
                                sdbusplus::asio::object_server& server);
+
+/** @brief Find all associations in the association owners map with the
+ *         specified endpoint path.
+ *
+ * @param[in] endpointPath     - the endpoint path to look for
+ * @param[in] assocMaps        - The association maps
+ * @param[out] associationData - A vector of {owner, Association} tuples
+ *                               of all the associations with that endpoint.
+ */
+void findAssociations(const std::string& endpointPath,
+                      AssociationMaps& assocMaps,
+                      FindAssocResults& associationData);