From b5d9cf6c30d28847ec4279d389b63e01c67c7f86 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Thu, 17 Mar 2011 18:25:46 +0200 Subject: [PATCH] inotify-backend: remove defines related to adding watches from the interface defines that are used when adding watches (such as IN_DONT_FOLLOW etc) are not important to the caller. --- src/inotify-backend.c | 2 ++ src/inotify-backend.h | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/inotify-backend.c b/src/inotify-backend.c index 3fd830e..afa3b26 100644 --- a/src/inotify-backend.c +++ b/src/inotify-backend.c @@ -20,6 +20,8 @@ #include "inotify-syscalls.h" #include "log.h" +#define IN_ONLYDIR 0x01000000 + #define WATCH_MASK (IN_MOVE | IN_CREATE | IN_DELETE | IN_ONLYDIR) #define PROCFS_PATH "/proc/sys/fs/inotify/" diff --git a/src/inotify-backend.h b/src/inotify-backend.h index 7ae9aea..02f42e4 100644 --- a/src/inotify-backend.h +++ b/src/inotify-backend.h @@ -50,20 +50,7 @@ struct inotify_event { #define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */ #define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */ -/* Special flags. */ -#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a - directory. */ -#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */ -#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already - existing watch. */ #define IN_ISDIR 0x40000000 /* Event occurred against dir. */ -#define IN_ONESHOT 0x80000000 /* Only send event once. */ - -/* All events which a program can wait on. */ -#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \ - | IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \ - | IN_MOVED_TO | IN_CREATE | IN_DELETE \ - | IN_DELETE_SELF | IN_MOVE_SELF) int inotify_backend_init(void);