2 Unix SMB/CIFS implementation.
4 Swig interface to libcli_nbt library.
6 Copyright (C) 2006 Tim Potter <tpot@samba.org>
8 ** NOTE! The following LGPL license applies to the tdb
9 ** library. This does NOT imply that all of Samba is released
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 3 of the License, or (at your option) any later version.
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, see <http://www.gnu.org/licenses/>.
31 #include "lib/talloc/talloc.h"
32 #include "libcli/nbt/libnbt.h"
33 #include "param/param.h"
35 /* Undo strcpy safety macro as it's used by swig )-: */
42 %import "../util/errors.i"
43 %import "../../lib/talloc/talloc.i"
44 %import "../../lib/events/events.i"
46 /* Function prototypes */
47 struct nbt_name_socket *nbt_name_socket_init(TALLOC_CTX *mem_ctx,
48 struct event_context *event_ctx);
64 enum nbt_name_type type;
68 %rename(data_out) out;
70 struct nbt_name_query {
73 const char *dest_addr;
76 int timeout; /* in seconds */
80 const char *reply_from;
83 const char **reply_addrs;
88 %array_functions(char *, char_ptr_array);
90 NTSTATUS do_nbt_name_query(struct nbt_name_socket *nbtsock,
91 TALLOC_CTX *mem_ctx, struct nbt_name_query *io);
94 NTSTATUS do_nbt_name_query(struct nbt_name_socket *nbtsock,
95 TALLOC_CTX *mem_ctx, struct nbt_name_query *io)
97 return nbt_name_query(nbtsock, mem_ctx, io);