|
fsautoproc
Basic file transformation automation management utility
|
Differential file search comparison function and hook structure. More...
#include <stdbool.h>

Go to the source code of this file.
Data Structures | |
| struct | deng_hooks_s |
| Hook functions for file system search events. More... | |
Typedefs | |
| typedef bool(* | deng_filter_t) (const char *fp) |
| Filter function for ignoring files during the search process. | |
Enumerations | |
| enum | deng_notif_t { DENG_NOTIF_FILE_FOUND , DENG_NOTIF_STAGE_DONE } |
| Notification events for the file search process. More... | |
| enum | deng_fevent_t { DENG_FEVENT_NEW , DENG_FEVENT_DEL , DENG_FEVENT_MOD } |
| File change event types for the file comparison process. More... | |
Functions | |
| int | dengsearch (const char *sd, deng_filter_t filter, const struct deng_hooks_s *hooks, const struct index_s *old, struct index_s *new) |
Recursively scans directory sd and compares the file system state with a previously saved index. Any new, modified, deleted, or unmodified files are reported to the caller via the provided hooks structure, hooks. The index state new is then updated with the current file system state. | |
Differential file search comparison function and hook structure.
| deng_filter_t |
Filter function for ignoring files during the search process.
| fp | The file path to filter |
| enum deng_fevent_t |
| enum deng_notif_t |
| int dengsearch | ( | const char * | sd, |
| deng_filter_t | filter, | ||
| const struct deng_hooks_s * | hooks, | ||
| const struct index_s * | old, | ||
| struct index_s * | new | ||
| ) |
Recursively scans directory sd and compares the file system state with a previously saved index. Any new, modified, deleted, or unmodified files are reported to the caller via the provided hooks structure, hooks. The index state new is then updated with the current file system state.
| sd | The directory to scan for conditionally ignoring files |
| filter | The file filter function |
| hooks | The file event hook functions |
| old | The previous index state |
| new | The current index state |

