summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-02-01 10:59:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:30 -0500
commit4da372c9065876e742c380d360c62b784fb01df0 (patch)
tree6ef0b57c5de5c5c997f0d4c93e1d0444e532e4aa /source4
parentdb10033b2b49d6db660779f9c18a6d507ecb6923 (diff)
downloadsamba-4da372c9065876e742c380d360c62b784fb01df0.tar.gz
samba-4da372c9065876e742c380d360c62b784fb01df0.tar.bz2
samba-4da372c9065876e742c380d360c62b784fb01df0.zip
r21104: Rename struct watch_context to struct inotify_watch_context
(This used to be commit 3548b1f683a7f5ccc6563de7e099d3a5a86ed39c)
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/sysdep/inotify.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/source4/ntvfs/sysdep/inotify.c b/source4/ntvfs/sysdep/inotify.c
index 8bb0096dcc..fbbf6e4010 100644
--- a/source4/ntvfs/sysdep/inotify.c
+++ b/source4/ntvfs/sysdep/inotify.c
@@ -64,11 +64,11 @@ static int inotify_rm_watch(int fd, int wd)
struct inotify_private {
struct sys_notify_context *ctx;
int fd;
- struct watch_context *watches;
+ struct inotify_watch_context *watches;
};
-struct watch_context {
- struct watch_context *next, *prev;
+struct inotify_watch_context {
+ struct inotify_watch_context *next, *prev;
struct inotify_private *in;
int wd;
sys_notify_callback_t callback;
@@ -93,7 +93,8 @@ static int inotify_destructor(struct inotify_private *in)
see if a particular event from inotify really does match a requested
notify event in SMB
*/
-static BOOL filter_match(struct watch_context *w, struct inotify_event *e)
+static BOOL filter_match(struct inotify_watch_context *w,
+ struct inotify_event *e)
{
if ((e->mask & w->mask) == 0) {
/* this happens because inotify_add_watch() coalesces watches on the same
@@ -139,7 +140,7 @@ static void inotify_dispatch(struct inotify_private *in,
uint32_t prev_cookie,
struct inotify_event *e2)
{
- struct watch_context *w, *next;
+ struct inotify_watch_context *w, *next;
struct notify_event ne;
/* ignore extraneous events, such as unmount and IN_IGNORED events */
@@ -312,7 +313,7 @@ static uint32_t inotify_map(struct notify_entry *e)
/*
destroy a watch
*/
-static int watch_destructor(struct watch_context *w)
+static int watch_destructor(struct inotify_watch_context *w)
{
struct inotify_private *in = w->in;
int wd = w->wd;
@@ -342,7 +343,7 @@ static NTSTATUS inotify_watch(struct sys_notify_context *ctx,
struct inotify_private *in;
int wd;
uint32_t mask;
- struct watch_context *w;
+ struct inotify_watch_context *w;
uint32_t filter = e->filter;
void **handle = (void **)handle_p;
@@ -372,7 +373,7 @@ static NTSTATUS inotify_watch(struct sys_notify_context *ctx,
return map_nt_error_from_unix(errno);
}
- w = talloc(in, struct watch_context);
+ w = talloc(in, struct inotify_watch_context);
if (w == NULL) {
inotify_rm_watch(in->fd, wd);
e->filter = filter;