diff options
Diffstat (limited to 'src/analysis/binary.h')
-rw-r--r-- | src/analysis/binary.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/analysis/binary.h b/src/analysis/binary.h index 501ffe6..deb8815 100644 --- a/src/analysis/binary.h +++ b/src/analysis/binary.h @@ -45,6 +45,9 @@ typedef struct _GStudyProject GStudyProject; +/* ------------------------ ENCADREMENTS D'UN BINAIRE CHARGE ------------------------ */ + + #define G_TYPE_LOADED_BINARY g_loaded_binary_get_type() #define G_LOADED_BINARY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), g_loaded_binary_get_type(), GLoadedBinary)) #define G_IS_LOADED_BINARY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), g_loaded_binary_get_type())) @@ -196,4 +199,36 @@ bool *g_loaded_binary_display_decomp_lines(GLoadedBinary *); +/* ----------------------- CHARGEMENT DE BINAIRE NON BLOQUANT ----------------------- */ + + +#define G_TYPE_BINARY_LOADER g_binary_loader_get_type() +#define G_BINARY_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), G_TYPE_BINARY_LOADER, GBinaryLoader)) +#define G_IS_BINARY_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), G_TYPE_BINARY_LOADER)) +#define G_BINARY_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), G_TYPE_BINARY_LOADER, GBinaryLoaderClass)) +#define G_IS_BINARY_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), G_TYPE_BINARY_LOADER)) +#define G_BINARY_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), G_TYPE_BINARY_LOADER, GBinaryLoaderClass)) + + +/* Chargement non bloquant d'un binaire (instance) */ +typedef struct _GBinaryLoader GBinaryLoader; + +/* Chargement non bloquant d'un binaire (classe) */ +typedef struct _GBinaryLoaderClass GBinaryLoaderClass; + + +/* Indique le type défini pour le chargement non bloquant d'un binaire. */ +GType g_binary_loader_get_type(void); + +/* Prépare le chargement non bloqué d'un contenu binaire. */ +GBinaryLoader *g_binary_loader_new(GBinContent *); + +/* Prépare le chargement non bloqué d'un contenu XML. */ +GBinaryLoader *g_binary_loader_new_from_xml(const char *, const char *, GStudyProject *); + +/* Retourne l'instance du binaire chargé en cas de succès. */ +GLoadedBinary *g_binary_loader_get_result(const GBinaryLoader *); + + + #endif /* _ANALYSIS_BINARY_H */ |