summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-04-16 14:53:09 -0700
committerJeremy Allison <jra@samba.org>2013-06-11 10:50:41 -0700
commit2252d781234b963f24a7827a1228f85ba9f6d7da (patch)
tree2e5ed0063ab2b065af0d569361a979eaaf603d5e /source3/include
parent47471c82d0d5a024a0c64eab68adae1d482bd972 (diff)
downloadsamba-2252d781234b963f24a7827a1228f85ba9f6d7da.tar.gz
samba-2252d781234b963f24a7827a1228f85ba9f6d7da.tar.bz2
samba-2252d781234b963f24a7827a1228f85ba9f6d7da.zip
Add smbc_getPort(), smbc_setPort(). Bump the .so minor number.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/libsmb_internal.h1
-rw-r--r--source3/include/libsmbclient.h14
2 files changed, 15 insertions, 0 deletions
diff --git a/source3/include/libsmb_internal.h b/source3/include/libsmb_internal.h
index bd06b53e6c..7ce37d2645 100644
--- a/source3/include/libsmb_internal.h
+++ b/source3/include/libsmb_internal.h
@@ -244,6 +244,7 @@ struct SMBC_internal_data {
} smb;
#endif
+ uint16_t port;
};
/* Functions in libsmb_cache.c */
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h
index 61ff6a3b3b..5846e9bf44 100644
--- a/source3/include/libsmbclient.h
+++ b/source3/include/libsmbclient.h
@@ -76,6 +76,7 @@ extern "C" {
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statvfs.h>
+#include <stdint.h>
#include <fcntl.h>
#include <utime.h>
@@ -507,6 +508,19 @@ void
smbc_setTimeout(SMBCCTX *c, int timeout);
+/**
+ * Get the TCP port used to connect (0 means default).
+ */
+uint16_t
+smbc_getPort(SMBCCTX *c);
+
+/**
+ * Set the TCP port used to connect (0 means default).
+ */
+void
+smbc_setPort(SMBCCTX *c, uint16_t port);
+
+
/***********************************
* Getters and setters for OPTIONS *