summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@xenon.tklauser.home>2006-08-12 21:05:51 +0200
committerTobias Klauser <tklauser@xenon.tklauser.home>2006-08-12 21:05:51 +0200
commit231a4558144c732837ede36a52bfc93b5a64bf7e (patch)
treebc5a43d75ee1b98a430d120cbed45930c457d333
parent4b3d75bc86e69f46325b603ddeff1536211bd26f (diff)
Added ignore flag to struct file_struct
-rw-r--r--inotail.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/inotail.h b/inotail.h
index 882d78d..2fd2cc4 100644
--- a/inotail.h
+++ b/inotail.h
@@ -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