Mercurial > dovecot > core-2.2
annotate src/lib/ioloop-notify-none.c @ 22664:fea53c2725c0
director: Fix director_max_parallel_moves/kicks type
Should be uint, not time.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Thu, 09 Nov 2017 12:24:16 +0200 |
parents | 2e2563132d5f |
children | cb108f786fb4 |
rev | line source |
---|---|
21390
2e2563132d5f
Updated copyright notices to include the year 2017.
Stephan Bosch <stephan.bosch@dovecot.fi>
parents:
20811
diff
changeset
|
1 /* Copyright (c) 2003-2017 Dovecot authors, see the included COPYING file */ |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
2 |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
3 #include "lib.h" |
13529
cf77e448295c
Renamed lib/*-internal.h files to lib/*-private.h for consistency.
Timo Sirainen <tss@iki.fi>
parents:
12782
diff
changeset
|
4 #include "ioloop-private.h" |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
5 |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
6 #ifdef IOLOOP_NOTIFY_NONE |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
7 |
5295
59d84c7c2411
Fix for building without notify
Timo Sirainen <tss@iki.fi>
parents:
3534
diff
changeset
|
8 #undef io_add_notify |
5981 | 9 enum io_notify_result |
6411
6a64e64fa3a3
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
Timo Sirainen <tss@iki.fi>
parents:
5981
diff
changeset
|
10 io_add_notify(const char *path ATTR_UNUSED, |
20811 | 11 const char *source_filename ATTR_UNUSED, |
18984
d26178d0557a
lib: io_add_notify() wasn't setting struct io.source_linenum
Timo Sirainen <tss@iki.fi>
parents:
18137
diff
changeset
|
12 unsigned int source_linenum ATTR_UNUSED, |
6411
6a64e64fa3a3
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
Timo Sirainen <tss@iki.fi>
parents:
5981
diff
changeset
|
13 io_callback_t *callback ATTR_UNUSED, |
6a64e64fa3a3
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
Timo Sirainen <tss@iki.fi>
parents:
5981
diff
changeset
|
14 void *context ATTR_UNUSED, struct io **io_r) |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
15 { |
5981 | 16 *io_r = NULL; |
7457
940641318f12
Renamed IO_NOTIFY_DISABLED to IO_NOTIFY_NOSUPPORT. IO_NOTIFY_NOSUPPORT is
Timo Sirainen <tss@iki.fi>
parents:
7086
diff
changeset
|
17 return IO_NOTIFY_NOSUPPORT; |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
18 } |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
19 |
8366
2c111b572eee
Don't break if io_remove() or timeout_remove() are called for non-active ioloops.
Timo Sirainen <tss@iki.fi>
parents:
7457
diff
changeset
|
20 void io_loop_notify_remove(struct io *io ATTR_UNUSED) |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
21 { |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
22 } |
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
23 |
6411
6a64e64fa3a3
Renamed __attr_*__ to ATTR_*. Renamed __attrs_used__ to ATTRS_DEFINED.
Timo Sirainen <tss@iki.fi>
parents:
5981
diff
changeset
|
24 void io_loop_notify_handler_deinit(struct ioloop *ioloop ATTR_UNUSED) |
3482
465c465c66be
Added inotify patch by Johannes Berg and did some restructuring to
Timo Sirainen <tss@iki.fi>
parents:
2799
diff
changeset
|
25 { |
465c465c66be
Added inotify patch by Johannes Berg and did some restructuring to
Timo Sirainen <tss@iki.fi>
parents:
2799
diff
changeset
|
26 } |
465c465c66be
Added inotify patch by Johannes Berg and did some restructuring to
Timo Sirainen <tss@iki.fi>
parents:
2799
diff
changeset
|
27 |
18994
3083424cafcd
lib: Added io_loop_extract_notify_fd()
Timo Sirainen <tss@iki.fi>
parents:
18984
diff
changeset
|
28 int io_loop_extract_notify_fd(struct ioloop *ioloop ATTR_UNUSED) |
3083424cafcd
lib: Added io_loop_extract_notify_fd()
Timo Sirainen <tss@iki.fi>
parents:
18984
diff
changeset
|
29 { |
3083424cafcd
lib: Added io_loop_extract_notify_fd()
Timo Sirainen <tss@iki.fi>
parents:
18984
diff
changeset
|
30 return -1; |
3083424cafcd
lib: Added io_loop_extract_notify_fd()
Timo Sirainen <tss@iki.fi>
parents:
18984
diff
changeset
|
31 } |
3083424cafcd
lib: Added io_loop_extract_notify_fd()
Timo Sirainen <tss@iki.fi>
parents:
18984
diff
changeset
|
32 |
1729
5bf22d6bb65e
Added IO_DIR_NOTIFY and IO_FILE_NOTIFY conditions to io_add(). IO_DIR_NOTIFY
Timo Sirainen <tss@iki.fi>
parents:
diff
changeset
|
33 #endif |