summaryrefslogtreecommitdiff
path: root/inotail.h
diff options
context:
space:
mode:
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 {