diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-12-26 21:33:10 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-12-26 21:33:19 (GMT) |
commit | 67b4887317b7394d63b543aa48cb368406374103 (patch) | |
tree | 7d05c391f47f1971d11115539a7306055385d01a /src/analysis | |
parent | 181e3a9a8819ba50c74f4864c0fca111e375aa5e (diff) |
Handled swapping closures when signaling to the main thread.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/project.c | 27 | ||||
-rw-r--r-- | src/analysis/project.h | 3 |
2 files changed, 3 insertions, 27 deletions
diff --git a/src/analysis/project.c b/src/analysis/project.c index 66f6b0f..cb1c70a 100644 --- a/src/analysis/project.c +++ b/src/analysis/project.c @@ -523,9 +523,9 @@ void ack_loaded_binary(GBinaryLoader *loader, GStudyProject *project) if (binary != NULL) { - g_signal_connect_to_main(binary, "disassembly-done", - G_CALLBACK(g_study_project_add_loaded_binary), project, - g_cclosure_marshal_VOID__VOID); + g_signal_connect_to_main_swapped(binary, "disassembly-done", + G_CALLBACK(g_study_project_attach_binary), project, + g_cclosure_marshal_VOID__VOID); g_loaded_binary_analyse(binary); @@ -536,27 +536,6 @@ void ack_loaded_binary(GBinaryLoader *loader, GStudyProject *project) /****************************************************************************** * * -* Paramètres : binary = élément binaire tout juste désassemblé. * -* project = projet dont le contenu est à compléter. * -* * -* Description : Assure l'intégration d'un élément binaire dans un projet. * -* * -* Retour : - * -* * -* Remarques : - * -* * -******************************************************************************/ - -void g_study_project_add_loaded_binary(GLoadedBinary *binary, GStudyProject *project) -{ - /* FIXME : remplacer cette fonction par un "swap" */ - g_study_project_attach_binary(project, binary); - -} - - -/****************************************************************************** -* * * Paramètres : widget = composant d'affichage nouvellement porté à l'écran. * * event = informations liées à l'événement. * * binary = fichier binaire à associer au projet actuel. * diff --git a/src/analysis/project.h b/src/analysis/project.h index b331b1f..8288384 100644 --- a/src/analysis/project.h +++ b/src/analysis/project.h @@ -99,9 +99,6 @@ GBinContent *g_study_project_find_binary_content_by_hash(GStudyProject *, const /* Acquitte la fin d'un chargement différé et complet. */ void ack_loaded_binary(GBinaryLoader *, GStudyProject *); -/* Assure l'intégration d'un élément binaire dans un projet. */ -void g_study_project_add_loaded_binary(GLoadedBinary *, GStudyProject *); - /* Attache un fichier donné à un projet donné. */ void g_study_project_attach_binary(GStudyProject *, GLoadedBinary *); |