backtrace: add a clone() method

This commit is contained in:
Martin Willi
2013-07-10 17:28:18 +02:00
parent 3b26f04cf4
commit d9c459e855
2 changed files with 44 additions and 7 deletions
+8
View File
@@ -59,6 +59,14 @@ struct backtrace_t {
* @return TRUE if backtraces are equal
*/
bool (*equals)(backtrace_t *this, backtrace_t *other);
/**
* Create a copy of this backtrace.
*
* @return cloned copy
*/
backtrace_t* (*clone)(backtrace_t *this);
/**
* Create an enumerator over the stack frame addresses.
*