Merge branch 'win32' into win32-3
[deb_libnfs.git] / include / libnfs-private.h
index 2671a2bee138e1e1ee2d58980ce864782259ffb7..4c8594c72452a2c7903cd4070b7863af12801dc7 100644 (file)
@@ -14,6 +14,7 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
+#include <rpc/xdr.h>
 #include <rpc/auth.h>
 
 struct rpc_context {
@@ -75,5 +76,12 @@ void rpc_set_error(struct rpc_context *rpc, char *error_string, ...);
 void nfs_set_error(struct nfs_context *nfs, char *error_string, ...);
 
 struct rpc_context *nfs_get_rpc_context(struct nfs_context *nfs);
+const char *nfs_get_server(struct nfs_context *nfs);
+const char *nfs_get_export(struct nfs_context *nfs);
 
+/* we dont want to expose UDP to normal applications/users  this is private to libnfs to use exclusively for broadcast RPC */
+int rpc_bind_udp(struct rpc_context *rpc, char *addr, int port);
+int rpc_set_udp_destination(struct rpc_context *rpc, char *addr, int port, int is_broadcast);
 struct rpc_context *rpc_init_udp_context(void);
+struct sockaddr *rpc_get_recv_sockaddr(struct rpc_context *rpc);
+