aboutsummaryrefslogtreecommitdiff
path: root/redist/symbol_enumerator.h
diff options
context:
space:
mode:
authorJoshua Allen <axlecrusher@gmail.com>2017-03-15 19:26:46 -0400
committerJoshua Allen <axlecrusher@gmail.com>2017-03-15 19:26:46 -0400
commit1388d54117ff780b7fadd4fd682b6def569838fa (patch)
tree3737760c889eeaf0bd7305becc943d859ae65d96 /redist/symbol_enumerator.h
parent62cef8aec06638bd006eaef46700f491750fc108 (diff)
parent9bd0a0d949639b516d28091f57862ac5e59e65da (diff)
downloadlibsurvive-1388d54117ff780b7fadd4fd682b6def569838fa.tar.gz
libsurvive-1388d54117ff780b7fadd4fd682b6def569838fa.tar.bz2
Merge branch 'master' of github.com:cnlohr/libsurvive
Conflicts: src/survive_data.c
Diffstat (limited to 'redist/symbol_enumerator.h')
-rw-r--r--redist/symbol_enumerator.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/redist/symbol_enumerator.h b/redist/symbol_enumerator.h
new file mode 100644
index 0000000..87e033b
--- /dev/null
+++ b/redist/symbol_enumerator.h
@@ -0,0 +1,12 @@
+#ifndef _SYMBOL_ENUMERATOR_H
+#define _SYMBOL_ENUMERATOR_H
+
+//Enumerates all symbols in the currently loaded excutable.
+//Don't forget to compile with -rdynamic!
+
+//Return 0 to continue search. 1 to stop.
+typedef int (*SymEnumeratorCallback)( const char * path, const char * name, void * location, long size );
+
+int EnumerateSymbols( SymEnumeratorCallback cb );
+
+#endif