Debian Codegraph @

include/progress.h

raw symbols SCIP
1 /*
2 * AIDE (Advanced Intrusion Detection Environment)
3 *
4 * Copyright (C) 2023 Hannes von Haugwitz
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 */
20
21 #ifndef _PROGRESS_H_INCLUDED
22 #define _PROGRESS_H_INCLUDED
23
24 #include <stdbool.h>
25
26 typedef enum progress_state {
27 PROGRESS_NONE = 0,
28 PROGRESS_CONFIG,
29 PROGRESS_DISK,
30 PROGRESS_OLDDB,
31 PROGRESS_NEWDB,
32 PROGRESS_WRITEDB,
33 PROGRESS_CLEAR,
34 PROGRESS_SKIPPED,
35 } progress_state;
36
37 bool progress_start(void);
38 void progress_stop(void);
39
40 void progress_status(progress_state, const char*);
41
42 #endif