chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build system: provide configure option --enable-hacky-parallel
[secnet.git]
/
resolver.c
diff --git
a/resolver.c
b/resolver.c
index 8ffdc28f96b1fb8daeabb351ff056f4174ba67d3..f60b11282e0bbdc41ba5830414903a3ecb0a3479 100644
(file)
--- a/
resolver.c
+++ b/
resolver.c
@@
-21,7
+21,8
@@
struct query {
adns_query query;
};
adns_query query;
};
-static bool_t resolve_request(void *sst, string_t name,
+static resolve_request_fn resolve_request;
+static bool_t resolve_request(void *sst, cstring_t name,
resolve_answer_fn *cb, void *cst)
{
struct adns *st=sst;
resolve_answer_fn *cb, void *cst)
{
struct adns *st=sst;
@@
-38,15
+39,13
@@
static bool_t resolve_request(void *sst, string_t name,
}
static int resolver_beforepoll(void *sst, struct pollfd *fds, int *nfds_io,
}
static int resolver_beforepoll(void *sst, struct pollfd *fds, int *nfds_io,
- int *timeout_io, const struct timeval *tv_now,
- uint64_t *now)
+ int *timeout_io)
{
struct adns *st=sst;
return adns_beforepoll(st->ast, fds, nfds_io, timeout_io, tv_now);
}
{
struct adns *st=sst;
return adns_beforepoll(st->ast, fds, nfds_io, timeout_io, tv_now);
}
-static void resolver_afterpoll(void *sst, struct pollfd *fds, int nfds,
- const struct timeval *tv_now, uint64_t *now)
+static void resolver_afterpoll(void *sst, struct pollfd *fds, int nfds)
{
struct adns *st=sst;
adns_query aq;
{
struct adns *st=sst;
adns_query aq;
@@
-122,7
+121,6
@@
static list_t *adnsresolver_apply(closure_t *self, struct cloc loc,
return new_closure(&st->cl);
}
return new_closure(&st->cl);
}
-init_module resolver_module;
void resolver_module(dict_t *dict)
{
add_closure(dict,"adns",adnsresolver_apply);
void resolver_module(dict_t *dict)
{
add_closure(dict,"adns",adnsresolver_apply);