1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r25329: A solution to SWIG not being able to handle a structure and a function

having the same name.  Hey we can now query nbt names from Python.
This commit is contained in:
Tim Potter 2007-09-26 01:26:36 +00:00 committed by Gerald (Jerry) Carter
parent 80d1dd41d4
commit 30c34d7a4b

View File

@ -37,10 +37,6 @@
#undef strcpy
/* Loadparm parameters */
static struct loadparm_context lp_ctx;
%}
%apply bool { BOOL };
@ -132,11 +128,17 @@ struct nbt_name_query {
%include "carrays.i"
%array_functions(char *, char_ptr_array);
%rename(do_nbt_name_query) nbt_name_query;
NTSTATUS do_nbt_name_query(struct nbt_name_socket *nbtsock,
TALLOC_CTX *mem_ctx, struct nbt_name_query *io);
NTSTATUS nbt_name_query(struct nbt_name_socket *nbtsock,
TALLOC_CTX *mem_ctx, struct nbt_name_query *io);
%{
NTSTATUS do_nbt_name_query(struct nbt_name_socket *nbtsock,
TALLOC_CTX *mem_ctx, struct nbt_name_query *io)
{
return nbt_name_query(nbtsock, mem_ctx, io);
}
%}
%init %{
loadparm_init(&lp_ctx);
lp_load();
%}