summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mdso/mdso.h1
-rw-r--r--include/mdso/mdso_output.h19
2 files changed, 20 insertions, 0 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h
index de0bd89..24159b4 100644
--- a/include/mdso/mdso.h
+++ b/include/mdso/mdso.h
@@ -81,6 +81,7 @@ mdso_api int mdso_map_input (int fd, const char * path, int prot, struct mdso_
mdso_api int mdso_unmap_input (struct mdso_input *);
/* utility api */
+mdso_api int mdso_output_export_symbols(const struct mdso_unit_ctx *, const struct mdso_common_ctx *, FILE *);
/* low-level api */
mdso_api uint32_t mdso_crc32_mbstr (const unsigned char * str, size_t * symlen);
diff --git a/include/mdso/mdso_output.h b/include/mdso/mdso_output.h
new file mode 100644
index 0000000..9b158ed
--- /dev/null
+++ b/include/mdso/mdso_output.h
@@ -0,0 +1,19 @@
+#ifndef MDSO_OUTPUT_H
+#define MDSO_OUTPUT_H
+
+#include <stdint.h>
+
+#define MDSO_PRETTY(x) ((uint64_t)x << 32)
+
+/* output actions */
+#define MDSO_OUTPUT_EXPORT_SYMS 0x00000001
+
+
+/* pretty-printer flags */
+#define MDSO_PRETTY_LIST MDSO_PRETTY(0x00000001)
+#define MDSO_PRETTY_TABLE MDSO_PRETTY(0x00000002)
+#define MDSO_PRETTY_READOBJ MDSO_PRETTY(0x00000004)
+#define MDSO_PRETTY_OBJDUMP MDSO_PRETTY(0x00000008)
+#define MDSO_PRETTY_YAML MDSO_PRETTY(0x00000010)
+
+#endif