2 * Unix SMB/CIFS implementation.
3 * Copyright (C) Volker Lendecke 2013,2014
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef __POLL_FUNCS_TEVENT_H__
20 #define __POLL_FUNCS_TEVENT_H__
22 #include "poll_funcs.h"
26 * Create a new, empty instance of "struct poll_funcs" to be served by tevent.
28 struct poll_funcs
*poll_funcs_init_tevent(TALLOC_CTX
*mem_ctx
);
31 * Register a tevent_context to handle the watches that the user of
32 * "poll_funcs" showed interest in. talloc_free() the returned pointer when
33 * "ev" is not supposed to handle the events anymore.
35 void *poll_funcs_tevent_register(TALLOC_CTX
*mem_ctx
, struct poll_funcs
*f
,
36 struct tevent_context
*ev
);