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