/* 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 */
#define G_TYPE_DELAYED_MANAGER g_delayed_manager_get_type()
#define G_DELAYED_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_delayed_manager_get_type(), GDelayedManager))
#define G_IS_DELAYED_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_delayed_manager_get_type()))
#define G_DELAYED_MANAGER_GET_IFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE((inst), g_delayed_manager_get_type(), GDelayedManagerIface))
#define G_DELAYED_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_DELAYED_MANAGER, GDelayedManagerClass))
/* Gestionnaire des analyses différées (instance) */
typedef struct _GDelayedManager GDelayedManager;
/* Gestionnaire des analyses différées (classe) */
typedef struct _GDelayedManagerClass GDelayedManagerClass;
/* Indique le type défini pour le gestionnaire des analyses différées. */
GType g_delayed_manager_get_type(void);
/* Place un nouveau désassemblage en attente. */
void g_delayed_manager_schedule_disassembly(GDelayedManager *, GOpenidaBinary *, GBinPart **, size_t);
#define get_delayed_manager() _get_delayed_manager(NULL)
/* Fournit le gestionnaire d'analyse en différé courant. */
GDelayedManager *_get_delayed_manager(GDelayedManager *);
/* Procède au chargement du gestionnaire d'analyse différées. */
bool init_delayed_manager(GObject *);
#endif /* _ANALYSIS_DELAYED_H */