pidl/NDR/Parser: remember if we already know the array length
[Samba.git] / source3 / lib / addrchange.h
blob9587be776eda18f46e2f6a26ad0d2ee50d6103cc
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 "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"
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