l4dtoolz_new/signature.h
Ivailo Spasov 6f6564cc4d Fix windows build and some minor fixes
Signed-off-by: Ivailo Spasov <ivailosp@abv.bg>
2013-01-21 22:27:24 +02:00

16 lines
490 B
C

#ifndef _INCLUDE_SIGNATURE_
#define _INCLUDE_SIGNATURE_
struct base_addr_t{
void *addr;
unsigned int len;
};
void *find_signature(const char *mask, struct base_addr_t *base_addr, int pure);
int find_base(const char *name, struct base_addr_t *base_addr);
int write_signature(const void *addr, const void *signature);
int read_signature(const void *addr, void *signature);
int get_original_signature(const void *offset, const void *new_sig, void *&org_sig);
#endif //_INCLUDE_SIGNATURE_