summaryrefslogtreecommitdiffstats
path: root/vm/alloc/Visit.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/alloc/Visit.h')
-rw-r--r--vm/alloc/Visit.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/vm/alloc/Visit.h b/vm/alloc/Visit.h
index 343d5675d..a954c61f0 100644
--- a/vm/alloc/Visit.h
+++ b/vm/alloc/Visit.h
@@ -19,8 +19,16 @@
#include "Dalvik.h"
-typedef void Visitor(void *obj, void *arg);
+/*
+ * Callback invoked with the address of a reference and a user
+ * supplied context argument.
+ */
+typedef void Visitor(void *addr, void *arg);
+/*
+ * Visits an object and applies the callback specified by the visitor
+ * to each reference-containing location.
+ */
void dvmVisitObject(Visitor *visitor, Object *obj, void *arg);
#endif /* _DALVIK_ALLOC_VISIT */