Verify currect node is a child of current parent

This commit is to add the pldm_is_current_parent_child method and
to verify that the current node is a child of the current parent,
If so, return true, otherwise return false.

Tested: built pldm successfully and unit test passes.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ie2f01d948178dfdf3a5bfa1c6c0a939b6fdd96e3
diff --git a/libpldm/pdr.h b/libpldm/pdr.h
index bf31405..8d827dc 100644
--- a/libpldm/pdr.h
+++ b/libpldm/pdr.h
@@ -293,6 +293,13 @@
 uint8_t pldm_entity_get_num_children(pldm_entity_node *node,
 				     uint8_t association_type);
 
+/** @brief Verify that the current node is a child of the current parent
+ *
+ *  @param[in] parent    - opaque pointer acting as a handle to an entity parent
+ *  @param[in] node      - pointer to the node of the pldm entity
+ */
+bool pldm_is_current_parent_child(pldm_entity_node *parent, pldm_entity *node);
+
 /** @brief Find an entity in the entity association tree
  *
  *  @param[in] tree - pointer to entity association tree