1 #ifndef FILESCHANGED_NODE_H 2 #define FILESCHANGED_NODE_H 3 #include <fam.h> 4 #include <time.h> 5 #include <sys/types.h> 6 #include <sys/stat.h> 7 #include <unistd.h> 8 struct node_t 9 { 10 struct stat statbuf; 11 char *filename; 12 FAMRequest request; 13 FAMEvent lastevent; 14 time_t lastevent_time; 15 unsigned int id; 16 }; 17 void node_free(struct node_t *node); 18 int node_copy(struct node_t *dst, struct node_t *src); 19 int node_new(struct node_t *node, char *filename); 20 int node_compare(struct node_t *n1, struct node_t *n2); 21 int node_is_empty(struct node_t *node); 22 #endif 23