summaryrefslogtreecommitdiff
path: root/testsuite/tests/rts/ipe/ipe_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/rts/ipe/ipe_lib.h')
-rw-r--r--testsuite/tests/rts/ipe/ipe_lib.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/rts/ipe/ipe_lib.h b/testsuite/tests/rts/ipe/ipe_lib.h
new file mode 100644
index 0000000000..8aaa1c361e
--- /dev/null
+++ b/testsuite/tests/rts/ipe/ipe_lib.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "Rts.h"
+
+typedef struct {
+ char *buffer;
+ size_t n;
+ size_t size;
+} StringTable;
+
+void init_string_table(StringTable *st);
+uint32_t add_string(StringTable *st, const char *s);
+
+IpeBufferListNode *makeAnyProvEntries(Capability *cap, int start, int end);
+IpeBufferEntry makeAnyProvEntry(Capability *cap, StringTable *st, HaskellObj closure, int i);
+void dumpIPEToEventLog(void);
+