diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-02-03 23:21:49 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-02-03 23:21:49 (GMT) |
commit | 425860b441b21e4aca7bf2473be26b0fe1e756e2 (patch) | |
tree | 341a0fc8b370d76566f3e332c344ffae5c065916 /src/format/part.h | |
parent | 5511e355e7810f06bd610b79bcc94402c88d7ec9 (diff) |
Removed all references to binary parts (GBinPart) and updated the code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@465 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/part.h')
-rw-r--r-- | src/format/part.h | 97 |
1 files changed, 0 insertions, 97 deletions
diff --git a/src/format/part.h b/src/format/part.h deleted file mode 100644 index e45f234..0000000 --- a/src/format/part.h +++ /dev/null @@ -1,97 +0,0 @@ - -/* Chrysalide - Outil d'analyse de fichiers binaires - * part.h - prototypes pour la manipulation des parties de code - * - * Copyright (C) 2009-2012 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 _FORMAT_PART_H -#define _FORMAT_PART_H - - -#include <glib-object.h> -#include <sys/types.h> - - -#include "../common/xml.h" -#include "../arch/archbase.h" - - - -#define G_TYPE_BIN_PART (g_binary_part_get_type()) -#define G_BIN_PART(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_BIN_PART, GBinPart)) -#define G_IS_BIN_PART(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_BIN_PART)) -#define G_BIN_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_BIN_PART, GBinPartClass)) -#define G_IS_BIN_PART_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_BIN_PART)) -#define G_BIN_PART_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_BIN_PART, GBinPartClass)) - - -/* Bloc de données binaires quelconques (instance) */ -typedef struct _GBinPart GBinPart; - -/* Bloc de données binaires quelconques (classe) */ -typedef struct _GBinPartClass GBinPartClass; - - -/* Indique le type défini par la GLib pour les blocs de doonées. */ -GType g_binary_part_get_type(void); - -/* Crée une description de partie de code vierge. */ -GBinPart *g_binary_part_new(void); - -/* Crée une description de partie de code à partir d'une autre. */ -GBinPart *g_binary_part_dump(const GBinPart *); - -/* Crée une description de partie de code vierge à partir d'XML. */ -GBinPart *g_binary_part_load_from_xml(xmlNodePtr); - -/* Enregistre les informations d'une partie de code dans du XML. */ -bool g_binary_part_save_to_xml(const GBinPart *, xmlDocPtr, xmlNodePtr); - -/* Attribue une description humaine à une partie de code. */ -void g_binary_part_set_name(GBinPart *, const char *); - -/* Fournit la description attribuée à une partie de code. */ -const char *g_binary_part_get_name(const GBinPart *); - -/* Définit les valeurs utiles d'une partie de code. */ -void g_binary_part_set_values(GBinPart *, off_t, off_t, vmpa_t); - -/* Définit l'adresse virtuelle d'une partie de code. */ -void g_binary_part_set_address(GBinPart *, vmpa_t); - -/* Fournit les valeurs utiles d'une partie de code. */ -void g_binary_part_get_values(const GBinPart *, off_t *, off_t *, vmpa_t *); - -/* Etablit la comparaison entre deux blocs binaires. */ -int g_binary_part_compare(const GBinPart **, const GBinPart **); - -#ifdef DEBUG - -/* Mémorise un bilan de désassemblage. */ -void g_binary_part_set_checkup(GBinPart *, unsigned int, unsigned int); - -/* Mémorise un bilan de désassemblage. */ -void g_binary_part_get_checkup(const GBinPart *, unsigned int *, unsigned int *); - -#endif - - - -#endif /* _FORMAT_PART_H */ |