diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2016-12-30 15:18:30 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2016-12-31 00:14:43 (GMT) |
commit | deadb8b2432e08ce7a7d3ad02cb7bd4f269115cf (patch) | |
tree | ff2658f9e6f7f48d7a1d6ab24a8f2b6831245dae /src/analysis/binary.h | |
parent | 24731773b654f40cb1d59c3da5216a3be90e2d6f (diff) |
Loaded binaires without blocking the GUI during the process.
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 */ |