summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-12-20 03:13:29 -0500
committermidipix <writeonce@midipix.org>2016-11-11 00:22:29 -0500
commit8cfad6a6b15e97d7a753558ebd34f8a9798196f6 (patch)
treefaf7cbfb1bc9024db578fad55c8929991677c42a /include
parent7770733c95046ac92b98c632374eaf7642eb1e5d (diff)
downloadmdso-8cfad6a6b15e97d7a753558ebd34f8a9798196f6.tar.bz2
mdso-8cfad6a6b15e97d7a753558ebd34f8a9798196f6.tar.xz
output, mdso_output_export_symbols(): initial implementation.
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