summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-26 13:38:00 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-27 13:02:26 +0200
commitd94c94fcb94ae0dfd221b5c807ec310f9c0fd8ed (patch)
tree0d03d0169b37c053c673d3472767e8fb84f6c100 /source4/ntvfs
parentbb04e90259315fd49fe1222b7c8f7fce23f1a2b6 (diff)
downloadsamba-d94c94fcb94ae0dfd221b5c807ec310f9c0fd8ed.tar.gz
samba-d94c94fcb94ae0dfd221b5c807ec310f9c0fd8ed.tar.bz2
samba-d94c94fcb94ae0dfd221b5c807ec310f9c0fd8ed.zip
s4:ntvfs: remove socket_address based functions
metze
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ntvfs.h3
-rw-r--r--source4/ntvfs/ntvfs_interface.c29
2 files changed, 0 insertions, 32 deletions
diff --git a/source4/ntvfs/ntvfs.h b/source4/ntvfs/ntvfs.h
index 5b551cd345..02281e749c 100644
--- a/source4/ntvfs/ntvfs.h
+++ b/source4/ntvfs/ntvfs.h
@@ -209,9 +209,6 @@ struct ntvfs_context {
} oplock;
struct {
- void *private_data;
- struct socket_address *(*get_my_addr)(void *private_data, TALLOC_CTX *mem_ctx);
- struct socket_address *(*get_peer_addr)(void *private_data, TALLOC_CTX *mem_ctx);
const struct tsocket_address *local_address;
const struct tsocket_address *remote_address;
} client;
diff --git a/source4/ntvfs/ntvfs_interface.c b/source4/ntvfs/ntvfs_interface.c
index c743126d24..608db13417 100644
--- a/source4/ntvfs/ntvfs_interface.c
+++ b/source4/ntvfs/ntvfs_interface.c
@@ -711,32 +711,3 @@ NTSTATUS ntvfs_send_oplock_break(struct ntvfs_module_context *ntvfs,
return ntvfs->ctx->oplock.handler(ntvfs->ctx->oplock.private_data, handle, level);
}
-/* client connection callback */
-NTSTATUS ntvfs_set_addr_callbacks(struct ntvfs_context *ntvfs,
- struct socket_address *(*my_addr)(void *private_data, TALLOC_CTX *mem_ctx),
- struct socket_address *(*peer_addr)(void *private_data, TALLOC_CTX *mem_ctx),
- void *private_data)
-{
- ntvfs->client.get_peer_addr = my_addr;
- ntvfs->client.get_my_addr = peer_addr;
- ntvfs->client.private_data = private_data;
- return NT_STATUS_OK;
-}
-
-struct socket_address *ntvfs_get_my_addr(struct ntvfs_module_context *ntvfs, TALLOC_CTX *mem_ctx)
-{
- if (!ntvfs->ctx->client.get_my_addr) {
- return NULL;
- }
-
- return ntvfs->ctx->client.get_my_addr(ntvfs->ctx->client.private_data, mem_ctx);
-}
-
-struct socket_address *ntvfs_get_peer_addr(struct ntvfs_module_context *ntvfs, TALLOC_CTX *mem_ctx)
-{
- if (!ntvfs->ctx->client.get_peer_addr) {
- return NULL;
- }
-
- return ntvfs->ctx->client.get_peer_addr(ntvfs->ctx->client.private_data, mem_ctx);
-}