| 1 | /* |
| 2 | * AIDE (Advanced Intrusion Detection Environment) |
| 3 | * |
| 4 | * Copyright (C) 1999-2002, 2011, 2021-2025 Rami Lehti, Pablo Virolainen, |
| 5 | * Hannes von Haugwitz |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or |
| 8 | * modify it under the terms of the GNU General Public License as |
| 9 | * published by the Free Software Foundation; either version 2 of the |
| 10 | * License, or (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | */ |
| 21 | |
| 22 | #ifndef _DB_DISK_H_INCLUDED |
| 23 | #define _DB_DISK_H_INCLUDED |
| 24 | |
| 25 | #include "attributes.h" |
| 26 | #include "config.h" |
| 27 | #ifdef HAVE_FSTYPE |
| 28 | #include "file.h" |
| 29 | #endif |
| 30 | #include <sys/stat.h> |
| 31 | #include <stdbool.h> |
| 32 | |
| 33 | typedef struct disk_entry { |
| 34 | char *filename; |
| 35 | struct stat fs; |
| 36 | #ifdef HAVE_FSTYPE |
| 37 | FS_TYPE fs_type; |
| 38 | #endif |
| 39 | int fd; |
| 40 | DB_ATTR_TYPE attrs; |
| 41 | } disk_entry; |
| 42 | |
| 43 | void db_scan_disk(bool); |
| 44 | #endif |