diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-07-19 19:00:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-07-19 19:00:34 (GMT) |
commit | a4f40b1971fe208bd9c25adebaeff5614aee87ee (patch) | |
tree | 376d1832e345b0bf451cd8d06b97e0c2cd37fa86 /src/arch/targetableop-int.h | |
parent | 5d94aa1a1e3af384307bb9d760410b61a33e7323 (diff) |
Created an interface for jumping to addresses from operands.
Diffstat (limited to 'src/arch/targetableop-int.h')
-rw-r--r-- | src/arch/targetableop-int.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/arch/targetableop-int.h b/src/arch/targetableop-int.h new file mode 100644 index 0000000..9afce11 --- /dev/null +++ b/src/arch/targetableop-int.h @@ -0,0 +1,51 @@ + +/* Chrysalide - Outil d'analyse de fichiers binaires + * targetableop-int.h - définitions internes propres aux opérandes ciblant une portion de désassemblage + * + * Copyright (C) 2018 Cyrille Bagard + * + * This file is part of Chrysalide. + * + * Chrysalide 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. + * + * Chrysalide 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 Chrysalide. If not, see <http://www.gnu.org/licenses/>. + */ + + +#ifndef _GLIBEXT_TARGETABLEOP_INT_H +#define _GLIBEXT_TARGETABLEOP_INT_H + + +#include "targetableop.h" + + + +/* Obtient l'adresse de la cible visée par un opérande. */ +typedef bool (* get_targetable_addr_fc) (const GTargetableOperand *, const vmpa2t *, GBinFormat *, GArchProcessor *, vmpa2t *); + + +/* Opérande ciblant une portion de désassemblage (interface) */ +struct _GTargetableOperandIface +{ + GTypeInterface base_iface; /* A laisser en premier */ + + get_targetable_addr_fc get_addr; /* Obtention de la cible */ + +}; + + +/* Redéfinition */ +typedef GTargetableOperandIface GTargetableOperandInterface; + + + +#endif /* _GLIBEXT_TARGETABLEOP_INT_H */ |