s4:libcli/resolve: add resolve_name_all*() which return all addresses not only the...
[ab/samba.git/.git] / source4 / libcli / resolve / resolve.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    general name resolution interface
5
6    Copyright (C) Andrew Tridgell 2005
7    
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 3 of the License, or
11    (at your option) any later version.
12    
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17    
18    You should have received a copy of the GNU General Public License
19    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 */
21
22 #ifndef __RESOLVE_H__
23 #define __RESOLVE_H__
24
25 struct socket_address;
26
27 #include "../libcli/nbt/libnbt.h"
28 typedef struct composite_context *(*resolve_name_send_fn)(TALLOC_CTX *mem_ctx,
29                                                           struct event_context *,
30                                                           void *privdata,
31                                                           struct nbt_name *);
32 typedef NTSTATUS (*resolve_name_recv_fn)(struct composite_context *creq,
33                                          TALLOC_CTX *mem_ctx,
34                                          struct socket_address ***addrs);
35 #include "libcli/resolve/proto.h"
36 struct interface;
37 #include "libcli/resolve/lp_proto.h"
38
39 #endif /* __RESOLVE_H__ */