fsautoproc
Basic file transformation automation management utility
Loading...
Searching...
No Matches
deng.h
Go to the documentation of this file.
1
3#ifndef FSAUTOPROC_DENG_H
4#define FSAUTOPROC_DENG_H
5
6#include <stdbool.h>
7
8struct inode_s;
9struct index_s;
10
17
21 void (*notify)(enum deng_notif_t notif);
22 void (*new)(struct inode_s* in);
23 void (*del)(struct inode_s* in);
24 void (*mod)(struct inode_s* in);
25 void (*nop)(struct inode_s* in);
26};
27
32typedef bool (*deng_filter_t)(const char* fp);
33
44int dengsearch(const char* sd, deng_filter_t filter,
45 const struct deng_hooks_s* hooks, const struct index_s* old,
46 struct index_s* new);
47
48#endif//FSAUTOPROC_DENG_H
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....
Definition deng.c:167
bool(* deng_filter_t)(const char *fp)
Filter function for ignoring files during the search process.
Definition deng.h:32
deng_notif_t
Notification events for the file search process.
Definition deng.h:13
@ DENG_NOTIF_STAGE_DONE
Occurs when a stage has been fully processed.
Definition deng.h:15
@ DENG_NOTIF_DIR_DONE
Occurs when a directory has been fully processed.
Definition deng.h:14
Hook functions for file system search events.
Definition deng.h:20
void(* nop)(struct inode_s *in)
Unmodified file event.
Definition deng.h:25
void(* mod)(struct inode_s *in)
Modified file event.
Definition deng.h:24
void(* del)(struct inode_s *in)
Deleted file event.
Definition deng.h:23
void(* notify)(enum deng_notif_t notif)
Progress notification event.
Definition deng.h:21
Index map structure for storing file nodes.
Definition index.h:24
Individual file node in the index map.
Definition index.h:12
char * fp
File path (string duplicated)
Definition index.h:13