summaryrefslogtreecommitdiff
path: root/source4/libcli/swig/libcli_smb.i
blob: 8eb055c2f03607cada15741c9cc19392913778ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);