summaryrefslogtreecommitdiff
path: root/include/mupdf/memento.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-03-15 15:41:15 +0000
committerRobin Watts <robin.watts@artifex.com>2016-03-15 16:50:28 +0000
commit15b93459af39a4ac68c055e6184be5db8c2c3aba (patch)
treeb97db67763ab1fcde68d9090151e3e945dbb3a0b /include/mupdf/memento.h
parent3f655259c2a235d742b025a9ee91b57bc1d2da14 (diff)
downloadmupdf-15b93459af39a4ac68c055e6184be5db8c2c3aba.tar.xz
Memento: Add Memento_{takeRef,dropRef,reference} functions.
These work with MEMENTO_DETAILS to allow us to store the events where reference counts change.
Diffstat (limited to 'include/mupdf/memento.h')
-rw-r--r--include/mupdf/memento.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mupdf/memento.h b/include/mupdf/memento.h
index 903f00b7..e2ea3562 100644
--- a/include/mupdf/memento.h
+++ b/include/mupdf/memento.h
@@ -222,6 +222,9 @@ void *Memento_calloc(size_t, size_t);
void Memento_info(void *addr);
void Memento_listBLockInfo(void);
+void *Memento_takeRef(void *blk);
+void *Memento_dropRef(void *blk);
+void *Memento_reference(void *blk);
#ifdef MEMENTO
@@ -259,6 +262,9 @@ void Memento_listBLockInfo(void);
#define Memento_label(A,B) (A)
#define Memento_info(A) do {} while (0)
#define Memento_listBlockInfo() do {} while (0)
+#define Memento_takeRef(A) (A)
+#define Memento_dropRef(A) (A)
+#define Memento_reference(A) (A)
#endif /* MEMENTO */