some forward declarations and typedefs in one place

This commit is contained in:
Mr. eXoDia 2015-04-05 03:45:00 +02:00
parent 8e5f758c96
commit 25b4dd40de
4 changed files with 17 additions and 6 deletions

View File

@ -28,8 +28,6 @@ namespace GleeBug
*/ */
DllInfo(LPVOID lpBaseOfDll, DWORD sizeOfImage, LPVOID entryPoint); DllInfo(LPVOID lpBaseOfDll, DWORD sizeOfImage, LPVOID entryPoint);
}; };
typedef std::map<Range, DllInfo, RangeCompare> DllMap;
}; };
#endif //_DEBUGGER_DLL_H #endif //_DEBUGGER_DLL_H

View File

@ -6,6 +6,8 @@
#include <vector> #include <vector>
#include <unordered_map> #include <unordered_map>
#include <map> #include <map>
#include <set>
#include <functional>
#include <windows.h> #include <windows.h>
#include <psapi.h> #include <psapi.h>
@ -21,6 +23,21 @@ namespace GleeBug
return a.second < b.first; return a.second < b.first;
} }
}; };
//forward declarations
class Debugger;
class ProcessInfo;
class DllInfo;
class ThreadInfo;
//map typedefs
typedef std::map<DWORD, ProcessInfo> ProcessMap;
typedef std::map<Range, DllInfo, RangeCompare> DllMap;
typedef std::map<DWORD, ThreadInfo> ThreadMap;
//callback function typedefs
typedef std::function<void(const Debugger &)> StepCallback;
}; };
#endif //_DEBUGGER_GLOBAL_H #endif //_DEBUGGER_GLOBAL_H

View File

@ -53,8 +53,6 @@ namespace GleeBug
*/ */
bool MemWrite(ULONG_PTR address, const size_t size, const void* buffer); bool MemWrite(ULONG_PTR address, const size_t size, const void* buffer);
}; };
typedef std::map<DWORD, ProcessInfo> ProcessMap;
}; };
#endif //_DEBUGGER_PROCESS_H #endif //_DEBUGGER_PROCESS_H

View File

@ -46,8 +46,6 @@ namespace GleeBug
private: private:
CONTEXT _oldContext; CONTEXT _oldContext;
}; };
typedef std::map<DWORD, ThreadInfo> ThreadMap;
}; };
#endif //_DEBUGGER_THREADS_H #endif //_DEBUGGER_THREADS_H