diff options
author | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-08-12 21:05:51 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2006-08-12 21:05:51 +0200 |
commit | 231a4558144c732837ede36a52bfc93b5a64bf7e (patch) | |
tree | bc5a43d75ee1b98a430d120cbed45930c457d333 | |
parent | 4b3d75bc86e69f46325b603ddeff1536211bd26f (diff) |
Added ignore flag to struct file_struct
-rw-r--r-- | inotail.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -9,11 +9,13 @@ enum { M_LINES, M_BYTES }; /* Every tailed file is represented as a file_struct */ struct file_struct { - char *name; /* Name of file (or '-' for stdin) */ - int fd; /* File descriptor (or -1 if file is not open */ - off_t st_size; /* File size */ + char *name; /* Name of file (or '-' for stdin) */ + int fd; /* File descriptor (or -1 if file is not open */ + off_t st_size; /* File size */ - int i_watch; /* Inotify watch associated with file_struct */ + unsigned ignore; /* Wheter to ignore the file in further processing */ + + int i_watch; /* Inotify watch associated with file_struct */ }; #ifdef DEBUG |