/* Chrysalide - Outil d'analyse de fichiers binaires * work.h - prototypes pour la gestion des travaux différés * * Copyright (C) 2009-2024 Cyrille Bagard * * This file is part of Chrysalide. * * Chrysalide 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. * * Chrysalide 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 Chrysalide. If not, see . */ #ifndef _GLIBEXT_WORK_H #define _GLIBEXT_WORK_H #include "helpers.h" #define G_TYPE_GENERIC_WORK (g_generic_work_get_type()) DECLARE_GTYPE(GGenericWork, g_generic_work, G, GENERIC_WORK); /* Intègre un travail dans une liste de tâches à effectuer. */ void g_generic_work_add_to_list(GGenericWork *, GGenericWork **); /* Supprime un travail d'une liste de tâches à effectuer. */ void g_generic_work_remove_from_list(GGenericWork *, GGenericWork **); /* Mène l'opération programmée. */ void g_generic_work_process(GGenericWork *); /* Attend la fin de l'exécution d'une tâche donnée. */ void g_generic_work_wait_for_completion(GGenericWork *); #endif /* _GLIBEXT_WORK_H */