1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

s4:libcli/resolve: remove all backend specific sync functions

metze
This commit is contained in:
Stefan Metzmacher 2008-12-13 10:57:44 +01:00
parent f6b3c70b97
commit c8565c0e7a
5 changed files with 0 additions and 85 deletions

View File

@ -85,26 +85,6 @@ NTSTATUS resolve_name_bcast_recv(struct composite_context *c,
return status;
}
/*
broadcast name resolution method - sync call
*/
NTSTATUS resolve_name_bcast(struct nbt_name *name,
TALLOC_CTX *mem_ctx,
struct interface *ifaces,
uint16_t nbt_port,
int nbt_timeout,
struct socket_address ***addrs)
{
struct resolve_bcast_data *data = talloc(mem_ctx, struct resolve_bcast_data);
struct composite_context *c;
data->ifaces = talloc_reference(data, ifaces);
data->nbt_port = nbt_port;
data->nbt_timeout = nbt_timeout;
c = resolve_name_bcast_send(mem_ctx, NULL, data, name);
return resolve_name_bcast_recv(c, mem_ctx, addrs);
}
bool resolve_context_add_bcast_method(struct resolve_context *ctx, struct interface *ifaces, uint16_t nbt_port, int nbt_timeout)
{
struct resolve_bcast_data *data = talloc(ctx, struct resolve_bcast_data);

View File

@ -51,17 +51,6 @@ NTSTATUS resolve_name_host_recv(struct composite_context *c,
return resolve_name_dns_ex_recv(c, mem_ctx, addrs);
}
/*
getaddrinfo() name resolution method - sync call
*/
NTSTATUS resolve_name_host(struct nbt_name *name,
TALLOC_CTX *mem_ctx,
struct socket_address ***addrs)
{
struct composite_context *c = resolve_name_host_send(mem_ctx, NULL, NULL, name);
return resolve_name_host_recv(c, mem_ctx, addrs);
}
bool resolve_context_add_host_method(struct resolve_context *ctx)
{
return resolve_context_add_method(ctx, resolve_name_host_send, resolve_name_host_recv,

View File

@ -195,23 +195,3 @@ NTSTATUS resolve_name_nbtlist_recv(struct composite_context *c,
return status;
}
/*
nbt list of addresses name resolution method - sync call
*/
NTSTATUS resolve_name_nbtlist(struct nbt_name *name,
TALLOC_CTX *mem_ctx,
const char **address_list,
struct interface *ifaces,
uint16_t nbt_port,
int nbt_timeout,
bool broadcast, bool wins_lookup,
struct socket_address ***addrs)
{
struct composite_context *c = resolve_name_nbtlist_send(mem_ctx, NULL,
name, address_list,
ifaces, nbt_port,
nbt_timeout,
broadcast, wins_lookup);
return resolve_name_nbtlist_recv(c, mem_ctx, addrs);
}

View File

@ -199,19 +199,6 @@ NTSTATUS resolve_name_all_recv(struct composite_context *c,
return status;
}
/*
general name resolution - sync call
*/
NTSTATUS resolve_all_name(struct resolve_context *ctx,
struct nbt_name *name,
TALLOC_CTX *mem_ctx,
struct socket_address ***addrs,
struct event_context *ev)
{
struct composite_context *c = resolve_name_all_send(ctx, name, ev);
return resolve_name_all_recv(c, mem_ctx, addrs);
}
struct composite_context *resolve_name_send(struct resolve_context *ctx,
struct nbt_name *name,
struct event_context *event_ctx)

View File

@ -57,27 +57,6 @@ NTSTATUS resolve_name_wins_recv(struct composite_context *c,
return resolve_name_nbtlist_recv(c, mem_ctx, addrs);
}
/*
wins name resolution method - sync call
*/
NTSTATUS resolve_name_wins(struct nbt_name *name,
TALLOC_CTX *mem_ctx,
const char **address_list,
struct interface *ifaces,
uint16_t nbt_port,
int nbt_timeout,
struct socket_address ***addrs)
{
struct composite_context *c;
struct resolve_wins_data *wins_data = talloc(mem_ctx, struct resolve_wins_data);
wins_data->address_list = address_list;
wins_data->ifaces = ifaces;
wins_data->nbt_port = nbt_port;
wins_data->nbt_timeout = nbt_timeout;
c = resolve_name_wins_send(mem_ctx, NULL, wins_data, name);
return resolve_name_wins_recv(c, mem_ctx, addrs);
}
bool resolve_context_add_wins_method(struct resolve_context *ctx, const char **address_list, struct interface *ifaces, uint16_t nbt_port, int nbt_timeout)
{
struct resolve_wins_data *wins_data = talloc(ctx, struct resolve_wins_data);