diff options
author | CNLohr <lohr85@gmail.com> | 2017-03-14 21:12:18 -0400 |
---|---|---|
committer | CNLohr <lohr85@gmail.com> | 2017-03-14 21:12:18 -0400 |
commit | 9aabbe7720b3c315048f977642e4bb8e387b572a (patch) | |
tree | dbcb646ba91a3659a4de23dca09db1a9abe8f7b6 /redist/symbol_enumerator.h | |
parent | c18735f2c8490f2d0040f11467dcaa544d684a54 (diff) | |
download | libsurvive-9aabbe7720b3c315048f977642e4bb8e387b572a.tar.gz libsurvive-9aabbe7720b3c315048f977642e4bb8e387b572a.tar.bz2 |
Add a symbol enumerator for systems that don't support __contructor__.
Diffstat (limited to 'redist/symbol_enumerator.h')
-rw-r--r-- | redist/symbol_enumerator.h | 12 |
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 |