summaryrefslogtreecommitdiff
path: root/source4/libcli/swig
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libcli/swig')
-rw-r--r--source4/libcli/swig/libcli_smb.i18
1 files changed, 18 insertions, 0 deletions
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);