Remove stub ldb_version.h and source3/include/autoconf as no longer needed
[Samba.git] / source3 / lib / addrchange.h
blob1106380e910e7e3f542aa0f9209071482cbaaf22
1 /*
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__
22 #include "replace.h"
23 #include "system/network.h"
24 #include <talloc.h>
25 #include <tevent.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 {
38 ADDRCHANGE_ADD,
39 ADDRCHANGE_DEL
42 NTSTATUS addrchange_recv(struct tevent_req *req, enum addrchange_type *type,
43 struct sockaddr_storage *addr);
45 #endif