diff options
Diffstat (limited to 'src/format/format.c')
-rw-r--r-- | src/format/format.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/format/format.c b/src/format/format.c index 3373af3..74549bc 100644 --- a/src/format/format.c +++ b/src/format/format.c @@ -119,10 +119,7 @@ static void g_binary_format_init(GBinFormat *format) void g_binary_format_set_content(GBinFormat *format, GBinContent *content) { - - format->conten_ = content; - - format->content = g_binary_content_get(content, &format->length); + format->content = content; } @@ -130,39 +127,24 @@ void g_binary_format_set_content(GBinFormat *format, GBinContent *content) /****************************************************************************** * * * Paramètres : format = description de l'exécutable à consulter. * -* length = taille du contenu à fournir. [OUT] * * * * Description : Fournit une référence vers le contenu binaire analysé. * * * -* Retour : Adresse du tampon contenant le contenu du binaire. * +* Retour : Gestionnaire de contenu binaire en place. * * * * Remarques : - * * * ******************************************************************************/ -const bin_t *g_binary_format_get_content(const GBinFormat *format, off_t *length) +GBinContent *g_binary_format_get_content(const GBinFormat *format) { - if (length != NULL) *length = format->length; + g_object_ref(G_OBJECT(format->content)); return format->content; } - - -GBinContent *g_binary_format_get_conten_(const GBinFormat *format) -{ - g_object_ref(G_OBJECT(format->conten_)); - - - return format->conten_; - -} - - - - /****************************************************************************** * * * Paramètres : format = description de l'exécutable à consulter. * |