diff options
| author | Petr Mrázek | 2012-02-28 03:37:56 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-28 03:37:56 +0100 |
| commit | 731472a4781f091ae313bd39d512207e920db10c (patch) | |
| tree | 25242218ca8f641ef4b36c6d6f46b4ad6cfb1f62 /library/Hooks-linux.cpp | |
| parent | f8721c88b57b22842a2d0ecf60f58b31d151b600 (diff) | |
| download | dfhack-731472a4781f091ae313bd39d512207e920db10c.tar.gz dfhack-731472a4781f091ae313bd39d512207e920db10c.tar.bz2 dfhack-731472a4781f091ae313bd39d512207e920db10c.tar.xz | |
Add eggy hooks (linux only for now)
Diffstat (limited to 'library/Hooks-linux.cpp')
| -rw-r--r-- | library/Hooks-linux.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/library/Hooks-linux.cpp b/library/Hooks-linux.cpp index 69bb9f22..9ceeeff6 100644 --- a/library/Hooks-linux.cpp +++ b/library/Hooks-linux.cpp @@ -43,31 +43,6 @@ distribution. #include "Hooks.h" #include <iostream> -/* - * Plugin loading functions - */ -namespace DFHack -{ - DFLibrary * OpenPlugin (const char * filename) - { - dlerror(); - DFLibrary * ret = (DFLibrary *) dlopen(filename, RTLD_NOW); - if(!ret) - { - std::cerr << dlerror() << std::endl; - } - return ret; - } - void * LookupPlugin (DFLibrary * plugin ,const char * function) - { - return (DFLibrary *) dlsym((void *)plugin, function); - } - void ClosePlugin (DFLibrary * plugin) - { - dlclose((void *) plugin); - } -} - /******************************************************************************* * SDL part starts here * *******************************************************************************/ |
