1 | /*
|
---|
2 | * Samba Unix/Linux SMB client library
|
---|
3 | * Copyright (C) Volker Lendecke 2011
|
---|
4 | *
|
---|
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.
|
---|
9 | *
|
---|
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.
|
---|
14 | *
|
---|
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/>.
|
---|
17 | */
|
---|
18 |
|
---|
19 | #ifndef __ADDRCHANGE_H__
|
---|
20 | #define __ADDRCHANGE_H__
|
---|
21 |
|
---|
22 | #include "lib/talloc/talloc.h"
|
---|
23 | #include "lib/tevent/tevent.h"
|
---|
24 | #include "libcli/util/ntstatus.h"
|
---|
25 | #include "lib/replace/replace.h"
|
---|
26 | #include "lib/replace/system/network.h"
|
---|
27 |
|
---|
28 | struct addrchange_context;
|
---|
29 |
|
---|
30 | NTSTATUS addrchange_context_create(TALLOC_CTX *mem_ctx,
|
---|
31 | struct addrchange_context **pctx);
|
---|
32 |
|
---|
33 | struct tevent_req *addrchange_send(TALLOC_CTX *mem_ctx,
|
---|
34 | struct tevent_context *ev,
|
---|
35 | struct addrchange_context *ctx);
|
---|
36 |
|
---|
37 | enum addrchange_type {
|
---|
38 | ADDRCHANGE_ADD,
|
---|
39 | ADDRCHANGE_DEL
|
---|
40 | };
|
---|
41 |
|
---|
42 | NTSTATUS addrchange_recv(struct tevent_req *req, enum addrchange_type *type,
|
---|
43 | struct sockaddr_storage *addr);
|
---|
44 |
|
---|
45 | #endif
|
---|