@@ -127,6 +127,11 @@ char *pdbg_target_name(struct pdbg_target *target)
return target->name;
}
+const char *pdbg_target_dn_name(struct pdbg_target *target)
+{
+ return target->dn_name;
+}
+
void pdbg_set_target_property(struct pdbg_target *target, const char *name, const void *val, size_t size)
{
struct dt_property *p;
@@ -89,6 +89,7 @@ uint32_t pdbg_target_index(struct pdbg_target *target);
uint32_t pdbg_parent_index(struct pdbg_target *target, char *klass);
char *pdbg_target_class_name(struct pdbg_target *target);
char *pdbg_target_name(struct pdbg_target *target);
+const char *pdbg_target_dn_name(struct pdbg_target *target);
void *pdbg_target_priv(struct pdbg_target *target);
void pdbg_target_priv_set(struct pdbg_target *target, void *priv);
struct pdbg_target *pdbg_target_root(void);
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org> --- libpdbg/libpdbg.c | 5 +++++ libpdbg/libpdbg.h | 1 + 2 files changed, 6 insertions(+)