2007-09-13 08:50:21 +00:00
|
|
|
#ifndef WRAPPER_H
|
|
|
|
#define WRAPPER_H
|
2002-11-24 21:45:23 +00:00
|
|
|
|
2004-01-28 08:02:40 +00:00
|
|
|
#include <inttypes.h>
|
2002-11-24 21:45:23 +00:00
|
|
|
|
|
|
|
typedef struct {
|
2004-01-28 08:02:40 +00:00
|
|
|
uint32_t edi, esi, ebp, esp, ebx, edx, ecx, eax;
|
2002-11-24 21:45:23 +00:00
|
|
|
} reg386_t;
|
|
|
|
|
2004-01-28 08:02:40 +00:00
|
|
|
typedef int (*wrapper_func_t)(void *stack_base, int stack_size, reg386_t *reg, uint32_t *flags);
|
2002-11-24 21:45:23 +00:00
|
|
|
|
|
|
|
extern wrapper_func_t report_entry, report_ret;
|
|
|
|
|
|
|
|
extern void (*wrapper_target)(void);
|
|
|
|
|
|
|
|
extern int wrapper(void);
|
|
|
|
extern int null_call(void);
|
|
|
|
|
2007-09-13 08:50:21 +00:00
|
|
|
#endif /* WRAPPER_H */
|
2002-11-24 21:45:23 +00:00
|
|
|
|