diff options
Diffstat (limited to 'tools/d2c/hooks.h')
-rw-r--r-- | tools/d2c/hooks.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tools/d2c/hooks.h b/tools/d2c/hooks.h new file mode 100644 index 0000000..5dbf223 --- /dev/null +++ b/tools/d2c/hooks.h @@ -0,0 +1,51 @@ + +/* Chrysalide - Outil d'analyse de fichiers binaires + * hooks.h - prototypes pour la prise en compte d'une hookse du langage d'assemblage + * + * Copyright (C) 2014 Cyrille Bagard + * + * This file is part of Chrysalide. + * + * OpenIDA is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * OpenIDA is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Foobar. If not, see <http://www.gnu.org/licenses/>. + */ + + +#ifndef _TOOLS_HOOKS_H +#define _TOOLS_HOOKS_H + + +#include <stdbool.h> + + + +/* Liste des fonctions de renvoi pour une instruction */ +typedef struct _instr_hooks instr_hooks; + + + +/* Crée une liste de fonctions à lier à une instruction. */ +instr_hooks *create_instr_hooks(void); + +/* Supprime de la mémoire une liste de fonctions liées. */ +void delete_instr_hooks(instr_hooks *); + +/* Enregistre l'utilité d'une fonction pour une instruction. */ +void register_hook_function(instr_hooks *, char *, char *); + +/* Associe dans le code des fonctions à une instruction. */ +bool write_hook_functions(const instr_hooks *, int); + + + +#endif /* _TOOLS_HOOKS_H */ |