summaryrefslogtreecommitdiff
path: root/src/core/global.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/global.h')
-rw-r--r--src/core/global.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/global.h b/src/core/global.h
index d29cb76..9e2b8cd 100644
--- a/src/core/global.h
+++ b/src/core/global.h
@@ -25,6 +25,7 @@
#define _CORE_GLOBAL_H
+#include "../analysis/project.h"
#include "../glibext/delayed.h"
@@ -35,6 +36,18 @@ void set_work_queue(GWorkQueue *);
/* Fournit le gestionnaire de traitements parallèles courant. */
GWorkQueue *get_work_queue(void);
+/* Définit l'adresse du projet courant. */
+void set_current_project(GStudyProject *);
+
+/* Fournit l'adresse du projet courant. */
+GStudyProject *get_current_project(void);
+
+/* Réagit à un changement du projet principal. */
+typedef void (* current_project_change_cb) (GStudyProject *, bool);
+
+/* Enregistre une partie de code à avertir en cas de changement. */
+void register_project_change_notification(current_project_change_cb);
+
#endif /* _CORE_GLOBAL_H */