From 2252d781234b963f24a7827a1228f85ba9f6d7da Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 16 Apr 2013 14:53:09 -0700 Subject: Add smbc_getPort(), smbc_setPort(). Bump the .so minor number. Signed-off-by: Jeremy Allison Reviewed-by: David Disseldorp --- source3/include/libsmbclient.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source3/include/libsmbclient.h') 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 #include #include +#include #include #include @@ -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 * -- cgit