view src/lib/ioloop-notify-none.c @ 7457:940641318f12 HEAD

Renamed IO_NOTIFY_DISABLED to IO_NOTIFY_NOSUPPORT. IO_NOTIFY_NOSUPPORT is now also given by dnotify when trying to listen for files. Fixes busy looping with dnotify when waiting for dotlock to get deleted.
author Timo Sirainen <tss@iki.fi>
date Thu, 24 Apr 2008 16:59:19 +0300
parents 7ed926ed7aa4
children 2c111b572eee
line wrap: on
line source

/* Copyright (c) 2003-2008 Dovecot authors, see the included COPYING file */

#include "lib.h"
#include "ioloop-internal.h"

#ifdef IOLOOP_NOTIFY_NONE

#undef io_add_notify
enum io_notify_result
io_add_notify(const char *path ATTR_UNUSED,
	      io_callback_t *callback ATTR_UNUSED,
	      void *context ATTR_UNUSED, struct io **io_r)
{
	*io_r = NULL;
	return IO_NOTIFY_NOSUPPORT;
}

void io_loop_notify_remove(struct ioloop *ioloop ATTR_UNUSED,
			   struct io *io ATTR_UNUSED)
{
}

void io_loop_notify_handler_deinit(struct ioloop *ioloop ATTR_UNUSED)
{
}

#endif