comparison src/lib/ioloop-notify-fd.h @ 14629:c93ca5e46a8a

Marked functions parameters that are allowed to be NULL. Some APIs were also changed. The non-obvious APIs where NULL parameter was changed to "" are master_service_init() and auth_master_user_list_init(). These checks can currently be enabled only on a patched clang: http://llvm.org/bugs/show_bug.cgi?id=6786
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Jun 2012 00:52:57 +0300
parents e4eb71ae8e96
children
comparison
equal deleted inserted replaced
14628:e0cc3fb5dc64 14629:c93ca5e46a8a
14 14
15 struct ioloop_notify_fd_context { 15 struct ioloop_notify_fd_context {
16 struct io_notify *notifies; 16 struct io_notify *notifies;
17 }; 17 };
18 18
19 struct io *io_notify_fd_add(struct ioloop_notify_fd_context *ctx, int fd, 19 struct io *
20 io_callback_t *callback, void *context); 20 io_notify_fd_add(struct ioloop_notify_fd_context *ctx, int fd,
21 io_callback_t *callback, void *context) ATTR_NULL(4);
21 void io_notify_fd_free(struct ioloop_notify_fd_context *ctx, 22 void io_notify_fd_free(struct ioloop_notify_fd_context *ctx,
22 struct io_notify *io); 23 struct io_notify *io);
23 24
24 struct io_notify * 25 struct io_notify *
25 io_notify_fd_find(struct ioloop_notify_fd_context *ctx, int fd); 26 io_notify_fd_find(struct ioloop_notify_fd_context *ctx, int fd);