s3/torture: use stack buffer for rbtree loop
[Samba.git] / source3 / include / util_event.h
blobd19678e7359fa3bae82c8a63ca4ed153d2f09d29
1 /*
2 Unix SMB/CIFS implementation.
3 event handling
4 Copyright (C) Andrew Tridgell 1992-1998
5 Copyright (C) Volker Lendecke 2005-2007
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 /* The following definitions come from lib/util_event.c */
23 #include "replace.h"
24 #include <tevent.h>
26 struct idle_event;
28 struct idle_event *event_add_idle(struct tevent_context *event_ctx,
29 TALLOC_CTX *mem_ctx,
30 struct timeval interval,
31 const char *name,
32 bool (*handler)(const struct timeval *now,
33 void *private_data),
34 void *private_data);