diff options
Diffstat (limited to 'source4/libcli/swig/libcli_nbt.i')
-rw-r--r-- | source4/libcli/swig/libcli_nbt.i | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/source4/libcli/swig/libcli_nbt.i b/source4/libcli/swig/libcli_nbt.i index b887e7df97..ec7632ccf4 100644 --- a/source4/libcli/swig/libcli_nbt.i +++ b/source4/libcli/swig/libcli_nbt.i @@ -31,6 +31,7 @@ #include "lib/talloc/talloc.h" #include "lib/events/events.h" #include "libcli/nbt/libnbt.h" +#include "param/param.h" /* Undo strcpy safety macro as it's used by swig )-: */ @@ -38,7 +39,7 @@ %} -%apply bool { BOOL }; +%apply bool { bool }; %apply int { uint8_t }; %apply int { int8_t }; %apply unsigned int { uint16_t }; @@ -111,8 +112,8 @@ struct nbt_name_query { struct { struct nbt_name name; const char *dest_addr; - BOOL broadcast; - BOOL wins_lookup; + bool broadcast; + bool wins_lookup; int timeout; /* in seconds */ int retries; } in; @@ -127,9 +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); +} +%} -void lp_load(void); +%init %{ + lp_load(); +%} |