aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2019-04-12 21:12:21 +0200
committerMattias Andrée <maandree@kth.se>2019-04-12 21:13:28 +0200
commitf7b4088919bed74397e55ce2eab7aad61df3c949 (patch)
tree7d470a11985d9f9d8221919704aa2092ef7ae8b3 /internal.h
downloadliberror-backtrace-f7b4088919bed74397e55ce2eab7aad61df3c949.tar.gz
liberror-backtrace-f7b4088919bed74397e55ce2eab7aad61df3c949.tar.bz2
liberror-backtrace-f7b4088919bed74397e55ce2eab7aad61df3c949.tar.xz
First commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/internal.h b/internal.h
new file mode 100644
index 0000000..e2d1652
--- /dev/null
+++ b/internal.h
@@ -0,0 +1,25 @@
+/* See LICENSE file for copyright and license details. */
+#include <alloca.h>
+#include <errno.h>
+#include <inttypes.h>
+#include <stddef.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
+
+struct liberror_error {
+ struct liberror_backtrace *backtrace;
+};
+
+
+struct liberror_backtrace {
+ size_t refcount;
+ size_t n;
+ uintptr_t rips[];
+};
+
+
+void liberror_print_backtrace(struct liberror_error *, FILE *, const char *);
+int liberror_save_backtrace_(struct liberror_error *);