/* OpenIDA - Outil d'analyse de fichiers binaires
* delayed.h - prototypes pour la gestion des actions d'analyse différées
*
* Copyright (C) 2009 Cyrille Bagard
*
* This file is part of OpenIDA.
*
* 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 .
*/
#ifndef _ANALYSIS_DELAYED_H
#define _ANALYSIS_DELAYED_H
#include
#include
#include "binary.h"
#include "../format/exe_format.h" /* TODO : Voir pour n'include que GBinPart */
/* ------------------------ DESASSEMBLAGE DE BINAIRE DIFFERE ------------------------ */
#define G_TYPE_DELAYED_DISASSEMBLY g_delayed_disassembly_get_type()
#define G_DELAYED_DISASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_delayed_disassembly_get_type(), GDelayedDisassembly))
#define G_IS_DELAYED_DISASSEMBLY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_delayed_disassembly_get_type()))
#define G_DELAYED_DISASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_DELAYED_DISASSEMBLY, GDelayedDisassemblyClass))
#define G_IS_DELAYED_DISASSEMBLY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_DELAYED_DISASSEMBLY))
#define G_DELAYED_DISASSEMBLY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_DELAYED_DISASSEMBLY, GDelayedDisassemblyClass))
/* Ensembles binaires à désassembler (instance) */
typedef struct _GDelayedDisassembly GDelayedDisassembly;
/* Ensembles binaires à désassembler (classe) */
typedef struct _GDelayedDisassemblyClass GDelayedDisassemblyClass;
/* Indique le type défini pour les tâches de désassemblage différé. */
GType g_delayed_disassembly_get_type(void);
/* Crée une tâche de désassemblage différé. */
GDelayedDisassembly *g_delayed_disassembly_new(GOpenidaBinary *, GBinPart **, size_t);
/* ------------------------- GESTION DES ANALYSES DIFFEREES ------------------------- */
#define G_TYPE_DISASS_MANAGER g_disassembly_manager_get_type()
#define G_DISASS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_disassembly_manager_get_type(), GDisassManager))
#define G_IS_DISASS_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_disassembly_manager_get_type()))
#define G_DISASS_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_disassembly_manager_get_type(), GDisassManagerIface))
#define G_DISASS_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_DISASS_MANAGER, GDisassManagerClass))
/* Gestionnaire des analyses différées (instance) */
typedef struct _GDisassManager GDisassManager;
/* Gestionnaire des analyses différées (classe) */
typedef struct _GDisassManagerClass GDisassManagerClass;
#define get_disassembly_manager() _get_disassembly_manager(NULL)
/* Indique le type défini pour le gestionnaire des analyses différées. */
GType g_disassembly_manager_get_type(void);
/* Fournit le gestionnaire d'analyse en différé courant. */
GDisassManager *_get_disassembly_manager(GDisassManager *);
/* Procède au chargement du gestionnaire d'analyse différées. */
bool init_disassembly_manager(GObject *);
#endif /* _ANALYSIS_DELAYED_H */