summaryrefslogtreecommitdiffstats
path: root/src/knot-ptr.h
diff options
context:
space:
mode:
authorLiam P. White <inkscapebrony@gmail.com>2014-08-07 00:40:19 +0000
committerLiam P. White <inkscapebrony@gmail.com>2014-08-07 00:40:19 +0000
commit2029349f5291ae10048202732a89f34c0a179130 (patch)
treea8bf0a1a0fb4fa8ef9777f34250e598a5b272fb3 /src/knot-ptr.h
parentUpdate to trunk r13497 (diff)
downloadinkscape-2029349f5291ae10048202732a89f34c0a179130.tar.gz
inkscape-2029349f5291ae10048202732a89f34c0a179130.zip
Add in some debugging code that will complain when deleted knots are accessed by snap handler
(bzr r13341.1.120)
Diffstat (limited to 'src/knot-ptr.h')
-rw-r--r--src/knot-ptr.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/knot-ptr.h b/src/knot-ptr.h
new file mode 100644
index 000000000..5895dfd2e
--- /dev/null
+++ b/src/knot-ptr.h
@@ -0,0 +1,8 @@
+#ifndef KNOT_PTR_DETECTOR
+#define KNOT_PTR_DETECTOR
+
+void knot_deleted_callback(void* knot);
+void knot_created_callback(void* knot);
+void check_if_knot_deleted(void* knot);
+
+#endif