blob: e404adf2848d1f91d468f9b37ba62c6c4e42adf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
/* 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 <http://www.gnu.org/licenses/>.
*/
#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 */
|