summaryrefslogtreecommitdiffstats
path: root/src/include/usr/targeting/entitypath.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/usr/targeting/entitypath.H')
-rw-r--r--src/include/usr/targeting/entitypath.H9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/include/usr/targeting/entitypath.H b/src/include/usr/targeting/entitypath.H
index da31e0380..4e24a9410 100644
--- a/src/include/usr/targeting/entitypath.H
+++ b/src/include/usr/targeting/entitypath.H
@@ -421,6 +421,15 @@ class EntityPath
*/
void dump() const;
+ /**
+ * @brief Save the entity path as a c-string
+ *
+ * @return the dynamic buffer pointer of the c-string
+ *
+ * @note caller must call free() to release the buffer
+ */
+ char * toString() const;
+
private:
PATH_TYPE iv_type : 4; ///< Entity path type (4 bits)
OpenPOWER on IntegriCloud