summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-01-26 21:58:58 +0100
committerTobias Klauser <tklauser@distanz.ch>2009-01-26 21:58:58 +0100
commita76fa322044d2de630a28b493b953da5aa38c906 (patch)
tree8bb55ec2de74851de5da6811b5f4fabcc0c29d15 /inotail.h
parente961d4e2d745d6d299a49e2caec14b8e295d2e58 (diff)
Prepare for -F/--follow=name options (no effect yet)
Diffstat (limited to 'inotail.h')
-rw-r--r--inotail.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/inotail.h b/inotail.h
index d483e02..05995dc 100644
--- a/inotail.h
+++ b/inotail.h
@@ -17,6 +17,12 @@
/* tail modes */
enum tail_mode { M_LINES, M_BYTES };
+/* follow modes */
+enum follow_mode {
+ FOLLOW_NONE = 0, /* Do not follow the fiel at all */
+ FOLLOW_DESCRIPTOR, /* Follow the file by fd */
+ FOLLOW_NAME /* Follow the file by name */
+};
/* Every tailed file is represented as a file_struct */
struct file_struct {