summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2007-09-26 03:08:40 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:14 -0500
commit708729be9f837b95a8e35811282893c428abb450 (patch)
tree70447c52b5cbd17fad42dd38b39fbc5aa5b63fb2
parent8dc845d42581e6dabc00abdf8f82025a5f44fdcd (diff)
downloadsamba-708729be9f837b95a8e35811282893c428abb450.tar.gz
samba-708729be9f837b95a8e35811282893c428abb450.tar.bz2
samba-708729be9f837b95a8e35811282893c428abb450.zip
r25348: Start working on another Python wrapper.
(This used to be commit 441a0404346ce2ff72e8262c5bf6ef94d3b9f331)
-rw-r--r--source4/libcli/config.mk5
-rw-r--r--source4/libcli/swig/libcli_smb.i18
-rw-r--r--source4/scripting/swig/config.mk2
3 files changed, 24 insertions, 1 deletions
diff --git a/source4/libcli/config.mk b/source4/libcli/config.mk
index 3ed35ae627..9f052a0065 100644
--- a/source4/libcli/config.mk
+++ b/source4/libcli/config.mk
@@ -59,6 +59,11 @@ LIBRARY_REALNAME = swig/_libcli_nbt.$(SHLIBEXT)
OBJ_FILES = swig/libcli_nbt_wrap.o
PUBLIC_DEPENDENCIES = LIBCLI_NBT DYNCONFIG LIBSAMBA-CONFIG
+[LIBRARY::swig_libcli_smb]
+LIBRARY_REALNAME = swig/_libcli_smb.$(SHLIBEXT)
+OBJ_FILES = swig/libcli_smb_wrap.o
+PUBLIC_DEPENDENCIES = LIBCLI_SMB DYNCONFIG LIBSAMBA-CONFIG
+
[SUBSYSTEM::LIBCLI_DGRAM]
OBJ_FILES = \
dgram/dgramsocket.o \
diff --git a/source4/libcli/swig/libcli_smb.i b/source4/libcli/swig/libcli_smb.i
new file mode 100644
index 0000000000..8eb055c2f0
--- /dev/null
+++ b/source4/libcli/swig/libcli_smb.i
@@ -0,0 +1,18 @@
+%module libcli_smb
+
+%{
+#include "includes.h"
+#include "lib/talloc/talloc.h"
+#include "lib/events/events.h"
+#include "libcli/raw/libcliraw.h"
+%}
+
+TALLOC_CTX *talloc_init(char *name);
+int talloc_free(TALLOC_CTX *ptr);
+struct event_context *event_context_init(TALLOC_CTX *mem_ctx);
+
+struct smbcli_socket *smbcli_sock_connect_byname(const char *host, int port,
+ TALLOC_CTX *mem_ctx,
+ struct event_context *event_ctx);
+
+void smbcli_sock_dead(struct smbcli_socket *sock);
diff --git a/source4/scripting/swig/config.mk b/source4/scripting/swig/config.mk
index 61e8081268..bf9a481e4e 100644
--- a/source4/scripting/swig/config.mk
+++ b/source4/scripting/swig/config.mk
@@ -9,7 +9,7 @@ OBJ_FILES = dcerpc_wrap.o
# Swig extensions
swig: lib/tdb/swig/_tdb.$(SHLIBEXT) lib/ldb/swig/_ldb.$(SHLIBEXT) \
- libcli/swig/_libcli_nbt.$(SHLIBEXT)
+ libcli/swig/_libcli_nbt.$(SHLIBEXT) libcli/swig/_libcli_smb.$(SHLIBEXT)
.SUFFIXES: _wrap.c .i