/* Chrysalide - Outil d'analyse de fichiers binaires * hex.h - prototypes pour la génération à la volée de lignes hexadécimales * * Copyright (C) 2019 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 Foobar. If not, see . */ #ifndef _GLIBEXT_GENERATORS_HEX_H #define _GLIBEXT_GENERATORS_HEX_H #include "../helpers.h" #include "../options.h" #include "../tokenstyle.h" #include "../../analysis/content.h" #define G_TYPE_HEX_GENERATOR (g_hex_generator_get_type()) DECLARE_GTYPE(GHexGenerator, g_hex_generator, G, HEX_GENERATOR); /* Crée un nouveau générateur de lignes hexadécimales. */ GHexGenerator *g_hex_generator_new(GBinContent *); /* Fournit le contenu associé au générateur de lignes hexa. */ GBinContent *g_hex_generator_get_content(const GHexGenerator *); /* Détermine la hauteur idéale d'un contenu lié à une largeur. */ int g_hex_generator_mesure_height_for_width(GHexGenerator *, const GDisplayOptions *, const GTokenStyle *, int); /* Détermine les différentes largeurs de colonnes requises. */ bool g_hex_generator_allocate(GHexGenerator *, const GDisplayOptions *, const GTokenStyle *, int, int *); /* Indique le nombre d'octets programmés constituer une ligne. */ phys_t g_hex_generator_get_bytes_per_line(const GHexGenerator *); #endif /* _GLIBEXT_GENERATORS_HEX_H */