2 * Samba Unix/Linux SMB client library
3 * Copyright (C) Volker Lendecke 2011
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 __ADDRCHANGE_H__
20 #define __ADDRCHANGE_H__
23 #include "system/network.h"
26 #include "libcli/util/ntstatus.h"
28 struct addrchange_context
;
30 NTSTATUS
addrchange_context_create(TALLOC_CTX
*mem_ctx
,
31 struct addrchange_context
**pctx
);
33 struct tevent_req
*addrchange_send(TALLOC_CTX
*mem_ctx
,
34 struct tevent_context
*ev
,
35 struct addrchange_context
*ctx
);
37 enum addrchange_type
{
42 NTSTATUS
addrchange_recv(struct tevent_req
*req
, enum addrchange_type
*type
,
43 struct sockaddr_storage
*addr
);