aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-07 00:54:06 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-07 00:54:06 -0500
commit88df453f8c5ea045f9c3734c1c74b33ac7b27a79 (patch)
tree174c494f397140a9eeb3327f7e4004fca97cb3bb /include
parent268f1a9c925d44e5e3e2a0c4f804d4108e1dab90 (diff)
downloadspmc-88df453f8c5ea045f9c3734c1c74b33ac7b27a79.tar.gz
Initial commit of shlib interface
Diffstat (limited to 'include')
-rw-r--r--include/shlib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/shlib.h b/include/shlib.h
new file mode 100644
index 0000000..3489443
--- /dev/null
+++ b/include/shlib.h
@@ -0,0 +1,14 @@
+#ifndef SPM_SHLIB_H
+#define SPM_SHLIB_H
+
+#ifdef __APPLE__
+#define SPM_SHLIB_EXEC "otool"
+#define SPM_SHLIB_EXEC_ARGS "-l"
+#else
+#define SPM_SHLIB_EXEC "objdump"
+#define SPM_SHLIB_EXEC_ARGS "-p"
+#endif
+
+StrList *shlib_deps(const char *_filename);
+
+#endif //SPM_SHLIB_H